rebuild grub on the main, base-image

This commit is contained in:
2021-11-27 09:38:27 +01:00
parent b429fc6114
commit b84c4ebab4
3 changed files with 3 additions and 15 deletions

View File

@ -32,10 +32,4 @@ echo "options kvm_intel nested=1" >> /mnt/sysimage/etc/modprobe.d/kvm.conf # Add
# 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
%post --logfile=/root/bhi.log
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly
%end
%end # End of the %post section