From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 3D4341A822; Mon, 20 Oct 2025 19:10:54 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 4FE121A81F; Mon, 20 Oct 2025 19:10:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by atuin.qyliss.net (Postfix) with ESMTPS id 3718A1A81B for ; Mon, 20 Oct 2025 19:10:51 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-36a6a397477so48423321fa.3 for ; Mon, 20 Oct 2025 12:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760987449; x=1761592249; darn=spectrum-os.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=SvsvZdQca0KyIUvAfvicQv8/5ZXut/nqgCbm/OyMprE=; b=A4AweT0O/LJQGkhjtgbFTtgE/EBrbgG00YMqq+a+gK/z0Q31fUFSCPo5PjiNrPDFoR CKxy9JB72XZSYN+o0AHlg6YYNc4purB95MMPStQWCVxDv/VjRhsyh0cIQZ1aDKV2hb/c LXnPxD9qwbykyqPMmLMXcTAgksg8xVNS0r+45S3pQIM6F0BsB9iIgf8NM9M5GjVLhIpk Rb2gMeCPrBfhMu4YIy98Fld1mn9avLC9YDrnMc/Ds+NIeQqlfX6c1FrNcju63cBK3Mb3 SR3zG3SxwfWx9mhnKOzUlouDMDlWz/6gfS4r9xy+1xhHyV6APVdSNji/sQQKmi2TZR4P yoew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760987449; x=1761592249; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SvsvZdQca0KyIUvAfvicQv8/5ZXut/nqgCbm/OyMprE=; b=gD0QQt/crepF8Ee3Q2NkExv9HCC5wPNpqCGX334tVPlYa9K5kUrxFJo6t003yXIsj9 yHMnA0EYuFiTEzpOkGU2Fqd/aEx4/M4R/7y6bxGf3L/EJKQXSzNOpjXW0R6cWiqrtsXj gvmr/Izhspw3hPSJ4MfUBmLy3fpeaxGM+ArlCBYk6DDr5B5IaflVIPJOzKL5SrAWDOk6 IdDbbu3s8yOagPyoIUIN8oy6cBeo1ZNiI+pIkhp8fSu/qfht1GVz4XBpitCgrFerxFDM KF4DW4RoNnEfsKKcenVZd/rjMAB7j3kREz1ZwSo8JVZeVdmaeHd51Ea+lsWyz0IfLDa1 Az5Q== X-Forwarded-Encrypted: i=1; AJvYcCVKbaXFTmNnuOBrVi4MH2GzUv+d4R24sLdLvT1NLtEdJ2GRnBr8tDhm73fL9q5jc3KaVAuawg==@spectrum-os.org X-Gm-Message-State: AOJu0YwYfomH+DME1gZsc1WtDK2DB+IKf+clphEupPOdoSoeYkCFMBbn KD9X4bfFlTMmU6mAwIkhfkjPRux3F5uN1mSB8GwFGZmUtRjm+T6GGIPX X-Gm-Gg: ASbGncssA5AcLt4FdXlj2bOkHB5fVtPFkERZO8TiCxhfHDSh6YHJl/pGIThbGPUjtT+ 7lFaO7uGZ2FjdVuhE0LgL5I2zHYzhJj8QsUycQrLReyhb74RzvT1QDJmYbDA7ApqEC7BpuyLYeN n3ZCtFbb95A3J2/k7gsO5Uk6MJp6xItZf6s+64jNmtwTsLScNb21CRsLqkfPdqISiUI+aYBpRYh VAS4Its+6fTVDLDfQNpGqJceScsHhogRI9jjJZCw42LISIGSMU4sLoZVVVuGVhGPWMg9NvyOrIG fFDwSiZ0nkz9yVXY24RvAVeqAreix2LObitKSaFH4ibMnQTaANbPRKmqRWO5swbxSlfnUj4txMg FLVoJIcdDy6UgJFbz/ZHz/fq5VkBMHz/wz1inrsVgEXOvjFaKGdiLHw91o1JvNcZHm3s9gRqHQF 6wFFp8Y+08oP25X+VrpSIfmxHhpb2TE/SVO/aSdsoLBQaNpB3DI/MZwJvpENg8 X-Google-Smtp-Source: AGHT+IHKftwnTtrF5N3M5H6sYTIINMbyRES9du5/ZFDa0MXV9cWLVoFUhaJDHSgW+1HkwNHe3WCYFQ== X-Received: by 2002:a05:651c:2221:b0:336:5d33:c394 with SMTP id 38308e7fff4ca-37797a3ed65mr44938581fa.33.1760987448496; Mon, 20 Oct 2025 12:10:48 -0700 (PDT) Received: from ?IPV6:2a00:1370:8180:3b0f:c993:11d9:ab31:aec5? ([2a00:1370:8180:3b0f:c993:11d9:ab31:aec5]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-377a967fb2dsm22873171fa.58.2025.10.20.12.10.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Oct 2025 12:10:47 -0700 (PDT) Message-ID: <18dcd7d1-395e-4356-8597-32afc31e6918@gmail.com> Date: Mon, 20 Oct 2025 22:10:46 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [systemd-devel] With UEFI secure boot and dm-verity, how does one find the user data partition? To: Demi Marie Obenour , Feli Flitzberg , systemd development , Spectrum OS Development References: <14b8d7d5-1807-4814-8398-861883ebb3b0@gmail.com> <573228c7-32be-4dcb-93e2-54e9b74c828c@gmail.com> <2c453481-262f-407f-9a92-db3f4284042f@gmail.com> <9ffb84b5-9c96-4899-ad8e-2401f387a3cd@gmail.com> <9675e9d2-90ce-4660-9fc0-35e0919b2a50@gmail.com> Content-Language: en-US, ru-RU From: Andrei Borzenkov In-Reply-To: <9675e9d2-90ce-4660-9fc0-35e0919b2a50@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID-Hash: 733C3CHXXRBPRFT474UYG5ICYQHKWAWU X-Message-ID-Hash: 733C3CHXXRBPRFT474UYG5ICYQHKWAWU X-MailFrom: arvidjaar@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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.