You are not logged in.

#1 Yesterday 03:19:46

componentscience
Member
Registered: 2024-01-05
Posts: 24

Feedback before making a wiki edit regarding ESP partitions

Hello,

Just looking for any feedback regarding a note in the wiki about ESP partition mount points. It appears to be either outdated or in need of clarification if using UKIs. I have successfully installed Arch Linux many times with systemd-boot using only an '/efi' directory and a UKI. Thoughts?

https://wiki.archlinux.org/title/EFI_sy … unt_points

** {{Note|Only [[GRUB]] and [[rEFInd]] support this scheme at the moment.}}

Offline

#2 Yesterday 06:30:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: Feedback before making a wiki edit regarding ESP partitions

Offline

#3 Yesterday 10:41:04

Erus_Iluvatar
Wiki Admin
Registered: 2010-04-01
Posts: 141

Re: Feedback before making a wiki edit regarding ESP partitions

I've tried to improve it, you're not the first person to find that part unclear in the last months.


Acta, Non Verba

Offline

#4 Yesterday 12:57:05

componentscience
Member
Registered: 2024-01-05
Posts: 24

Re: Feedback before making a wiki edit regarding ESP partitions

The missing clarification was regarding systemd-boot. What are your thoughts on this variation:

"Only the GRUB and rEFInd boot loaders support this scheme at the moment. For systemd-boot, this setup is possible with a Unified kernel image (the kernel is still installed to /boot by pacstrap, but the UKI is installed to the esp partition).}}

Last edited by componentscience (Yesterday 12:59:57)

Offline

#5 Yesterday 13:14:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: Feedback before making a wiki edit regarding ESP partitions

Yeah, but systemd-boot won't work in its actual capacity as bootloader - if you have *only* UKI(s) why would you install a bootloader itfp?
Your UEFI can boot those directly.

Offline

#6 Yesterday 16:03:40

componentscience
Member
Registered: 2024-01-05
Posts: 24

Re: Feedback before making a wiki edit regarding ESP partitions

How about in the case of running multiple UKIs, multi-boot systems, or A/B style updates, where updates require a new UKI? It has also been said that systemd-boot has functionality to read from separate boot partitions, but I am not familiar with these features.

https://0pointer.net/blog/fitting-every … ether.html

Offline

#7 Yesterday 17:51:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: Feedback before making a wiki edit regarding ESP partitions

Most systems allow you to select which efi's from

efibootmgr --unicode

to boot.

It has also been said that hat systemd-boot has functionality to read from separate boot partitions

yes: a vfat partition - which is not the /boot directory on your root partition.
The note addresses

The wiki wrote:

mount the ESP to /efi and leave /boot as a directory of the root file system

Feel free to try whether it works, but  for all I know/understand systemd-boot cannot boot anything on a non-vfat partition, so if you're placing kernels and initiramfs' into /boot on an ext4 or btrfs partition, they're out of reach.

Offline

#8 Yesterday 19:25:43

componentscience
Member
Registered: 2024-01-05
Posts: 24

Re: Feedback before making a wiki edit regarding ESP partitions

Yes in the system I am describing, the /boot directory is part of the root filesystem, so the kernels inside it are out of reach. They are only used by mkinitcpio when it assembles the UKI. They were placed there by pacman or pacstrap, or by manual entry.

The /efi directory is the esp. It is a separate vfat partition holding the UKIs and other uefi-specific objects. In this setup the UKIs are ideally signed by secure boot, and the other objects are given appropriate permissions. Otherwise they are exposed. Thoughts?

If systemd-boot is also used to read kernels from an additional /boot partition formatted with vfat, it would be assumed that those kernels are customized, or have a valid reason not to be bundled into a UKI? Otherwise they would be redundant?

Offline

#9 Yesterday 21:20:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,652

Re: Feedback before making a wiki edit regarding ESP partitions

or have a valid reason not to be bundled into a UKI?

The point is that if you've only UKIs using any kind of bootloader is pointless and it you don't (eg. because you want to boot something that's not even linux, say eg. haiku) the setup w/ /boot on the (non-vfat) root partition for all we know won't work w/ systemd.

Offline

Board footer

Powered by FluxBB