Fix efivars mount

This commit is contained in:
2023-08-28 22:25:47 -04:00
parent b64cfc4375
commit f4ad6f6308

View File

@ -1113,8 +1113,10 @@ GRUB_TERMINAL_INPUT="console serial"
GRUB_TERMINAL_OUTPUT="gfxterm serial" GRUB_TERMINAL_OUTPUT="gfxterm serial"
GRUB_SERIAL_COMMAND="serial --unit=0 --unit=1 --speed=115200" GRUB_SERIAL_COMMAND="serial --unit=0 --unit=1 --speed=115200"
EOF EOF
mount --bind /sys/firmware/efi/efivars ${target}/sys/firmware/efi/efivars
chroot ${target} grub-install --force --target=${bios_target} ${target_disk} >&2 chroot ${target} grub-install --force --target=${bios_target} ${target_disk} >&2
chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2 chroot ${target} grub-mkconfig -o /boot/grub/grub.cfg >&2
umount ${target}/sys/firmware/efi/efivars
echo "done." echo "done."
echo -n "Adding module blacklists... " echo -n "Adding module blacklists... "