Commit 11e1bf73 authored by Alexey Shabalin's avatar Alexey Shabalin Committed by Michael Shigorin

tar2fs: add grub support

...for vm images; BIOS one tested, EFI one untested yet but will be required for AArch64 VMs it seems.
parent f35351d8
......@@ -300,6 +300,12 @@ image=/boot/vmlinuz
boot=$BLOCKDEV
$LILO_COMMON
EOF
elif [ -x "$ROOTFS"/usr/sbin/grub-efi-autoupdate ]; then
chroot "$ROOTFS" grub-mkconfig -o /boot/grub/grub.cfg
chroot "$ROOTFS" grub-install
elif [ -x "$ROOTFS"/usr/sbin/grub-autoupdate ]; then
chroot "$ROOTFS" grub-mkconfig -o /boot/grub/grub.cfg
chroot "$ROOTFS" grub-install --target=i386-pc "$LOOPDEV"
fi
if [ -n "$SUDO_USER" ]; then
......
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