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
Created attachment 1907504 [details] /etc/fstab file on the host
$ 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
I'm not able to reproduce on either my rawhide or f36 VMs.
(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.)
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
(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.
Created attachment 1932120 [details] grub2-emu fails to find kernel+initrd
Please use grub2-2.06-84.fc38 or later to check whether the issue is fixed.
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.
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.
FEDORA-2023-f62a25cdcc has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f62a25cdcc
FEDORA-2023-0ad0481bfa has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0ad0481bfa
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.
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.
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.
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.