Talk:EFI system partition

From ArchWiki
Jump to navigation Jump to search

You must use the root= kernel parameter in order to boot using this method

The sentence "You must use the root= kernel parameter in order to boot using this method" from EFI system partition#Using bind mount has been bugging me for while now. I traced its origins to Special:Diff/277007.

Are there situations where it's possible to omit the root= parameter (not counting boot loader magic since it also passes the parameter to the kernel)?

-- nl6720 (talk) 08:50, 20 April 2019 (UTC)

Technically its possible if you get systemd-auto-gpt-generator run in initramfs or you hard coded it in a custom kernel or initramfs. Of course this is unsupported.
Marcthe12 (talk) 05:42, 12 November 2019 (UTC)
Although the wiki was updated after systemd-auto-gpt-generator came into existence, I don't think it's referencing that. I have a slight suspicion that it could be about grub-mkconfig not liking a bind mounted /boot. I'll test it when I get the time. -- nl6720 (talk) 15:41, 12 November 2019 (UTC)
Just tested this, grub-mkconfig has no issue with a a bind mounted /boot. Whatever was the reason for the note, I'm removing it. -- nl6720 (talk) 07:57, 27 September 2020 (UTC)

Some firmware requires esp/EFI/BOOT/BOOTX64.EFI path

Had an issue with "no bootable image found" on an HP Elitebook. It appears that someone else had a similar problem here:

https://forums.opensuse.org/showthread.php/493175-Issues-with-booting-GPT-and-UEFI/page4

The solution is to change the path from, e.g. esp/EFI/arch_grub/grubx64.efi to esp/EFI/BOOT/BOOTX64.EFI (simply by copying the efi file).

Is this worth adding to the Troubleshooting section?

—This unsigned comment is by Kolo (talk) 13:26, 1 June 2020‎. Please sign your posts with ~~~~!

The solution should already be in all boot loader pages (GRUB#Default/fallback boot path, rEFInd#Installation with refind-install script, Syslinux#Installation on UEFI, etc.).
The default/fallback boot path is also briefly mentioned in Arch boot process#Under UEFI and Unified Extensible Firmware Interface, though not in the context of this issue. Since the issue is not relevant to the EFI system partition page, it should not be added here. If you want to document it (in a boot-loader-agnostic way), feel free to do so in Unified Extensible Firmware Interface#Troubleshooting.
-- nl6720 (talk) 07:55, 2 June 2020 (UTC)

Mounting the partition is not mandatory

I run GRUB in my UEFI/GPT setup, and I don't mount the EFI partition when booting the OS. In fact, I created the /efi directory but don't use it. This should be mentioned, IMO - Megver83 (talk) 05:06, 3 August 2020 (UTC)

It could be mentioned, but It needs to be clear that it doesn't apply when mounting it to /boot. E.g., something along the lines of: "If the EFI system partition's mountpoint (or bind mount) is not /boot, it can be left unmounted during everyday system usage. For example, configure /etc/fstab to mount it on first access..." -- nl6720 (talk) 08:26, 3 August 2020 (UTC)