Commit 27a67513 authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: Enable secure-boot support for x86_64, add riscv64 support, cleanup

parent 3a31db37
...@@ -400,28 +400,25 @@ grub-efi) ...@@ -400,28 +400,25 @@ grub-efi)
echo 'GRUB_DISABLE_OS_PROBER=true' >> "$ROOTFS"/etc/sysconfig/grub2 echo 'GRUB_DISABLE_OS_PROBER=true' >> "$ROOTFS"/etc/sysconfig/grub2
chroot "$ROOTFS" grub-mkconfig -o /boot/grub/grub.cfg chroot "$ROOTFS" grub-mkconfig -o /boot/grub/grub.cfg
case "$ARCH" in case "$ARCH" in
*86)
chroot "$ROOTFS" grub-install --target=i386-efi --recheck \
--removable --no-uefi-secure-boot
sed -i 's/initrd16/initrdefi/g' "$ROOTFS/boot/grub/grub.cfg"
sed -i 's/linux16/linuxefi/g' "$ROOTFS/boot/grub/grub.cfg"
;;
x86_64) x86_64)
chroot "$ROOTFS" grub-install --target=i386-efi --recheck \ chroot "$ROOTFS" grub-install --target=i386-efi --recheck \
--removable --no-uefi-secure-boot --removable --uefi-secure-boot
chroot "$ROOTFS" grub-install --target=x86_64-efi --recheck \ chroot "$ROOTFS" grub-install --target=x86_64-efi --recheck \
--removable --no-uefi-secure-boot --removable --uefi-secure-boot
sed -i 's/initrd16/initrdefi/g' "$ROOTFS/boot/grub/grub.cfg" sed -i 's/initrd16/initrdefi/g' "$ROOTFS/boot/grub/grub.cfg"
sed -i 's/linux16/linuxefi/g' "$ROOTFS/boot/grub/grub.cfg" sed -i 's/linux16/linuxefi/g' "$ROOTFS/boot/grub/grub.cfg"
;; ;;
aarch64) aarch64)
chroot "$ROOTFS" grub-install --target=arm64-efi --recheck \ chroot "$ROOTFS" grub-install --target=arm64-efi --recheck \
--removable --no-uefi-secure-boot --removable --no-uefi-secure-boot
;; ;;
armh) armh)
chroot "$ROOTFS" grub-install --target=arm-efi --recheck \ chroot "$ROOTFS" grub-install --target=arm-efi --recheck \
--removable --no-uefi-secure-boot --removable --no-uefi-secure-boot
;; ;;
riscv64)
chroot "$ROOTFS" grub-install --target=riscv64-efi --recheck \
--removable --no-uefi-secure-boot
esac esac
sed -i '/GRUB_DISABLE_OS_PROBER=true/d' "$ROOTFS/etc/sysconfig/grub2" 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