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 1686470
Summary: | " grub2-mkconfig -o /boot/grub2/grub.cfg " does not find any fedora kernels | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Shlomi Fish <shlomif> | ||||||||
Component: | grub2 | Assignee: | Peter Jones <pjones> | ||||||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 30 | CC: | fmartine, lkundrak, pjones | ||||||||
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-03-11 10:46:16 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
Shlomi Fish
2019-03-07 14:06:32 UTC
That's expected, Fedora 30 now uses BootLoaderSpec snippets instead of having the menu entries in grub2.cfg: https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault You should be able to still use 40_custom (In reply to Javier Martinez Canillas from comment #1) > That's expected, Fedora 30 now uses BootLoaderSpec snippets instead of > having the menu entries in grub2.cfg: > > https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault > > You should be able to still use 40_custom Thanks for the reply. So how do I boot using these snippets? I do not see them in grub2 when booting. (In reply to Shlomi Fish from comment #2) > (In reply to Javier Martinez Canillas from comment #1) > > That's expected, Fedora 30 now uses BootLoaderSpec snippets instead of > > having the menu entries in grub2.cfg: > > > > https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault > > > > You should be able to still use 40_custom > > Thanks for the reply. So how do I boot using these snippets? I do not see > them in grub2 when booting. Did you install F30 or upgrade from F29? Also, is this an EFI or legacy BIOS install? Can you please share the following: 1) Content of /etc/grub2-efi.cfg (or /etc/grub2.cfg for legacy BIOS install) 2) Content of /boot/grub2/grubenv 3) The files in /boot/loader/entries Created attachment 1541916 [details]
Grub2 files as requested - my system is BIOS-based and i upgraded from f29
(In reply to Shlomi Fish from comment #4) > Created attachment 1541916 [details] Thanks, but the grub2.cfg and grubenv are symlinks so you should share the actual file they point to. Could you please share your /boot/grub2/grub.cfg? > Grub2 files as requested - my system is BIOS-based and i upgraded from f29 So then I wonder why your grubenv is a symlink, do you any grub2-efi-* packages installed? (In reply to Javier Martinez Canillas from comment #5) > (In reply to Shlomi Fish from comment #4) > > Created attachment 1541916 [details] > > Thanks, but the grub2.cfg and grubenv are symlinks so you should share the > actual file they point to. Could you please share your /boot/grub2/grub.cfg? > > > Grub2 files as requested - my system is BIOS-based and i upgraded from f29 > > So then I wonder why your grubenv is a symlink, do you any grub2-efi-* > packages installed? $ rpm -qa '*efi*' efi-filesystem-4-2.fc30.noarch grub2-efi-x64-2.02-71.fc30.x86_64 python3-olefile-0.46-2.fc30.noarch efi-srpm-macros-4-2.fc30.noarch efivar-libs-37-1.fc30.x86_64 efivar-37-1.fc30.x86_64 perl-String-RewritePrefix-0.007-12.fc30.noarch efibootmgr-16-5.fc30.x86_64 grub2-tools-efi-2.02-71.fc30.x86_64 I'll attach the files Created attachment 1542090 [details]
grubenv
Created attachment 1542091 [details]
grub.cfg
(In reply to Shlomi Fish from comment #6) > (In reply to Javier Martinez Canillas from comment #5) > > (In reply to Shlomi Fish from comment #4) > > > Created attachment 1541916 [details] > > > > Thanks, but the grub2.cfg and grubenv are symlinks so you should share the > > actual file they point to. Could you please share your /boot/grub2/grub.cfg? > > > > > Grub2 files as requested - my system is BIOS-based and i upgraded from f29 > > > > So then I wonder why your grubenv is a symlink, do you any grub2-efi-* > > packages installed? > > $ rpm -qa '*efi*' > efi-filesystem-4-2.fc30.noarch > grub2-efi-x64-2.02-71.fc30.x86_64 Right, so you shouldn't have this package installed since you are doing a legacy BIOS install. In fact, installing will break your grubenv since it overwrites it with a broken symlink. After removing the package you should create the grubenv again with "grub2-editenv create" and update the variables in grubenv again with "grub2-mkconfig -o /boot/grub2/grub.cfg" All your files looks correct. So you say that GRUB doesn't show you the menu entries that are defined in /boot/loader/entries/*.conf but does show you the ones you have defined in 40_custom? *** This bug has been marked as a duplicate of bug 1678445 *** |