Split off creating/formatting EFI partition into 'partition.sh'
This commit is contained in:
19
install.sh
19
install.sh
@@ -122,26 +122,9 @@ if [[ "${ID}" == 'debian' ]]; then
|
||||
fi
|
||||
|
||||
if [[ ! "${*}" = *--no-part* ]]; then
|
||||
mkdosfs \
|
||||
-F 32 \
|
||||
-s 1 \
|
||||
-n EFI \
|
||||
${DISK}${PART1}
|
||||
"${baseDir}/partition.sh" --efi
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
if [[ "${ID}" == 'debian' ]] || [[ "${ID}" == 'elementary' ]]; then
|
||||
"${baseDir}/debian.sh" --purge-os-prober
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user