Article View: linux.debian.maint.boot
Article #137Re: partman-cros MRs
From: Pascal Hambourg
Date: Fri, 13 Nov 2026 23:20
Date: Fri, 13 Nov 2026 23:20
60 lines
5064 bytes
5064 bytes
On 12/11/2026 at 21:57, Alper Nebi Yasak wrote:
> On 2026-11-08 16:49 +03:00, Pascal Hambourg wrote:
>> On 06/11/2026 at 13:40, Alper Nebi Yasak wrote:
>>>
>>> I guess ESP logic would make the "do not
>>> use" interpretation more consistent with other partman-* packages, which
>>> sounds good.
>>
>> Actually only partman-efi implements this logic. Setting an ESP "do not
>> use" is required to prevent the installer from possibly formatting and
>> mounting it, but we do not want it to clear the original ESP flag.
>>
>> IIUC ChromeOS is different. Partman does not really "use" (format or
>> mount) a ChromeOS partition, it just sets the type flag on it and checks
>> if such partition is present on the boot/root disk. And we may actually
>> want manual "do not use" to clear the flag.
>>
>> So ESP and ChromeOS partitions may need different interpretations of "do
>> not use".
>
> The "flag" here sets the GPT Partition Type GUID for the partition (a bad
> extension of a legacy abstraction), and only one such flag makes sense on
> any partition, and having none means it defaults to whatever parted likes
> (Linux data?, I forgot).
If no partition type flag is set, the default partition type depends on
the selected or detected filesystem (another parted oddity):
- fat, ntfs, udf -> Microsoft basic data
- hfs -> Apple HFS
- linux-swap -> Linux swap
- freebsd-ufs -> FreeBSD UFS (Debian patch)
- other or none -> Linux filesystem data
(source: parted/libparted/labels/gpt.c)
> So to clear these flags, it may arguably be better
> to explicitly select to use them as something else?
I'm afraid not, because some methods do not explicitly set a partition
type flag and implicitly remove the previous flag:
- filesystem
- swap
- physical volume for encryption
> Maybe we need a "Empty partition" method that clears these flags, and
> maybe zeros out the first MiB of a partition so it has no filesystem.
> That would resolve the ambiguity of "Do not use" where we would always
> keep the partition as-is.
partman-crypto already provides a "erase partition data" choice in the
active partition menu. But what is the point of keeping a partition,
clearing its flags, erasing its contents and not using it for anything
instead of just deleting the partition ?
> Maybe codifying "Do not use" as a value in the method file ("keep/efi"
> for example, where we can also have the old method info) could help?
It could make things a bit simpler, maybe. But which "old" method should
be recorded ? The original (on disk) one or the current selected one
(like method-old set by partman-auto) ?
Technical Details
Message-ID:
<NZ8IN-bIN9-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NMpxL-4ys1-7@gated-at.bofh.it> <NPwt3-6jQ4-7@gated-at.bofh.it> <NPCI9-6n8W-1@gated-at.bofh.it> <NVJQC-9Om4-1@gated-at.bofh.it> <NVNUd-9QoM-9@gated-at.bofh.it> <NW053-9WVn-1@gated-at.bofh.it> <NW4il-9Z4u-7@gated-at.bofh.it> <NWdYl-a49A-7@gated-at.bofh.it> <NWryh-ac1q-19@gated-at.bofh.it> <NXbrr-aCIt-13@gated-at.bofh.it> <NYK3L-buIU-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Pascal Hambourg <pascal@plouf.fr.eu.org> Newsgroups: linux.debian.maint.boot Subject: Re: partman-cros MRs Date: Sat, 14 Nov 2026 00:20:01 +0100 Message-ID: <NZ8IN-bIN9-1@gated-at.bofh.it> References: <NMpxL-4ys1-7@gated-at.bofh.it> <NPwt3-6jQ4-7@gated-at.bofh.it> <NPCI9-6n8W-1@gated-at.bofh.it> <NVJQC-9Om4-1@gated-at.bofh.it> <NVNUd-9QoM-9@gated-at.bofh.it> <NW053-9WVn-1@gated-at.bofh.it> <NW4il-9Z4u-7@gated-at.bofh.it> <NWdYl-a49A-7@gated-at.bofh.it> <NWryh-ac1q-19@gated-at.bofh.it> <NXbrr-aCIt-13@gated-at.bofh.it> <NYK3L-buIU-1@gated-at.bofh.it> X-Mailbox-Line: From debian-boot-request@lists.debian.org Fri Nov 13 23:18:19 2026 Old-Return-Path: <pascal@plouf.fr.eu.org> X-Amavis-Spam-Status: No, score=-1.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: fr Organization: Plouf ! Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailing-List: <debian-boot@lists.debian.org> archive/latest/223596 List-ID: <debian-boot.lists.debian.org> List-URL: <https://lists.debian.org/debian-boot/> List-Archive: https://lists.debian.org/msgid-search/a3b552bb-bbc5-493d-a0f9-b38f5b7d8d3e@plouf.fr.eu.org Approved: robomod@news.nic.it Lines: 60 Sender: robomod@news.nic.it X-Original-Cc: debian-boot@lists.debian.org, kibi@debian.org, Holger Wansing <hwansing@mailbox.org> X-Original-Date: Sat, 14 Nov 2026 00:18:01 +0100 X-Original-Message-ID: <a3b552bb-bbc5-493d-a0f9-b38f5b7d8d3e@plouf.fr.eu.org> X-Original-References: <0e379ea3-a27e-4e2c-8577-1bdd57c0cc34@gmail.com> <F3E953CF-34FE-4420-AEF6-2F2EE2121E30@mailbox.org> <20261018191628.a662d41cfb51615f3f57f4ad@mailbox.org> <f35ff429-ff0a-44c4-8238-376b12d9c3bf@plouf.fr.eu.org> <3d310d17-560a-4b75-ab9f-773939478d1d@gmail.com> <55754cd4-6c95-4594-b4a8-040087e2c339@plouf.fr.eu.org> <f726d7ee-33f4-43ec-a53e-d001e07b0234@gmail.com> <e8bf6a5a-ec39-46f8-ae33-40b2ed1dd318@plouf.fr.eu.org> <1f8530f0-8213-436c-a892-297a48ddc158@gmail.com> <6c1b1aea-38cd-4625-abdd-2123a1d65569@plouf.fr.eu.org> <423519ea-d1f1-4685-8f0a-4346d0ae2a41@gmail.com>