This commit is contained in:
teldra 2022-02-07 19:24:21 +01:00
parent dbdcaddee6
commit 96c768f0d3
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ EOF
if [ "$EFI" == "1" ]; then
uuid=$(blkid -o value -s UUID ${TARGET_PHY_ID}-part1)
echo "UUID=${UUID} /boot/efi vfat defaults 0 0" >> /etc/fstab
echo "efivarfs /sys/firmware/efi/efivars efivarfs defaults 0 0" >> /etc/fstab
fi
uuid=$(blkid -o value -s UUID ${TARGET_PHY_ID}-part${TARGET_PART})

View File

@ -9,6 +9,7 @@ packages() {
config() {
if [ "${EFI}" == "1" ]; then
grub-install
efibootmgr --create --disk "${TARGET_PHY_ID}-${TARGET_PART}" --loader /EFI/void/grubx64.efi --label "Voidlinux" --verbose
else
grub-install "${TARGET_PHY_ID}"
fi