reinstate grub rebuilding at the beginning

This commit is contained in:
lukas 2021-11-27 15:30:24 +01:00
parent ce56c92d7c
commit dfebe0f30c
2 changed files with 2 additions and 8 deletions

View File

@ -41,7 +41,7 @@ part / --fstype="ext4" --grow --label=root
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 # Unsure it is actually useful
%end
@ -116,12 +116,6 @@ echo "options kvm_intel nested=1" >> /mnt/sysimage/etc/modprobe.d/kvm.conf # Add
%end
%post --logfile=/root/bhi.log
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub otherwise the system won't boot properly
%end
%post --nochroot --logfile=/mnt/sysimage/root/dhi.log
truncate -s 0 /mnt/sysimage/usr/share/gnome-initial-setup/vendor.conf # remove content of vendor.conf so that all options are made available

View File

@ -41,7 +41,7 @@ part / --fstype="ext4" --grow --label=root
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 # Unsure it is actually useful
%end