Bug 2121359 - grub2-emu doesn't want to start
Summary: grub2-emu doesn't want to start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Martinez Canillas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-25 08:53 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2023-03-26 01:21 UTC (History)
8 users (show)

Fixed In Version: grub2-2.06-89.fc39 grub2-2.06-89.fc38 grub2-2.06-89.fc37
Clone Of:
Environment:
Last Closed: 2023-03-09 16:57:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screenshot with error shown briefly (240.48 KB, image/png)
2022-08-25 08:53 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
/etc/fstab file on the host (741 bytes, text/plain)
2022-08-25 08:55 UTC, Zbigniew Jędrzejewski-Szmek
no flags Details
grub2-emu fails to find kernel+initrd (29.62 KB, image/png)
2022-12-12 16:55 UTC, Michal Sekletar
no flags Details

Description Zbigniew Jędrzejewski-Szmek 2022-08-25 08:53:14 UTC
Created attachment 1907501 [details]
screenshot with error shown briefly

Description of problem:
I installed a basic F36 workstation installation in a VM with UEFI. All defaults.

Running grub2-emu fails:

$ sudo grub2-emu
Use 'grub-emu --kexec' to force a system restart.
Aborted. Press any key to exit.

There's a screenshot that is shown on alt-screen very briefly and goes away. I managed to capture it in a screenshot, attached.
The numbers that are shown match the fields in /etc/fstab.


Version-Release number of selected component (if applicable):
grub2-emu-2.06-52.fc36.x86_64

How reproducible:
Deterministic
It seems to work for some people, but not for other people, even though we tried to install VMs in a very similar way.

Steps to Reproduce:
1. virt-install --boot uefi ...
2. sudo grub2-emu

Comment 1 Zbigniew Jędrzejewski-Szmek 2022-08-25 08:55:54 UTC
Created attachment 1907504 [details]
/etc/fstab file on the host

Comment 2 Zbigniew Jędrzejewski-Szmek 2022-08-25 08:57:41 UTC
$ rpm -qa|grep grub2|sort
grub2-common-2.06-52.fc36.noarch
grub2-efi-ia32-2.06-52.fc36.x86_64
grub2-efi-ia32-cdboot-2.06-52.fc36.x86_64
grub2-efi-x64-2.06-52.fc36.x86_64
grub2-efi-x64-cdboot-2.06-52.fc36.x86_64
grub2-emu-2.06-52.fc36.x86_64
grub2-emu-modules-2.06-52.fc36.x86_64
grub2-pc-2.06-52.fc36.x86_64
grub2-pc-modules-2.06-52.fc36.noarch
grub2-tools-2.06-52.fc36.x86_64
grub2-tools-efi-2.06-52.fc36.x86_64
grub2-tools-extra-2.06-52.fc36.x86_64
grub2-tools-minimal-2.06-52.fc36.x86_64

