View previous topic :: View next topic |
Author |
Message |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 2:20 pm Post subject: [SOLVED] VM using UEFI doesn't get a GRUB menu |
|
|
Hi all. Not sure this is the right area for this question, if not, please move.
I've recently put together a new virt server, with some new VMs, and figured I ought to get with the program and use UEFI firmware. Everything installs and build just fine, but when I boot the VMs, they never stop at a grub menu to give me any choices about what to boot, just go straight into the default kernel.
The virt server itself is also using UEFI, and it works fine. The virt server uses an AMI bios, the VMs Tiano.
What should I look for? What other info should I provide?
Thanks in advance.
Last edited by therealjrd on Tue Apr 15, 2025 1:57 am; edited 1 time in total |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1632 Location: Richmond Hill, Canada
|
Posted: Mon Apr 14, 2025 2:31 pm Post subject: |
|
|
Please provide the type of hypervisor used in this case. Is it QEMU, Virtualbox or VMWare? |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 3:58 pm Post subject: |
|
|
I'm running QEMU 8.2.3 on an amd64 machine. |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1632 Location: Richmond Hill, Canada
|
Posted: Mon Apr 14, 2025 4:04 pm Post subject: |
|
|
therealjrd wrote: | I'm running QEMU 8.2.3 on an amd64 machine. |
Please provide qemu command used for booting the problem VM. |
|
Back to top |
|
 |
sMueggli Guru

Joined: 03 Sep 2022 Posts: 579
|
Posted: Mon Apr 14, 2025 4:08 pm Post subject: |
|
|
What is the output of the command "efibootmgr" from the Qemu guest? |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 4:29 pm Post subject: |
|
|
pingtoo wrote: | therealjrd wrote: | I'm running QEMU 8.2.3 on an amd64 machine. |
Please provide qemu command used for booting the problem VM. |
I'm running all this from virt-manager and libvirt, and using the "Power on the Virtual Machine" button. Not sure how to dig down and find out what the actual invocation is. |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 4:31 pm Post subject: |
|
|
sMueggli wrote: | What is the output of the command "efibootmgr" from the Qemu guest? |
Code: | # efibootmgr
BootCurrent: 01FD
Timeout: 0 seconds
BootOrder: 01FD,01FE,01FF,0200,0001,0000,0003
Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* UEFI Misc Device PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0){auto_created_boot_option}
Boot0003* EFI Internal Shell FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot01FD* UMC 1 Gentoo Linux 6.12.21 HD(1,GPT,74aa318d-5ff0-4a33-a5a8-16c09e584ada,0x800,0x100000)/\EFI\Gentoo\vmlinuz-6.12.21-gentoo-jrd.efi2000200069006e0069007400720064003d005c004500460049005c00470065006e0074006f006f005c0069006e0069007400720061006d00660073002d0036002e00310032002e00320031002d00670065006e0074006f006f002d006a00720064002e0069006d006700
Boot01FE* UMC 2 Gentoo Linux 6.12.21 HD(1,GPT,74aa318d-5ff0-4a33-a5a8-16c09e584ada,0x800,0x100000)/\EFI\Gentoo\vmlinuz-6.12.21-gentoo.efi2000200069006e0069007400720064003d005c004500460049005c00470065006e0074006f006f005c0069006e0069007400720061006d00660073002d0036002e00310032002e00320031002d00670065006e0074006f006f002e0069006d006700
Boot01FF* UMC 3 Gentoo Linux 6.12.21 HD(1,GPT,74aa318d-5ff0-4a33-a5a8-16c09e584ada,0x800,0x100000)/\EFI\Gentoo\vmlinuz-6.12.21-gentoo-old.efi2000
Boot0200* UMC 4 Gentoo Linux 6.12.21 HD(1,GPT,74aa318d-5ff0-4a33-a5a8-16c09e584ada,0x800,0x100000)/\EFI\Gentoo\vmlinuz-6.12.21-gentoo-jrd-old.efi2000200069006e0069007400720064003d005c004500460049005c00470065006e0074006f006f005c0069006e0069007400720061006d00660073002d0036002e00310032002e00320031002d00670065006e0074006f006f002d006a00720064002e0069006d0067002e006f006c006400
|
I bet "Timeout: 0 seconds" is the problem. |
|
Back to top |
|
 |
