Commit 8497d394 authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: install grub-efi to EFI/altlinux also (--no-nvram)

grub-efi-autoupdate does not update grub in EFI/BOOT if there is no shim and EFI/altlinux. See https://bugzilla.altlinux.org/41959
parent 2d64c255
......@@ -440,6 +440,10 @@ grub-efi)
case "$ARCH" in
x86_64)
chroot "$ROOTFS" grub-install --target=i386-efi --recheck \
--no-nvram --uefi-secure-boot
chroot "$ROOTFS" grub-install --target=x86_64-efi --recheck \
--no-nvram --uefi-secure-boot
chroot "$ROOTFS" grub-install --target=i386-efi --recheck \
--removable --uefi-secure-boot
chroot "$ROOTFS" grub-install --target=x86_64-efi --recheck \
--removable --uefi-secure-boot
......@@ -448,11 +452,16 @@ grub-efi)
;;
aarch64)
chroot "$ROOTFS" grub-install --target=arm64-efi --recheck \
--no-nvram --uefi-secure-boot
chroot "$ROOTFS" grub-install --target=arm64-efi --recheck \
--removable --uefi-secure-boot
;;
riscv64)
chroot "$ROOTFS" grub-install --target=riscv64-efi --recheck \
--no-nvram --uefi-secure-boot
chroot "$ROOTFS" grub-install --target=riscv64-efi --recheck \
--removable --uefi-secure-boot
;;
esac
sed -i '/GRUB_DISABLE_OS_PROBER=true/d' "$ROOTFS/etc/sysconfig/grub2"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment