Issue
Description of problem: When performing a yum/dnf upgrade, the contents of /etc/default/grub are overwritten. If an option such as 'GRUB_ENABLE_BLSCFG' is set to 'False', it will revert to the default configuration and regenerate the GRUB configuration file.
Version-Release number of selected component (if applicable): grub2-2.02
How reproducible: Always
Steps to Reproduce:
1. # yum downgrade grub2
2. # vi /etc/default/grub
3. # grep BLS
/etc/default/grub
GRUB_ENABLE_BLSCFG=false
4. # grub2-mkconfig -o /boot/grub2/grub.cfg
5. # grep bls /boot/grub2/grub.cfg
(No output)
6. # yum upgrade grub2
7. # grep BLS
/etc/default/grub
GRUB_ENABLE_BLSCFG=true
8. # grep bls /boot/grub2/grub.cfg
insmod blscfg
blscfg
Actual results:
/etc/default/grub GRUB_ENABLE_BLSCFG is reset to 'true'
blscfg is configured in /boot/grub2/grub.cfg
Expected results:
/etc/default/grub GRUB_ENABLE_BLSCFG should keep previous 'false' configuration.
blscfg should NOT be configured in /boot/grub2/grub.cfg
Additional info:
GRUB_ENABLE_BLSCFG is definitely affected. This does not affect GRUB_TIMEOUT. I have not tested any other fields.