Re: [systemd-devel] With UEFI secure boot and dm-verity, how does one find the user data partition?

Demi Marie Obenour
2025-10-20T18:22:36Z

[-- Attachment #1.1.1: Type: text/plain, Size: 1380 bytes --]

On 10/20/25 14:20, Andrei Borzenkov wrote:
> 20.10.2025 21:02, Demi Marie Obenour wrote:
>> On 10/20/25 13:57, Andrei Borzenkov wrote:
>>> 20.10.2025 20:33, Demi Marie Obenour wrote:
>>>> On 10/19/25 11:36, Feli Flitzberg wrote:
>>>>> Hi, long time watcher, first time poster. If the bootloader supports the Discoverable Partitions Specification, all that's needed is the correct partition GUID assigned to every partition. After that, you don't need to pass any partitions or use /etc/fstab as the bootloader will read the disk it came from to mount everything. The only major limitation is that your bootloader partition MUST live on the same disk as root and usr, otherwise they won't be found. Hope this helps!
>>>>
>>>> How can the OS know which block device the system was booted from?
>>>>
>>>
>>>
>>> Bootloader compliant with BLI sets the LoaderDevicePartUUID EFI
>>> variable. Otherwise I assume it possible to get the current boot entry
>>> number from the BootCurrent EFI variable and parse the corresponding
>>> BootXXXX entry.
>>
>> Is this EFI variable the partition table UUID (which identifies a device)
>> or a partition UUID (which does not)?
>
> It is what is printed by lsblk as partuuid.

Unfortunately this isn't what is needed. Looks like UEFI variable
storage is the best option.
--
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]