From b84c4ebab4fcfa352c44703595e5e74980287264 Mon Sep 17 00:00:00 2001 From: Lukas Date: Sat, 27 Nov 2021 09:38:27 +0100 Subject: [PATCH] rebuild grub on the main, base-image --- blocks/base-hypervisor-a.cfg | 8 +------- blocks/base-hypervisor-ii.cfg | 8 +------- blocks/base.cfg | 2 +- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/blocks/base-hypervisor-a.cfg b/blocks/base-hypervisor-a.cfg index 0b5e7db..83dfc68 100644 --- a/blocks/base-hypervisor-a.cfg +++ b/blocks/base-hypervisor-a.cfg @@ -30,10 +30,4 @@ 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 - -%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 +%end # End of the %post section \ No newline at end of file diff --git a/blocks/base-hypervisor-ii.cfg b/blocks/base-hypervisor-ii.cfg index d8a435d..98db073 100644 --- a/blocks/base-hypervisor-ii.cfg +++ b/blocks/base-hypervisor-ii.cfg @@ -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 \ No newline at end of file +%end # End of the %post section \ No newline at end of file diff --git a/blocks/base.cfg b/blocks/base.cfg index d3bed88..013b171 100644 --- a/blocks/base.cfg +++ b/blocks/base.cfg @@ -48,6 +48,6 @@ generic-release-notes # "Release Notes" localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked. dnf update -y # Update the system -# grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly +grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly %end # End of the %post section \ No newline at end of file