sMueggli Guru

Joined: 03 Sep 2022 Posts: 579
|
Posted: Mon Apr 14, 2025 4:56 pm Post subject: |
|
|
The vm doesn't use Grub, so there is no Grub Menu.
I guess you should have a look at the sys-kernel/installkernel USE flags. |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 4:57 pm Post subject: |
|
|
. . . but setting timeout to 5 with
Code: |
# efibootmgr --timeout 5
|
makes no difference  |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 4:59 pm Post subject: |
|
|
sMueggli wrote: | The vm doesn't use Grub, so there is no Grub Menu.
I guess you should have a look at the sys-kernel/installkernel USE flags. |
Really!!
I could have sworn I got that right. I'll take another look at those USE flags. Thanks.
What should the output of efibootmgr look like if I do get grub properly set up? |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1632 Location: Richmond Hill, Canada
|
Posted: Mon Apr 14, 2025 4:59 pm Post subject: |
|
|
Two things,
You can do try "ps aux | grep -i qemu" from host command to find the VM and its command arguments
the efimanager output show no entry reference to grub, most of them show using linux kernel ".efi" file. so it boot into linux is expected.
it would be better use efibootmgr with "-u" option to translate some of text into more readable text.
At this point "qemu" output may not relevant because qemu seems to correctly boot with UEFI, however should you wish to make adjustment at QEMU level then it will be needed. (I don't know much about vir-manager so I can only suggest at QEMU level)
If you expect use GRUB you should boot into Linux and from there use efibootmgr to create entry or use gentoo kernel/grub installation procedure (I don't know what that command is) to setup. |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 5:10 pm Post subject: |
|
|
Doing a little more scanning of wiki pages etc:
HD(1,GPT,74aa blah blah is my vfat formatted EFI partition. I'm guessing I should not have kernels there, instead I should have a grub.efi and probably grub.cfg. Should the kernels and initrds end up in /boot, as in a pre-EFI setup? |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1632 Location: Richmond Hill, Canada
|
Posted: Mon Apr 14, 2025 6:10 pm Post subject: |
|
|
therealjrd wrote: | Doing a little more scanning of wiki pages etc:
HD(1,GPT,74aa blah blah is my vfat formatted EFI partition. I'm guessing I should not have kernels there, instead I should have a grub.efi and probably grub.cfg. Should the kernels and initrds end up in /boot, as in a pre-EFI setup? |
"pre-EFI"? Do you mean post EFI? EFI boot manager is known as pre-boot manager, so "pre-EFI" there is nothing.
Usually the *.efi" should be on the ESP partition's file system (FAT based), whereas grub.cfg usually located in /boot. and /boot does not need to be on ESP, it can be located on rootfs too. |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 6:18 pm Post subject: |
|
|
I meant "before EFI became a thing", ie old style DOS boot.
So in the setup I have so far, /boot is a directory on the root (ext4) partition. Which seem correct. There's /boot/grub, which contains grub.cfg, grubenv, and a couple other things including a directory called x86_64-efi, which contains what looks like a bunch of grub modules.
The .efis (which are all kernels) reside on the vfat partition.
What I'm still missing is how, at boot time, the efi firmware figures out how to invoke grub.I'm in the process of spinning up a new VM to experiment on, and am planning on carefully following https://wiki.gentoo.org/wiki/GRUB2_Quick_Start in hopes that that will get me the result I'm after.
Thanks for the hints so far. Any other further thoughts welcome. |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1632 Location: Richmond Hill, Canada
|
Posted: Mon Apr 14, 2025 6:29 pm Post subject: |
|
|
I just did a quick glance of Grub2 quick start wiki. I suggest you follow the see also "GRUB: at bottom for better describe for using GRUB with EFI. |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 9:09 pm Post subject: |
|
|
Ok. I did some more horsing around.
One thing that messed me up previously is that different bits of the doc talk about mounting the ESP either at /efi or /boot/efi. Those produce different results! I had to carefully read through the grub wiki to convince myself I had a semi coherent picture. I ended up concluding that mounting it at /efi works better.
Second thing: I was again confused about whether I wanted sys-kernel/installkernel to be build with USE flag uefi-stub. Reading through the install manual carefully, I think I just got a little confused about which branch I was on. Re-reading it, it's clear that uefi-stub wants to be used to boot the kernel directly from the UEFI firmware, which is not what I wanted, but is where I started in this thread.
I cleaned up the extra kernel images etc which were in /efi/EFI/Gentoo/, leaving only grubx64,efi. I re-emerged installkernel without the uefi-stub flag, re-ran it, and verified that it put the kernel etc in /boot. With a /boot/grub/grub.cfg which looked sensible. I re-ran grub-install --efi-directory=/efi and it said it was successful.
Rebooted, and the EFI firmware dropped in to a debug shell of sorts. It couldn't find anything to boot. I eventually copied grubx64.efi from /efi/EFI/Gentoo/ to /efi/EFI/, and voila! It boots into a grub menu, from which I can go ahead and boot the kernel.
So I can now make a system which behaves the way I want, but I suspect that I still have something configured wrong. I would expect grub-install to drop that file, and it did, but not in the place the firmware expected to find it. So: Further hints? Maybe there's some trick to configuring/using grub-install that I'm getting wrong.
Thanks for all the aid and comfort so far. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5611 Location: Bavaria
|
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1632 Location: Richmond Hill, Canada
|
Posted: Mon Apr 14, 2025 10:45 pm Post subject: |
|
|
It is a little bit hard to guess base on your post on what happen. (I am not grub expert, so it is I am not able 100% certain that grub-install -efi-directory=/eti did right thing or not)
But if your share content of /efi/ and /boot/ (listing use "tree" if you have it installed) And efibootmgr -u may help better reverse engineer on what happen and better suggestion. |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Mon Apr 14, 2025 11:26 pm Post subject: |
|
|
Thanks!
Here's some data, a tree dump of /efi (which has my ESP mounted on it) and /boot (which is a directory on my root partition)
Code: |
# tree /efi
/efi
|-- EFI
| |-- Gentoo
| | `-- grubx64.efi
| `-- grubx64.efi
`-- grub
`-- grub.cfg
4 directories, 3 files
# tree /boot
/boot
|-- config-6.12.21-gentoo-jrd
|-- config-6.12.21-gentoo-jrd.old
|-- efi
|-- grub
| |-- fonts
| | `-- unicode.pf2
| |-- grub.cfg
| |-- grub.cfg~
| |-- grubenv
| |-- locale
| | |-- ast.mo
| | |-- ca.mo
| | |-- da.mo
| | |-- de_CH.mo
| | |-- de@hebrew.mo
| | |-- de.mo
| | |-- en@arabic.mo
| | |-- en@cyrillic.mo
| | |-- en@greek.mo
| | |-- en@hebrew.mo
| | |-- en@piglatin.mo
| | |-- en@quot.mo
| | |-- eo.mo
| | |-- es.mo
| | |-- fi.mo
| | |-- fr.mo
| | |-- gl.mo
| | |-- he.mo
| | |-- hr.mo
| | |-- hu.mo
| | |-- id.mo
| | |-- it.mo
| | |-- ja.mo
| | |-- ka.mo
| | |-- ko.mo
| | |-- lg.mo
| | |-- lt.mo
| | |-- nb.mo
| | |-- nl.mo
| | |-- pa.mo
| | |-- pl.mo
| | |-- pt_BR.mo
| | |-- pt.mo
| | |-- ro.mo
| | |-- ru.mo
| | |-- sl.mo
| | |-- sr.mo
| | |-- sv.mo
| | |-- tr.mo
| | |-- uk.mo
| | |-- vi.mo
| | |-- zh_CN.mo
| | `-- zh_TW.mo
| |-- themes
| | `-- starfield
| | |-- blob_w.png
| | |-- boot_menu_c.png
| | |-- boot_menu_e.png
| | |-- boot_menu_ne.png
| | |-- boot_menu_n.png
| | |-- boot_menu_nw.png
| | |-- boot_menu_se.png
| | |-- boot_menu_s.png
| | |-- boot_menu_sw.png
| | |-- boot_menu_w.png
| | |-- COPYING.CC-BY-SA-3.0
| | |-- dejavu_10.pf2
| | |-- dejavu_12.pf2
| | |-- dejavu_14.pf2
| | |-- dejavu_16.pf2
| | |-- dejavu_bold_14.pf2
| | |-- README
| | |-- slider_c.png
| | |-- slider_n.png
| | |-- slider_s.png
| | |-- starfield.png
| | |-- terminal_box_c.png
| | |-- terminal_box_e.png
| | |-- terminal_box_ne.png
| | |-- terminal_box_n.png
| | |-- terminal_box_nw.png
| | |-- terminal_box_se.png
| | |-- terminal_box_s.png
| | |-- terminal_box_sw.png
| | |-- terminal_box_w.png
| | `-- theme.txt
| `-- x86_64-efi
| |-- acpi.mod
| |-- adler32.mod
| |-- affs.mod
| |-- afs.mod
| |-- afsplitter.mod
| |-- ahci.mod
| |-- all_video.mod
| |-- aout.mod
| |-- appleldr.mod
| |-- archelp.mod
| |-- ata.mod
| |-- at_keyboard.mod
| |-- backtrace.mod
| |-- bfs.mod
| |-- bitmap.mod
| |-- bitmap_scale.mod
| |-- bli.mod
| |-- blocklist.mod
| |-- boot.mod
| |-- bsd.mod
| |-- bswap_test.mod
| |-- btrfs.mod
| |-- bufio.mod
| |-- cat.mod
| |-- cbfs.mod
| |-- cbls.mod
| |-- cbmemc.mod
| |-- cbtable.mod
| |-- cbtime.mod
| |-- chain.mod
| |-- cmdline_cat_test.mod
| |-- cmp.mod
| |-- cmp_test.mod
| |-- command.lst
| |-- configfile.mod
| |-- core.efi
| |-- cpio_be.mod
| |-- cpio.mod
| |-- cpuid.mod
| |-- crc64.mod
| |-- cryptodisk.mod
| |-- crypto.lst
| |-- crypto.mod
| |-- cs5536.mod
| |-- ctz_test.mod
| |-- datehook.mod
| |-- date.mod
| |-- datetime.mod
| |-- diskfilter.mod
| |-- disk.mod
| |-- div.mod
| |-- div_test.mod
| |-- dm_nv.mod
| |-- echo.mod
| |-- efifwsetup.mod
| |-- efi_gop.mod
| |-- efinet.mod
| |-- efitextmode.mod
| |-- efi_uga.mod
| |-- ehci.mod
| |-- elf.mod
| |-- eval.mod
| |-- exfat.mod
| |-- exfctest.mod
| |-- ext2.mod
| |-- extcmd.mod
| |-- f2fs.mod
| |-- fat.mod
| |-- file.mod
| |-- fixvideo.mod
| |-- font.mod
| |-- fshelp.mod
| |-- fs.lst
| |-- functional_test.mod
| |-- gcry_arcfour.mod
| |-- gcry_blowfish.mod
| |-- gcry_camellia.mod
| |-- gcry_cast5.mod
| |-- gcry_crc.mod
| |-- gcry_des.mod
| |-- gcry_dsa.mod
| |-- gcry_idea.mod
| |-- gcry_md4.mod
| |-- gcry_md5.mod
| |-- gcry_rfc2268.mod
| |-- gcry_rijndael.mod
| |-- gcry_rmd160.mod
| |-- gcry_rsa.mod
| |-- gcry_seed.mod
| |-- gcry_serpent.mod
| |-- gcry_sha1.mod
| |-- gcry_sha256.mod
| |-- gcry_sha512.mod
| |-- gcry_tiger.mod
| |-- gcry_twofish.mod
| |-- gcry_whirlpool.mod
| |-- geli.mod
| |-- gettext.mod
| |-- gfxmenu.mod
| |-- gfxterm_background.mod
| |-- gfxterm_menu.mod
| |-- gfxterm.mod
| |-- gptsync.mod
| |-- grub.efi
| |-- gzio.mod
| |-- halt.mod
| |-- hashsum.mod
| |-- hdparm.mod
| |-- hello.mod
| |-- help.mod
| |-- hexdump.mod
| |-- hfs.mod
| |-- hfspluscomp.mod
| |-- hfsplus.mod
| |-- http.mod
| |-- iorw.mod
| |-- iso9660.mod
| |-- jfs.mod
| |-- jpeg.mod
| |-- json.mod
| |-- keylayouts.mod
| |-- keystatus.mod
| |-- ldm.mod
| |-- legacycfg.mod
| |-- legacy_password_test.mod
| |-- linux16.mod
| |-- linux.mod
| |-- loadbios.mod
| |-- loadenv.mod
| |-- loopback.mod
| |-- lsacpi.mod
| |-- lsefimmap.mod
| |-- lsefi.mod
| |-- lsefisystab.mod
| |-- lsmmap.mod
| |-- ls.mod
| |-- lspci.mod
| |-- lssal.mod
| |-- luks2.mod
| |-- luks.mod
| |-- lvm.mod
| |-- lzopio.mod
| |-- macbless.mod
| |-- macho.mod
| |-- mdraid09_be.mod
| |-- mdraid09.mod
| |-- mdraid1x.mod
| |-- memdisk.mod
| |-- memrw.mod
| |-- minicmd.mod
| |-- minix2_be.mod
| |-- minix2.mod
| |-- minix3_be.mod
| |-- minix3.mod
| |-- minix_be.mod
| |-- minix.mod
| |-- mmap.mod
| |-- moddep.lst
| |-- modinfo.sh
| |-- morse.mod
| |-- mpi.mod
| |-- msdospart.mod
| |-- mul_test.mod
| |-- multiboot2.mod
| |-- multiboot.mod
| |-- nativedisk.mod
| |-- net.mod
| |-- newc.mod
| |-- nilfs2.mod
| |-- normal.mod
| |-- ntfscomp.mod
| |-- ntfs.mod
| |-- odc.mod
| |-- offsetio.mod
| |-- ohci.mod
| |-- part_acorn.mod
| |-- part_amiga.mod
| |-- part_apple.mod
| |-- part_bsd.mod
| |-- part_dfly.mod
| |-- part_dvh.mod
| |-- part_gpt.mod
| |-- partmap.lst
| |-- part_msdos.mod
| |-- part_plan.mod
| |-- part_sun.mod
| |-- part_sunpc.mod
| |-- parttool.lst
| |-- parttool.mod
| |-- password.mod
| |-- password_pbkdf2.mod
| |-- pata.mod
| |-- pbkdf2.mod
| |-- pbkdf2_test.mod
| |-- pcidump.mod
| |-- pgp.mod
| |-- plainmount.mod
| |-- play.mod
| |-- png.mod
| |-- priority_queue.mod
| |-- probe.mod
| |-- procfs.mod
| |-- progress.mod
| |-- raid5rec.mod
| |-- raid6rec.mod
| |-- random.mod
| |-- rdmsr.mod
| |-- read.mod
| |-- reboot.mod
| |-- regexp.mod
| |-- reiserfs.mod
| |-- relocator.mod
| |-- romfs.mod
| |-- scsi.mod
| |-- search_fs_file.mod
| |-- search_fs_uuid.mod
| |-- search_label.mod
| |-- search.mod
| |-- serial.mod
| |-- setjmp.mod
| |-- setjmp_test.mod
| |-- setpci.mod
| |-- sfs.mod
| |-- shift_test.mod
| |-- signature_test.mod
| |-- sleep.mod
| |-- sleep_test.mod
| |-- smbios.mod
| |-- spkmodem.mod
| |-- squash4.mod
| |-- strtoull_test.mod
| |-- syslinuxcfg.mod
| |-- tar.mod
| |-- terminal.lst
| |-- terminal.mod
| |-- terminfo.mod
| |-- test_blockarg.mod
| |-- testload.mod
| |-- test.mod
| |-- testspeed.mod
| |-- tftp.mod
| |-- tga.mod
| |-- time.mod
| |-- tpm.mod
| |-- trig.mod
| |-- tr.mod
| |-- true.mod
| |-- udf.mod
| |-- ufs1_be.mod
| |-- ufs1.mod
| |-- ufs2.mod
| |-- uhci.mod
| |-- usb_keyboard.mod
| |-- usb.mod
| |-- usbms.mod
| |-- usbserial_common.mod
| |-- usbserial_ftdi.mod
| |-- usbserial_pl2303.mod
| |-- usbserial_usbdebug.mod
| |-- usbtest.mod
| |-- video_bochs.mod
| |-- video_cirrus.mod
| |-- video_colors.mod
| |-- video_fb.mod
| |-- videoinfo.mod
| |-- video.lst
| |-- video.mod
| |-- videotest_checksum.mod
| |-- videotest.mod
| |-- wrmsr.mod
| |-- xfs.mod
| |-- xnu.mod
| |-- xnu_uuid.mod
| |-- xnu_uuid_test.mod
| |-- xzio.mod
| |-- zfscrypt.mod
| |-- zfsinfo.mod
| |-- zfs.mod
| `-- zstd.mod
|-- initramfs-6.12.21-gentoo-jrd.img
|-- initramfs-6.12.21-gentoo-jrd.img.old
|-- System.map-6.12.21-gentoo-jrd
|-- System.map-6.12.21-gentoo-jrd.old
|-- vmlinuz-6.12.21-gentoo-jrd
`-- vmlinuz-6.12.21-gentoo-jrd.old
8 directories, 365 files
#
|
Note that the copy of grubx64.efi in /efi/EFI is the one I copied there by hand; grub-install puts it in /efi/EFI/Gentoo
Here's the output of efibootmgr
Code: |
# efibootmgr -u
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000,0003
Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* UEFI Misc Device PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)ê±èé¼äµàº
á«¢â±ë
Boot0002* gentoo HD(1,GPT,74aa318d-5ff0-4a33-a5a8-16c09e584ada,0x800,0x100000)/\EFI\gentoo\grubx64.efi
Boot0003* EFI Internal Shell FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
|
A thing which jumps out at me: Boot0002 references \EFI\gentoo\grubx64.efi, not \EFI\Gentoo\grubx64.efi. I can't think what might be causing that case discrepancy. Maybe something which is trying to be windows compatible and distorting the case? Dunno.
I'll take a look at that other reference after dinner. My preference would be to keep grub in the picture. I have that now, but it makes me queasy to have to copy that file around by hand.
Thanks again. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5611 Location: Bavaria
|
Posted: Mon Apr 14, 2025 11:51 pm Post subject: |
|
|
therealjrd wrote: | Note that the copy of grubx64.efi in /efi/EFI is the one I copied there by hand; grub-install puts it in /efi/EFI/Gentoo
Code: | # efibootmgr -u
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001,0000,0003
Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* UEFI Misc Device PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)ê±èé¼äµàº
á«¢â±ë
Boot0002* gentoo HD(1,GPT,74aa318d-5ff0-4a33-a5a8-16c09e584ada,0x800,0x100000)/\EFI\gentoo\grubx64.efi
Boot0003* EFI Internal Shell FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1) |
A thing which jumps out at me: Boot0002 references \EFI\gentoo\grubx64.efi, not \EFI\Gentoo\grubx64.efi. I can't think what might be causing that case discrepancy. Maybe something which is trying to be windows compatible and distorting the case? [...] |
Dont worry. Everything is okay. UEFI dont care about uppercase and lowercase
In the first line you see which entry was booted (0002). As there is no UEFI entry pointing to \efi\grub you can delete it; you need only \EFI\gentoo\grubx64.efi (and yes \EFI\Gentoo was created by an installation routine; possibly by "installkernel" when you run it with use-flag "efistub" the first time). AFAIK the grub-install would create a \EFI\gentoo (lowercase). _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
therealjrd Tux's lil' helper

Joined: 18 May 2006 Posts: 133
|
Posted: Tue Apr 15, 2025 1:57 am Post subject: |
|
|
Ok, thanks. I remain somewhat confused. In an earlier experiment, the VM wouldn't boot unless I copied grubx64.efi from /efi/EFI/Gentoo to /eft/EFI. But I just tried removing the one in /efi/EFI, and it booted fine. I dunno.
So my summary:
If you want to use grub with EFI, DO NOT use uefi-stub USE flag with installkernel, and DO mount the ESP (vfat) partition at /efi. Then let the tools do their thing.
Thanks all for all your help! |
|
Back to top |
|
 |
|