View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017280 | CentOS-8 | grub2 | public | 2020-04-23 13:28 | 2020-05-25 09:15 |
Reporter | srsbzns | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 8.1.1911 | ||||
Summary | 0017280: Upgrading grub2 overwrites changes in /etc/default/grub | ||||
Description | For CentOS 8 virtual servers, OnApp currently requires that the following be set in /etc/default/grub (per https://docs.onapp.com/templates/centos-linux-templates): GRUB_ENABLE_BLSCFG=false The following is run afterwards to generate the config: grub2-mkconfig -o /boot/grub2/grub.cfg After making the above changes, CentOS 8 virtual servers reboot as expected. However, upgrading from grub2-tools-2.02-78.el8.x86_64.rpm to grub2-tools-2.02-78.el8_1.1.x86_64.rpm appears to overwrite /etc/default/grub, resulting in GRUB_ENABLE_BLSCFG being set to the following: GRUB_ENABLE_BLSCFG=true This results in the virtual server throwing the following error on next reboot: error: file '/boot/grub/grub.conf' not found. Expected behavior is that /etc/default/grub will retain settings between versions and will not be overwritten. | ||||
Steps To Reproduce | 1. Set 'GRUB_ENABLE_BLSCFG=false' in '/etc/default/grub' 2. Run 'grub2-mkconfig -o /boot/grub2/grub.cfg' 3. Use `dnf` to upgrade to 'grub2-tools-2.02-78.el8_1.1.x86_64.rpm' 4. Check 'GRUB_ENABLE_BLSCFG' in '/etc/default/grub' | ||||
Tags | boot, grub2 | ||||