add boot-efi label only on first disk

This commit is contained in:
Jérémy Lecour 2020-10-23 15:24:58 +02:00 committed by Jérémy Lecour
parent 12e05839f4
commit acbf86d2b3
1 changed files with 3 additions and 1 deletions

View File

@ -88,10 +88,12 @@ for i in /dev/nvme?n1p[5]; do
done
apt install dosfstools
# format the boot-efi partition on all disks
for i in /dev/nvme?n1p[1]; do
mkfs.vfat -F32 $i >/dev/null
fatlabel $1 EFI_SYSPART
done
# Add label on first disk only
fatlabel /dev/nvme0n1p1 EFI_SYSPART
mkfs.ext4 -LROOTFS /dev/md3 >/dev/null
sleep 1