fix bootloader-config script

This commit is contained in:
manuel 2024-09-26 11:28:30 +00:00
parent f46d8764dd
commit 93078f4bb0
1 changed files with 6 additions and 1 deletions

View File

@ -29,9 +29,14 @@ case "$ARCH" in
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc
fi fi
;; ;;
i686) i686)
if [ -d /sys/firmware/efi/efivars ]; then
echo " * Installing grub-efi-ia32 (uefi 32-bit)..." echo " * Installing grub-efi-ia32 (uefi 32-bit)..."
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-efi-ia32 DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-efi-ia32
else
echo " * Installing grub-pc (bios 32-bit)..."
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc
fi
;; ;;
aarch64) aarch64)
echo " * Installing grub-efi-arm64 (uefi arm64)..." echo " * Installing grub-efi-arm64 (uefi arm64)..."