🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.boot
14 messages
14 total messages Started by Alper Nebi Yasak Fri, 09 Oct 2026 20:40
Daily build broken for arm64 hd-media tiny depthcharge image
#26
Author: Alper Nebi Yasak
Date: Fri, 09 Oct 2026 20:40
14 lines
3379 bytes
Hi,

Daily build for the arm64 hd-media tiny image is broken, because it can
no longer fit into the 32 MiB limit for the gru/hana ChromeOS boards. I
have a small fix at [1] removing the depthcharge images for the flavour.
Also see the last time this happened for the cdrom flavour [2].

I'm tempted to remove the "tiny" flavour for arm64 because I had only
added it to generate something that fits into that small limit. I
guess any proper attempt to re-add support for those boards should not
need that. Any objections, or preference either way?

[1] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/83
[2] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/77
Re: Daily build broken for arm64 hd-media tiny depthcharge image
#52
Author: Holger Wansing
Date: Sun, 18 Oct 2026 10:40
37 lines
3118 bytes
Hi all,

Am 9. Oktober 2026 22:32:27 MESZ schrieb Alper Nebi Yasak <alpernebiyasak@gmail.com>:
>Hi,
>
>Daily build for the arm64 hd-media tiny image is broken, because it can
>no longer fit into the 32 MiB limit for the gru/hana ChromeOS boards. I
>have a small fix at [1] removing the depthcharge images for the flavour.
>Also see the last time this happened for the cdrom flavour [2].
>
>I'm tempted to remove the "tiny" flavour for arm64 because I had only
>added it to generate something that fits into that small limit. I
>guess any proper attempt to re-add support for those boards should not
>need that. Any objections, or preference either way?

My view is, that there is noone with a better expertise regarding the depthcharge images thingy than you :-)

So I assume your approach is ok, if you think so.

Or am I wrong here? Cyril?


Holger


>
>[1] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/83
>[2] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/77
>

-- 
Sent from /e/ OS on Fairphone3
Re: Daily build broken for arm64 hd-media tiny depthcharge image
#53
Author: Holger Wansing
Date: Sun, 18 Oct 2026 17:20
21 lines
2646 bytes
Hi again Alper,

Holger Wansing <hwansing@mailbox.org> wrote (Sun, 18 Oct 2026 12:36:01 +0200):
> My view is, that there is noone with a better expertise regarding the depthcharge images thingy than you :-)
> 

There are also three merge requests related to depthcharge images/chrome OS
machines [1][2][3].

Maybe you can find some time to look into this (if you haven't done so yet)?


Holger

[1] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/81
[2] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/3
[3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2

-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076
Re: Daily build broken for arm64 hd-media tiny depthcharge image
#103
Author: Alper Nebi Yasak
Date: Wed, 04 Nov 2026 12:10
46 lines
4952 bytes
Hi,

On 2026-10-25 19:44 +03:00, Cyril Brulebois wrote:
> Hi,
> 
> Holger Wansing <hwansing@mailbox.org> (2026-10-18):
>> Am 9. Oktober 2026 22:32:27 MESZ schrieb Alper Nebi Yasak <alpernebiyasak@gmail.com>:
>>> Hi,
>>>
>>> Daily build for the arm64 hd-media tiny image is broken, because it
>>> can no longer fit into the 32 MiB limit for the gru/hana ChromeOS
>>> boards. I have a small fix at [1] removing the depthcharge images
>>> for the flavour.  Also see the last time this happened for the cdrom
>>> flavour [2].
>>>
>>> I'm tempted to remove the "tiny" flavour for arm64 because I had
>>> only added it to generate something that fits into that small limit.
>>> I guess any proper attempt to re-add support for those boards should
>>> not need that. Any objections, or preference either way?
> 
> It's been on my to do list to reach out to you to see how we should
> approach this, and my default action would have been to drop the images
> if there were no other pertinent actions/fixes.

I think I'll go ahead and delete the hd-media/tiny thing as well (in a
day or two), which still builds just the vmlinuz and initrd.xz [1]. They
are in the MANIFEST and its build status shows up on the daily build
overview, I was more concerned about if doing that would break anything 
or require manual changes to something else somewhere else.

[1] https://d-i.debian.org/daily-images/arm64/20261103-01:19/hd-media/tiny/

>> My view is, that there is noone with a better expertise regarding the
>> depthcharge images thingy than you :-)
>>
>> So I assume your approach is ok, if you think so.
>>
>> Or am I wrong here? Cyril?
> 
> 100% correct on who's the depthcharge expert! Merging was the right
> thing to do, and we're finally back to all green builds!
Thanks Holger! I got sidetracked into working on depthcharge-tools 
upstream, then went out of town for a while, and forgot to actually
merge it.

