From e565b009da6cefdb68386507af8453ffd8a79bf6 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 5 Nov 2022 23:12:50 -0400 Subject: [PATCH] Apply workaround for issues with grub-bls KIWI currently configures grub2 slightly incorrectly, such that installing new kernels does not correctly switches the default kernel to the new one. Work around this while we wait for a fix in KIWI to deal with this problem. Reference: https://github.com/OSInside/kiwi/issues/2198 --- config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.sh b/config.sh index 6271a15..9c5cd7e 100755 --- a/config.sh +++ b/config.sh @@ -33,6 +33,13 @@ touch /etc/machine-id ## remove random seed, the newly installed instance should make its own rm -f /var/lib/systemd/random-seed +#====================================== +# Configure grub correctly +#-------------------------------------- +## Works around issues with grub-bls +## See: https://github.com/OSInside/kiwi/issues/2198 +echo "GRUB_DEFAULT=saved" >> /etc/default/grub + #====================================== # Delete & lock the root user password #--------------------------------------