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
This commit is contained in:
Neal Gompa 2022-11-05 23:12:50 -04:00
parent 3cdf005975
commit e565b009da

View File

@ -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
#--------------------------------------