From dc73b8b67c065ea1ed21481cd1b4d99482c21ac3 Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 26 Nov 2021 16:14:28 +0100 Subject: [PATCH] add grub regeneration If the GRUB is not regenerated at the end, then kernel arguments are not taken into account --- blocks/base-hypervisor-a.cfg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/blocks/base-hypervisor-a.cfg b/blocks/base-hypervisor-a.cfg index 83dfc68..0b5e7db 100644 --- a/blocks/base-hypervisor-a.cfg +++ b/blocks/base-hypervisor-a.cfg @@ -30,4 +30,10 @@ echo "options kvm_amd nested=1" >> /etc/modprobe.d/kvm.conf # Add support for ne # The following part seems useless too. No need to regenerate grub # grub2-mkconfig -o /mnt/sysimage/boot/grub2/grub.cfg # Update grub. Does it fail ? /usr/sbin/grub2-probe: error: failed to get canonical path of `LiveOS_rootfs'. -%end # End of the %post section \ No newline at end of file +%end # End of the %post section + +%post --logfile=/root/bha.log + +grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly + +%end \ No newline at end of file