$ sudo find /boot
/boot
/boot/.vmlinuz-5.18.19-200.fc36.x86_64.hmac
/boot/symvers-5.18.19-200.fc36.x86_64.gz
/boot/initramfs-5.18.19-200.fc36.x86_64.img
/boot/lost+found
/boot/vmlinuz-0-rescue-df492ec9a367430bacd6b30d5d02b2f1
/boot/extlinux
/boot/extlinux/ldlinux.c32
/boot/extlinux/reboot.c32
/boot/extlinux/pxechn.c32
/boot/extlinux/linux.c32
/boot/extlinux/vesamenu.c32
/boot/extlinux/libcom32.c32
/boot/extlinux/libmenu.c32
/boot/extlinux/mboot.c32
/boot/extlinux/kontron_wdt.c32
/boot/extlinux/kbdmap.c32
/boot/extlinux/ls.c32
/boot/extlinux/whichsys.c32
/boot/extlinux/ifcpu64.c32
/boot/extlinux/cmd.c32
/boot/extlinux/poweroff.c32
/boot/extlinux/gpxecmd.c32
/boot/extlinux/meminfo.c32
/boot/extlinux/sanboot.c32
/boot/extlinux/lua.c32
/boot/extlinux/ethersel.c32
/boot/extlinux/zzjson.c32
/boot/extlinux/cpu.c32
/boot/extlinux/memdisk
/boot/extlinux/chain.c32
/boot/extlinux/cptime.c32
/boot/extlinux/liblua.c32
/boot/extlinux/disk.c32
/boot/extlinux/ifplop.c32
/boot/extlinux/vesainfo.c32
/boot/extlinux/rosh.c32
/boot/extlinux/pwd.c32
/boot/extlinux/lfs.c32
/boot/extlinux/hexdump.c32
/boot/extlinux/sysdump.c32
/boot/extlinux/sdi.c32
/boot/extlinux/cat.c32
/boot/extlinux/dmi.c32
/boot/extlinux/ifcpu.c32
/boot/extlinux/dir.c32
/boot/extlinux/menu.c32
/boot/extlinux/config.c32
/boot/extlinux/cpuidtest.c32
/boot/extlinux/debug.c32
/boot/extlinux/pci.c32
/boot/extlinux/dmitest.c32
/boot/extlinux/hdt.c32
/boot/extlinux/pmload.c32
/boot/extlinux/host.c32
/boot/extlinux/dhcp.c32
/boot/extlinux/cpuid.c32
/boot/extlinux/elf.c32
/boot/extlinux/prdhcp.c32
/boot/extlinux/libutil.c32
/boot/extlinux/libgpl.c32
/boot/extlinux/vesa.c32
/boot/extlinux/pcitest.c32
/boot/extlinux/vpdtest.c32
/boot/extlinux/gfxboot.c32
/boot/extlinux/cmenu.c32
/boot/extlinux/syslinux.c32
/boot/extlinux/ifmemdsk.c32
/boot/.vmlinuz-5.17.0-0.rc7.116.fc36.x86_64.hmac
/boot/config-5.17.0-0.rc7.116.fc36.x86_64
/boot/grub2
/boot/grub2/grub.cfg
/boot/grub2/grubenv
/boot/grub2/fonts
/boot/grub2/fonts/unicode.pf2
/boot/symvers-5.17.0-0.rc7.116.fc36.x86_64.gz
/boot/initramfs-5.17.0-0.rc7.116.fc36.x86_64.img
/boot/vmlinuz-5.18.19-200.fc36.x86_64
/boot/efi
/boot/efi/EFI
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/BOOTIA32.EFI
/boot/efi/EFI/BOOT/BOOTX64.EFI
/boot/efi/EFI/BOOT/fbia32.efi
/boot/efi/EFI/BOOT/fbx64.efi
/boot/efi/EFI/fedora
/boot/efi/EFI/fedora/grub.cfg
/boot/efi/EFI/fedora/BOOTIA32.CSV
/boot/efi/EFI/fedora/BOOTX64.CSV
/boot/efi/EFI/fedora/gcdia32.efi
/boot/efi/EFI/fedora/gcdx64.efi
/boot/efi/EFI/fedora/grubia32.efi
/boot/efi/EFI/fedora/grubx64.efi
/boot/efi/EFI/fedora/mmia32.efi
/boot/efi/EFI/fedora/mmx64.efi
/boot/efi/EFI/fedora/shim.efi
/boot/efi/EFI/fedora/shimia32.efi
/boot/efi/EFI/fedora/shimx64.efi
/boot/efi/System
/boot/efi/System/Library
/boot/efi/System/Library/CoreServices
/boot/efi/System/Library/CoreServices/SystemVersion.plist
/boot/efi/mach_kernel
/boot/initramfs-0-rescue-df492ec9a367430bacd6b30d5d02b2f1.img
/boot/System.map-5.18.19-200.fc36.x86_64
/boot/loader
/boot/loader/entries
/boot/loader/entries/df492ec9a367430bacd6b30d5d02b2f1-5.17.0-0.rc7.116.fc36.x86_64.conf
/boot/loader/entries/df492ec9a367430bacd6b30d5d02b2f1-0-rescue.conf
/boot/loader/entries/df492ec9a367430bacd6b30d5d02b2f1-5.18.19-200.fc36.x86_64.conf
/boot/vmlinuz-5.17.0-0.rc7.116.fc36.x86_64
/boot/config-5.18.19-200.fc36.x86_64
/boot/System.map-5.17.0-0.rc7.116.fc36.x86_64

