From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Demi Marie Obenour <demiobenour@gmail.com>,
Feli Flitzberg <feliflitzberg@proton.me>,
systemd development <systemd-devel@lists.freedesktop.org>,
Spectrum OS Development <devel@spectrum-os.org>
Subject: Re: [systemd-devel] With UEFI secure boot and dm-verity, how does one find the user data partition?
Date: Mon, 20 Oct 2025 22:10:46 +0300 [thread overview]
Message-ID: <18dcd7d1-395e-4356-8597-32afc31e6918@gmail.com> (raw)
In-Reply-To: <9675e9d2-90ce-4660-9fc0-35e0919b2a50@gmail.com>
20.10.2025 21:22, Demi Marie Obenour wrote:
> 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.
Partition UUID is (supposed to be) unique for every partition, so it
most certainly allows one to identify the device to which it belongs.
next prev parent reply other threads:[~2025-10-20 19:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b8a34c88-3dae-4ef2-bbad-0f0392d91a9d@gmail.com>
[not found] ` <NYeXYP6ztNP_XNX333NJV5dMtyGq-bGAALIW-CF93loyJAuOLu4n3PlWon8IM_25jK090NiqcMQtXx4SVNcJuh3uSHBpCgu4A0aHwFKLK2s=@proton.me>
[not found] ` <14b8d7d5-1807-4814-8398-861883ebb3b0@gmail.com>
[not found] ` <573228c7-32be-4dcb-93e2-54e9b74c828c@gmail.com>
[not found] ` <2c453481-262f-407f-9a92-db3f4284042f@gmail.com>
[not found] ` <9ffb84b5-9c96-4899-ad8e-2401f387a3cd@gmail.com>
2025-10-20 18:22 ` [systemd-devel] With UEFI secure boot and dm-verity, how does one find the user data partition? Demi Marie Obenour
2025-10-20 19:10 ` Andrei Borzenkov [this message]
2025-10-20 19:45 ` Demi Marie Obenour
2025-10-20 20:27 ` Lennart Poettering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18dcd7d1-395e-4356-8597-32afc31e6918@gmail.com \
--to=arvidjaar@gmail.com \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=feliflitzberg@proton.me \
--cc=systemd-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).