Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1599445
Summary: | grub2-mkconfig creates invalid grub.cfg | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Heiko Adams <bugzilla> | ||||||||||
Component: | grub2 | Assignee: | Peter Jones <pjones> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 28 | CC: | fmartine, lkundrak, pjones, shachaf.gold, valdis.kletnieks, yann, zkabelac | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | x86_64 | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2019-01-29 10:08:23 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Heiko Adams
2018-07-09 20:43:59 UTC
Created attachment 1457599 [details]
backuped correct grub.cfg from
Created attachment 1457600 [details]
invalid grub config created by grub2-mkconfig
(In reply to Heiko Adams from comment #2) > Created attachment 1457600 [details] > invalid grub config created by grub2-mkconfig By looking at the grub config file created, this is using the blscfg command which means that attempts to populate the menu entries from BLS fragments. This is done by the 10_linux script if either GRUB_ENABLE_BLSCFG=true in /etc/default/grub or grubby isn't installed. I guess in your case is the latter? grubby is installed Created attachment 1457849 [details]
File from /etc/default/grub
(In reply to Heiko Adams from comment #5) > Created attachment 1457849 [details] > File from /etc/default/grub You have GRUB_ENABLE_BLSCFG=true there, so should remove that line if you don't want a grub.cfg that looks for BLS fragments to populate the menu entries. Okay, that did the trick. But why is this BLS thing not working on my system? Maybe because $sudo ls /boot/loader/entries/ has no results (In reply to Heiko Adams from comment #8) > Maybe because > $sudo ls /boot/loader/entries/ > has no results Ah Ok, it was not clear to me from the report that you wanted to use BLS, since the backed grub.cfg had grub menu entries on it. So to use BLS you should run the grub2-switch-to-blscfg script to populate the BLS fragments in /boot/loader/entries. My Problem was that something switched GRUB_ENABLE_BLSCFG in /etc/default/grub to true and generated a new grub.cfg which caused in a non bootable system. Or in other words: The (automatic?) migration to BLSCFG stopped at half of the way The only action that switches to a grub2 BLS configuration is removing grubby. But you said that grubby was installed in your system in Comment 4. We changed in 2.02-39.fc28 the path to the BLS directory due feedback on fedora-devel mainling list. It was in /boot/efi/EFI/fedora/loader/entries before and now is in /boot/loader/entries to be consistent with non-EFI systems. That's strange because I did *not* change that setting to activate BLS so must be activated (by accident?) by one of the last grub2 updates. That's very strange indeed, I don't see of a change that could have set that variable in /etc/default/grub. Thanks for the report, I'll double check again if there's something that could have changed the setting. *** Bug 1649571 has been marked as a duplicate of this bug. *** hello, in case it helps, i found that the command in the config file should be bls_import instead of blscfg... made it work on my machine. This bug was due grub2-switch-to-blscfg not copying the latest blscfg module (that contains the blscfg command) and grub2 using the old blscfg that only supported the bls_import command. This has been fixed in Rawhide / Fedora 30. |