]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: make sure auto-root logic also works in UKIs booted from XBOOTLDR
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Nov 2022 14:32:22 +0000 (15:32 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 22 Nov 2022 00:32:51 +0000 (01:32 +0100)
commite4cb147a2e230a4a0b804c3e70f2692a5e2fd698
tree78d3582c517195c810afd6e236db79c55abb45c8
parent7d1e61cab6d27ed95372a313df3cd4538cf2880e
udev: make sure auto-root logic also works in UKIs booted from XBOOTLDR

If no root= switch is specified on the kernel command line we'll use the
root disk on which the partition the LoaderDevicePartUUID efi var is
located – as long as that partition is an ESP. Let's slightly liberalize
that and also allow it if that partition is an XBOOTLDR partition. This
ensures that UKIs spawned directly from XBOOTLDR work the same as those
from the ESP.

(Note that this makes no difference if sd-boot is in the mix, as in that
case LoaderDevicePartUUID is always set to the ESP, as that's where
sd-boot is located, and sd-boot will set the var first, sd-stub will
only set it later if it#s not set yet.)
src/udev/udev-builtin-blkid.c