Split off creating/formatting EFI partition into 'partition.sh'
This commit is contained in:
23
partition.sh
23
partition.sh
@@ -59,4 +59,25 @@ sgdisk \
|
||||
-n3:0:0 \
|
||||
-t3:BF00 \
|
||||
-c3:${ID} \
|
||||
${DISK}
|
||||
${disk}
|
||||
|
||||
if [[ "${*}" == *--efi* ]]; then
|
||||
mkdosfs \
|
||||
-F 32 \
|
||||
-s 1 \
|
||||
-n EFI \
|
||||
${disk}${part1}
|
||||
|
||||
mkdir \
|
||||
-p \
|
||||
/boot/efi
|
||||
|
||||
printf \
|
||||
"/dev/disk/by-uuid/$(blkid -s UUID -o value ${disk}${part1}) /boot/efi vfat defaults 0 0\n" | \
|
||||
tee --append /etc/fstab &> /dev/null
|
||||
|
||||
sleep 5
|
||||
|
||||
mount \
|
||||
/boot/efi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user