Comment 3 Robbie Harwood 2022-08-25 20:06:51 UTC
I'm not able to reproduce on either my rawhide or f36 VMs.

Comment 4 Robbie Harwood 2022-08-25 21:24:44 UTC
(I'm also aware of and debugging another issue that likely won't get a fix in fc36, so I recommend testing with either the rawhide version or our git tree for the time being.)

Comment 5 Zbigniew Jędrzejewski-Szmek 2022-08-26 15:10:58 UTC
I built the rawhide version in mock and installed that. I still get the same error (briefly, as before),
but now the graphical menu starts and doesn't work. When I press Enter to "boot" one of the items,
it says that it can't find "/vmlinuz-5.18.19-200.fc36.x86_64" and "/initramfs-5.18.19-200.fc36.x86_64.img"
and returns to the menu.

Please let me know if I can provide further information.

grub2-emu-2.06-55.fc36.x86_64

Comment 6 Michal Sekletar 2022-12-12 16:53:33 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #5)
> I built the rawhide version in mock and installed that. I still get the same
> error (briefly, as before),
> but now the graphical menu starts and doesn't work. When I press Enter to
> "boot" one of the items,
> it says that it can't find "/vmlinuz-5.18.19-200.fc36.x86_64" and
> "/initramfs-5.18.19-200.fc36.x86_64.img"
> and returns to the menu.
> 
> Please let me know if I can provide further information.
> 
> grub2-emu-2.06-55.fc36.x86_64

I just retested (basic scenario, i.e. freshly installed systemd + grub2-emu) on Fedora 37 and I can report the same issue. I get to menu, but booting the entry fails with error. Screenshots attached.

Comment 7 Michal Sekletar 2022-12-12 16:55:09 UTC
Created attachment 1932120 [details]
grub2-emu fails to find kernel+initrd

Comment 10 raravind 2023-02-09 17:11:23 UTC
Please use grub2-2.06-84.fc38 or later to check whether the issue is fixed.

Comment 11 Zbigniew Jędrzejewski-Szmek 2023-02-10 15:34:00 UTC
grub2-emu-2.06-85.fc38.x86_64

I get:

   GRUB version 2.06

   Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB 
   lists possible device or file completions.                                                                                 

grub> 

There's some different message that flashes for a fraction of a second first, but
I wasn't able to capture it.

Comment 12 Robbie Harwood 2023-03-09 16:57:49 UTC
I believe this is fixed in grub2-2.06-89.fc39.

If so, the issue was that BLS defines paths relative to the mountpoint of the filesystem containing snippets, not / or anything fixed.  To cope with that, we needed to detect the two cases in -emu.

Comment 13 Fedora Update System 2023-03-22 14:52:35 UTC
FEDORA-2023-f62a25cdcc has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f62a25cdcc

Comment 14 Fedora Update System 2023-03-22 14:52:36 UTC
FEDORA-2023-0ad0481bfa has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0ad0481bfa

Comment 15 Fedora Update System 2023-03-23 01:39:36 UTC
FEDORA-2023-0ad0481bfa has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0ad0481bfa`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0ad0481bfa

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2023-03-23 02:56:55 UTC
FEDORA-2023-f62a25cdcc has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f62a25cdcc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2023-03-26 00:20:11 UTC
FEDORA-2023-f62a25cdcc has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2023-03-26 01:21:15 UTC
FEDORA-2023-0ad0481bfa has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.