(I _am_ trying to be more confident in merging my changes myself :D )
Re: Daily build broken for arm64 hd-media tiny depthcharge image
#104
Author: Alper Nebi Yasak
Date: Wed, 04 Nov 2026 12:50
32 lines
4300 bytes
Hi again,

On 2026-10-18 20:16 +03:00, Holger Wansing wrote:
> Hi again Alper,
> 
> Holger Wansing <hwansing@mailbox.org> wrote (Sun, 18 Oct 2026 12:36:01 +0200):
>> My view is, that there is noone with a better expertise regarding the depthcharge images thingy than you :-)
>>
> 
> There are also three merge requests related to depthcharge images/chrome OS
> machines [1][2][3].
> 
> Maybe you can find some time to look into this (if you haven't done so yet)?
> 
> 
> Holger
> 
> [1] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/81
> [2] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/3
> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2
These are in my mental short-list. but I need to make a new
depthcharge-tools release upstream first, still working on that.

Also, they are likely AI work [1]. Do we have/want a team policy
for/against merging AI-generated code? I assume it's no-new-rules like
the GR, and thus implicitly allowed.

Personally I am conflicted about the ethics of using LLMs and using
works others generated with LLMs, but I need to introspect more. 
(I can't deny their utility though.)

[1] https://github.com/anthropics/claude-code/issues/79278
partman-cros MRs (was: Daily build broken for arm64 hd-media tiny depthcharge image)
#107
Author: Pascal Hambourg
Date: Wed, 04 Nov 2026 14:10
25 lines
2820 bytes
On 18/10/2026 at 19:16, Holger Wansing wrote:
> 
> There are also three merge requests related to depthcharge images/chrome OS
> machines [1][2][3].
> 
> [1] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/81

I have objections about the two partman-cros MRs.

> [2] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/3

All other automatic partitioning recipes are gathered in partman-auto 
and recipes for current architectures are built by a script for easier 
maintenance and better consistency. Introducing recipes in another 
package would make maintenance more difficult.

Regarding the recipes themselves,
- Do any ChromeOS machines require unpartitioned reserved space for the 
boot loader ?
- Is it normal that the ChromeOS partition is duplicated ?

> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2

Never clearing the flag seems a bit extreme. What about using the same 
logic as in partman-efi to preserve unused existing ESPs instead ?
Re: partman-cros MRs
#108
Author: Alper Nebi Yasak
Date: Wed, 04 Nov 2026 18:30
59 lines
5961 bytes
On 2026-11-04 17:02 +03:00, Pascal Hambourg wrote:
> On 18/10/2026 at 19:16, Holger Wansing wrote:
>>
>> There are also three merge requests related to depthcharge images/chrome OS
>> machines [1][2][3].
>>
>> [1] https://salsa.debian.org/installer-team/debian-installer/-/merge_requests/81
> 
> I have objections about the two partman-cros MRs.
> 
>> [2] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/3
> 
> All other automatic partitioning recipes are gathered in partman-auto 
> and recipes for current architectures are built by a script for easier 
> maintenance and better consistency. Introducing recipes in another 
> package would make maintenance more difficult.

I agree. I think I had a libdebian-installer MR that would add amd64/cros
and arm64/cros to archdetect, which partman-auto would want?

> Regarding the recipes themselves,
> - Do any ChromeOS machines require unpartitioned reserved space for the 
> boot loader ?

Nope.

> - Is it normal that the ChromeOS partition is duplicated ?

Yes, we can do A/B booting if we have 2+ partitions. Modern boards can
boot images up to 512 MiB, so I've been recommending two 512 MiB
partitions.

(My 7.2.11+deb14-arm64 test system with a MODULES=most initramfs has a
~227 MiB depthcharge image for reference)

Also, the bootloader can only boot from GPT, and we don't need a /boot
partition even if rootfs is encrypted (but it doesn't hurt).

>> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2
> 
> Never clearing the flag seems a bit extreme. What about using the same 
> logic as in partman-efi to preserve unused existing ESPs instead ?

I'm not sure the analysis is correct there, I have to test things again.
I remember installing to a USB disk without messing up ChromeOS on the
eMMC. Maybe they chose "Do not use" on existing partitions expecting it
to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
partition as "Do not use" except to indicate it should stop being one.

One difference with ESPs is that we don't choose which partition will be
used here. depthcharge-tools(-installer) will look at the disks that
hold /boot and rootfs (as they are the only disks we can assume will be
present during boot) and rotate between them itself. AIUI we choose one
ESP partition during partitioning by marking others "Do not use",
otherwise the first pre-existing ESP can be used regardless of if it is
on a different drive than the rootfs (which I don't like vs. my approach).
At least unused ESPs can show up as mere fat32 partitions, but with CrOS
partitions having no filesystem we would lose all indication that they
are and will continue to be CrOS partitions.
Re: partman-cros MRs
#109
Author: Pascal Hambourg
Date: Thu, 05 Nov 2026 07:30
56 lines
4565 bytes
On 04/11/2026 at 19:26, Alper Nebi Yasak wrote:
> On 2026-11-04 17:02 +03:00, Pascal Hambourg wrote:
>>
>>> [2] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/3
>>
>> All other automatic partitioning recipes are gathered in partman-auto
>> and recipes for current architectures are built by a script for easier
>> maintenance and better consistency. Introducing recipes in another
>> package would make maintenance more difficult.
> 
> I agree. I think I had a libdebian-installer MR that would add amd64/cros
> and arm64/cros to archdetect, which partman-auto would want?

I guess yes, it would allow to ship recipes for this subarch. But it may 
affect other d-i packages which use archdetect. What is the current 
reported subarchitecture on ChromeOS platforms ?

The MR adds recipes for armhf, are there any ChromeOS machines with this 
architecture ?

>> Regarding the recipes themselves,
>> - Do any ChromeOS machines require unpartitioned reserved space for the
>> boot loader ?
> 
> Nope.

Then it can be removed. This reserved partition was added mostly for 
arm64 platforms using Rockchip SoCs.

> Also, the bootloader can only boot from GPT, and we don't need a /boot
> partition even if rootfs is encrypted (but it doesn't hurt).

So the encrypted /boot check would need to be adjusted in partman-crypto.

>>> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2
>>
>> Never clearing the flag seems a bit extreme. What about using the same
>> logic as in partman-efi to preserve unused existing ESPs instead ?
> 
> I'm not sure the analysis is correct there, I have to test things again.
> I remember installing to a USB disk without messing up ChromeOS on the
> eMMC. Maybe they chose "Do not use" on existing partitions expecting it
> to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
> partition as "Do not use" except to indicate it should stop being one.

OK, but partman-auto marks all partitions "do not use" before starting 
automatic partitioning.

> One difference with ESPs is that we don't choose which partition will be
> used here. depthcharge-tools(-installer) will look at the disks that
> hold /boot and rootfs (as they are the only disks we can assume will be
> present during boot) and rotate between them itself.
I see. But I think we still need to be able to clear the flag if the 
partition is re-used for anything else, or did not originally have the 
flag set. Otherwise IIUC the partition may be overwritten by 
depthcharge-tools.
Re: partman-cros MRs
#110
Author: Alper Nebi Yasak
Date: Thu, 05 Nov 2026 12:00
73 lines
6522 bytes
On 2026-11-05 10:28 +03:00, Pascal Hambourg wrote:
> On 04/11/2026 at 19:26, Alper Nebi Yasak wrote:
>> On 2026-11-04 17:02 +03:00, Pascal Hambourg wrote:
>>>
>>>> [2] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/3
>>>
>>> All other automatic partitioning recipes are gathered in partman-auto
>>> and recipes for current architectures are built by a script for easier
>>> maintenance and better consistency. Introducing recipes in another
>>> package would make maintenance more difficult.
>>
>> I agree. I think I had a libdebian-installer MR that would add amd64/cros
>> and arm64/cros to archdetect, which partman-auto would want?
> 
> I guess yes, it would allow to ship recipes for this subarch. But it may 
> affect other d-i packages which use archdetect. What is the current 
> reported subarchitecture on ChromeOS platforms ?

They are not EFI, so it defaults to "amd64/generic" or "arm64/generic" IIRC.

> The MR adds recipes for armhf, are there any ChromeOS machines with this 
> architecture ?

Yes, but we can't boot d-i through this boot method on those due to size
limits (8/16/32 MiB depending on board) on the bootable image size.

We can sometimes chainload e.g. U-Boot from these partitions but I don't 
know how to detect the board as running ChromeOS bootloader in those cases, 
so not a concern for now.

>>> Regarding the recipes themselves,
>>> - Do any ChromeOS machines require unpartitioned reserved space for the
>>> boot loader ?
>>
>> Nope.
> 
> Then it can be removed. This reserved partition was added mostly for 
> arm64 platforms using Rockchip SoCs.
> 
>> Also, the bootloader can only boot from GPT, and we don't need a /boot
>> partition even if rootfs is encrypted (but it doesn't hurt).
> 
> So the encrypted /boot check would need to be adjusted in partman-crypto.
> 
>>>> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2
>>>
>>> Never clearing the flag seems a bit extreme. What about using the same
>>> logic as in partman-efi to preserve unused existing ESPs instead ?
>>
>> I'm not sure the analysis is correct there, I have to test things again.
>> I remember installing to a USB disk without messing up ChromeOS on the
>> eMMC. Maybe they chose "Do not use" on existing partitions expecting it
>> to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
>> partition as "Do not use" except to indicate it should stop being one.
> 
> OK, but partman-auto marks all partitions "do not use" before starting 
> automatic partitioning.

Ah. In that case switching to the ESP logic makes sense.

>> One difference with ESPs is that we don't choose which partition will be
>> used here. depthcharge-tools(-installer) will look at the disks that
>> hold /boot and rootfs (as they are the only disks we can assume will be
>> present during boot) and rotate between them itself.
> I see. But I think we still need to be able to clear the flag if the 
> partition is re-used for anything else, or did not originally have the 
> flag set. Otherwise IIUC the partition may be overwritten by 
> depthcharge-tools.

Yes and yes.

(And I should make depthcharge-tools check if the targeted partition is 
mounted or has a filesystem...)
Re: partman-cros MRs
#111
Author: Pascal Hambourg
Date: Thu, 05 Nov 2026 22:20
56 lines
4888 bytes
On 05/11/2026 at 12:51, Alper Nebi Yasak wrote:
> On 2026-11-05 10:28 +03:00, Pascal Hambourg wrote:
>> On 04/11/2026 at 19:26, Alper Nebi Yasak wrote:
>>>
>>> I think I had a libdebian-installer MR that would add amd64/cros
>>> and arm64/cros to archdetect, which partman-auto would want?

For reference: 
<https://salsa.debian.org/installer-team/libdebian-installer/-/merge_requests/6>

>> I guess yes, it would allow to ship recipes for this subarch. But it may
>> affect other d-i packages which use archdetect. What is the current
>> reported subarchitecture on ChromeOS platforms ?
> 
> They are not EFI, so it defaults to "amd64/generic" or "arm64/generic" IIRC.

Kibi expresses concern about grub-installer in a MR comment. Currently 
it is disabled on arm*/non-efi and x86/mac, and tries to install grub-pc 
on x86/non-efi. The "generic" subarchitecture is not explicitly used, so 
a new ChromeOS subarchitecture would not be handled differently. IIUC 
grub-installer should be disabled on x86/cros. This is trivial to do.

>> The MR adds recipes for armhf, are there any ChromeOS machines with this
>> architecture ?
> 
> Yes, but we can't boot d-i through this boot method on those due to size
> limits (8/16/32 MiB depending on board) on the bootable image size.
> 
> We can sometimes chainload e.g. U-Boot from these partitions but I don't
> know how to detect the board as running ChromeOS bootloader in those cases,
> so not a concern for now.

IIUC your MR adds the ChromeOS subarchitecture for armhf too. So how 
should it be dealt with ?

>>>>> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2
>>>>
>>>> Never clearing the flag seems a bit extreme. What about using the same
>>>> logic as in partman-efi to preserve unused existing ESPs instead ?
>>>
>>> I'm not sure the analysis is correct there, I have to test things again.
>>> I remember installing to a USB disk without messing up ChromeOS on the
>>> eMMC. Maybe they chose "Do not use" on existing partitions expecting it
>>> to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
>>> partition as "Do not use" except to indicate it should stop being one.
>>
>> OK, but partman-auto marks all partitions "do not use" before starting
>> automatic partitioning.
> 
> Ah. In that case switching to the ESP logic makes sense.

I suspect that this change was submitted in reaction to partman-auto 
behaviour. In that case simpler options may be considered:
- In partman-auto, do no mark ChromeOS partitions "do not use".
- In partman-cros/update.d, restore method=cros if method is empty and 
method-old (saved by partman-auto) = cros.
Re: partman-cros MRs
#112
Author: Alper Nebi Yasak
Date: Fri, 06 Nov 2026 12:50
71 lines
6942 bytes
On 2026-11-06 01:18 +03:00, Pascal Hambourg wrote:
> On 05/11/2026 at 12:51, Alper Nebi Yasak wrote:
>> On 2026-11-05 10:28 +03:00, Pascal Hambourg wrote:
>>> On 04/11/2026 at 19:26, Alper Nebi Yasak wrote:
>>>>
>>>> I think I had a libdebian-installer MR that would add amd64/cros
>>>> and arm64/cros to archdetect, which partman-auto would want?
> 
> For reference: 
> <https://salsa.debian.org/installer-team/libdebian-installer/-/merge_requests/6>
> 
>>> I guess yes, it would allow to ship recipes for this subarch. But it may
>>> affect other d-i packages which use archdetect. What is the current
>>> reported subarchitecture on ChromeOS platforms ?
>>
>> They are not EFI, so it defaults to "amd64/generic" or "arm64/generic" IIRC.
> 
> Kibi expresses concern about grub-installer in a MR comment. Currently 
> it is disabled on arm*/non-efi and x86/mac, and tries to install grub-pc 
> on x86/non-efi. The "generic" subarchitecture is not explicitly used, so 
> a new ChromeOS subarchitecture would not be handled differently. IIUC 
> grub-installer should be disabled on x86/cros. This is trivial to do.

Replied there, but that's:

https://salsa.debian.org/installer-team/grub-installer/-/merge_requests/18

>>> The MR adds recipes for armhf, are there any ChromeOS machines with this
>>> architecture ?
>>
>> Yes, but we can't boot d-i through this boot method on those due to size
>> limits (8/16/32 MiB depending on board) on the bootable image size.
>>
>> We can sometimes chainload e.g. U-Boot from these partitions but I don't
>> know how to detect the board as running ChromeOS bootloader in those cases,
>> so not a concern for now.
> 
> IIUC your MR adds the ChromeOS subarchitecture for armhf too. So how 
> should it be dealt with ?

Two 32 MiB partitions maybe, in case I end up making installer images with
custom kernels. But not if it's a maintenance burden.

>>>>>> [3] https://salsa.debian.org/installer-team/partman-cros/-/merge_requests/2
>>>>>
>>>>> Never clearing the flag seems a bit extreme. What about using the same
>>>>> logic as in partman-efi to preserve unused existing ESPs instead ?
>>>>
>>>> I'm not sure the analysis is correct there, I have to test things again.
>>>> I remember installing to a USB disk without messing up ChromeOS on the
>>>> eMMC. Maybe they chose "Do not use" on existing partitions expecting it
>>>> to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
>>>> partition as "Do not use" except to indicate it should stop being one.
>>>
>>> OK, but partman-auto marks all partitions "do not use" before starting
>>> automatic partitioning.
>>
>> Ah. In that case switching to the ESP logic makes sense.
> 
> I suspect that this change was submitted in reaction to partman-auto 
> behaviour. In that case simpler options may be considered:
> - In partman-auto, do no mark ChromeOS partitions "do not use".
> - In partman-cros/update.d, restore method=cros if method is empty and 
> method-old (saved by partman-auto) = cros.

I have no strong preference. I guess ESP logic would make the "do not
use" interpretation more consistent with other partman-* packages, which
sounds good. Not marking as "do not use" in partman-auto would work, but
feels like a flag-specific hack side-stepping the "method-old" logic at
a first glance. And the method-old looks like an internal thing for
partman-auto which partman-cros shouldn't touch.
Re: partman-cros MRs
#118
Author: Pascal Hambourg
Date: Sun, 08 Nov 2026 13:50
101 lines
6372 bytes
On 06/11/2026 at 13:40, Alper Nebi Yasak wrote:
> On 2026-11-06 01:18 +03:00, Pascal Hambourg wrote:
>>
>>>> The MR adds recipes for armhf, are there any ChromeOS machines with this
>>>> architecture ?
>>>
>>> Yes, but we can't boot d-i through this boot method on those due to size
>>> limits (8/16/32 MiB depending on board) on the bootable image size.
(...)
>> IIUC your MR adds the ChromeOS subarchitecture for armhf too. So how
>> should it be dealt with ?
> 
> Two 32 MiB partitions maybe, in case I end up making installer images with
> custom kernels. But not if it's a maintenance burden.

Now partman-auto has a crude script which allows to build recipes from 
"templates" and a set of parameters for each partition type, so there is 
no maintenance burden for a new recipe after adding the template.

>>>>>> Never clearing the flag seems a bit extreme. What about using the same
>>>>>> logic as in partman-efi to preserve unused existing ESPs instead ?
>>>>>
>>>>> Maybe they chose "Do not use" on existing partitions expecting it
>>>>> to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
>>>>> partition as "Do not use" except to indicate it should stop being one.
>>>>
>>>> OK, but partman-auto marks all partitions "do not use" before starting
>>>> automatic partitioning.
>>>
>>> Ah. In that case switching to the ESP logic makes sense.
(...)
> 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".

> Not marking as "do not use" in partman-auto would work, but
> feels like a flag-specific hack side-stepping the "method-old" logic at
> a first glance.

(Note: 'method-old' is primarily intended for re-using existing 
partitions which match the recipe - typically BIOS boot, ESP and swap - 
with automatic partitioning using the largest free space)

Actually this issue is not specific to ChromeOS partitions because 
partman-auto clears the method on all partitions. BIOS Boot and PReP 
flags are also cleared and this can have operational impact because they 
are used by boot loader tools and platform firmware. partman-lvm and 
partman-md have their own logic to restore the LVM and RAID methods and 
preserve their flags even though they are mostly "cosmetic" and have no 
operational impact.

So I feel like this issue may deserve a more general solution and the 
expected behaviour for method and flag management should be defined first.

Concerned methods/flags: BIOS Boot, ChromeOS, PReP, ESP, LVM, RAID.

Two actions may clear methods and flags:
- Set partition to "Do not use" in manual partitioning (dont_use)
- automatic partitioning (partman-auto)

Current behaviour:

BIOS Boot, ChromeOS, PReP:
- dont_use: clear method and flag (unsure)
- partman-auto: clear method and flag (bad)

ESP:
- dont_use: clear method, restore original ESP flag (good)
- partman-auto: clear method, restore original ESP flag (bad)

LVM, RAID:
- dont_use: clear method and flag (unsure)
- partman-auto: keep method and flag (good)

Possible expected behaviour:

BIOS Boot, ChromeOS, PReP:
- dont_use: clear method and flag ?
- partman-auto: keep method and flag

ESP:
- dont_use: clear method, restore original ESP flag
- partman-auto: clear method, keep flag

LVM, RAID:
- dont_use: clear method, restore original LVM/RAID flag ?
- partman-auto: keep method and keep flag

Opinions ?
Re: partman-cros MRs
#131
Author: Alper Nebi Yasak
Date: Thu, 12 Nov 2026 21:00
122 lines
8775 bytes
On 2026-11-08 16:49 +03:00, Pascal Hambourg wrote:
> On 06/11/2026 at 13:40, Alper Nebi Yasak wrote:
>> On 2026-11-06 01:18 +03:00, Pascal Hambourg wrote:
>>>
>>>>> The MR adds recipes for armhf, are there any ChromeOS machines with this
>>>>> architecture ?
>>>>
>>>> Yes, but we can't boot d-i through this boot method on those due to size
>>>> limits (8/16/32 MiB depending on board) on the bootable image size.
> (...)
>>> IIUC your MR adds the ChromeOS subarchitecture for armhf too. So how
>>> should it be dealt with ?
>>
>> Two 32 MiB partitions maybe, in case I end up making installer images with
>> custom kernels. But not if it's a maintenance burden.
> 
> Now partman-auto has a crude script which allows to build recipes from 
> "templates" and a set of parameters for each partition type, so there is 
> no maintenance burden for a new recipe after adding the template.
> 
>>>>>>> Never clearing the flag seems a bit extreme. What about using the same
>>>>>>> logic as in partman-efi to preserve unused existing ESPs instead ?
>>>>>>
>>>>>> Maybe they chose "Do not use" on existing partitions expecting it
>>>>>> to be like the ESP case? IIRC I thought it makes no sense to mark a CrOS
>>>>>> partition as "Do not use" except to indicate it should stop being one.
>>>>>
>>>>> OK, but partman-auto marks all partitions "do not use" before starting
>>>>> automatic partitioning.
>>>>
>>>> Ah. In that case switching to the ESP logic makes sense.
> (...)
>> 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). So to clear these flags, it may arguably be better 
to explicitly select to use them as something else?

(Again, no strong preference.)

>> Not marking as "do not use" in partman-auto would work, but
>> feels like a flag-specific hack side-stepping the "method-old" logic at
>> a first glance.
> 
> (Note: 'method-old' is primarily intended for re-using existing 
> partitions which match the recipe - typically BIOS boot, ESP and swap - 
> with automatic partitioning using the largest free space)
> 
> Actually this issue is not specific to ChromeOS partitions because 
> partman-auto clears the method on all partitions. BIOS Boot and PReP 
> flags are also cleared and this can have operational impact because they 
> are used by boot loader tools and platform firmware. partman-lvm and 
> partman-md have their own logic to restore the LVM and RAID methods and 
> preserve their flags even though they are mostly "cosmetic" and have no 
> operational impact.
> 
> So I feel like this issue may deserve a more general solution and the 
> expected behaviour for method and flag management should be defined first.

I guess so, but I think I'd have to dive into the partman-auto code before 
having good opinions on what to do. (Sorry, I don't have much bandwidth for 
that right now.)

> Concerned methods/flags: BIOS Boot, ChromeOS, PReP, ESP, LVM, RAID.
> 
> Two actions may clear methods and flags:
> - Set partition to "Do not use" in manual partitioning (dont_use)
> - automatic partitioning (partman-auto)
> 
> Current behaviour:
> 
> BIOS Boot, ChromeOS, PReP:
> - dont_use: clear method and flag (unsure)
> - partman-auto: clear method and flag (bad)
> 
> ESP:
> - dont_use: clear method, restore original ESP flag (good)
> - partman-auto: clear method, restore original ESP flag (bad)
> 
> LVM, RAID:
> - dont_use: clear method and flag (unsure)
> - partman-auto: keep method and flag (good)
> 
> Possible expected behaviour:
> 
> BIOS Boot, ChromeOS, PReP:
> - dont_use: clear method and flag ?
> - partman-auto: keep method and flag
> 
> ESP:
> - dont_use: clear method, restore original ESP flag
> - partman-auto: clear method, keep flag
> 
> LVM, RAID:
> - dont_use: clear method, restore original LVM/RAID flag ?
> - partman-auto: keep method and keep flag
> 
> Opinions ?

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.

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?
Re: partman-cros MRs
#137
Author: Pascal Hambourg
Date: Fri, 13 Nov 2026 23:20
60 lines
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) ?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads