🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.boot
Article #112

Re: partman-cros MRs

#112
From: 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.
Technical Details
Message-ID: <NWryh-ac1q-19@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Newsgroups: linux.debian.maint.boot
Subject: Re: partman-cros MRs
Date: Fri, 06 Nov 2026 13:50:01 +0100
Message-ID: <NWryh-ac1q-19@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>
X-Original-To: Pascal Hambourg <pascal@plouf.fr.eu.org>
X-Mailbox-Line: From debian-boot-request@lists.debian.org  Fri Nov  6 12:41:12 2026
Old-Return-Path: <alpernebiyasak@gmail.com>
X-Amavis-Spam-Status: No, score=-2.099 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]
 autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
X-Gm-Message-State: APuU4Z+pmFHIINU18uZoIQthoUIkURnMovF/vyhaGMG4jpZg99SsZmvi
	06gDV5qO0WOpCwipLF4XrRDwVpyIydrezxail73XyBDbgN3QnEK8xkql
X-Gm-Gg: AYBFou14ruE4iIeAYImI7Jai6lmtEYsE01fFv4+X54kq094cKuTWFjcjI8fjxPkcUeo
	BBxs/DUhmtxXzGDjbCPwDjz+DqyCjzz3hYPU7cVaaQUQCzqZaufwO/eHNZqf7Kl2SDVy5/d5eXs
	erF/TlLE5luORHm9fKyiPHOfdp7JN5PZpNE1v9SIxWXrcNEGyCT1NO3ykcqmVNh7+UTCHTnng7c
	9td3bgjMcpJHmZIDeaF+PK2MJ4gAy8O/gAtDAH1vqF+4Jv1V3mZ5NaSffuvcMcUN9MkHB+F0G4D
	KgnHuas1EeijcLTwTWcR0fsXcYHfLxz4WsoyAFFzxQgH3/7IVZLpB+f/ZWSmSyl5ZPrCu69errU
	rIiEyUEFpLTM0UIm6GeGo/XNWTUll/YbIJI9mL3xhCVXFwv4lKxsKSm9kSNom74RUWVEKBELCkx
	m59KVhjyQZuGNz1xa0DrOvVLNf+mgmdr5KyMTjrM8pqwEoT8TUXTWPa7YoGPgzs0wxhwGSCrcCm
	opmsFg0GSLFIelOPhCc9DSU6n+4TDukLqUy+6ag+pwa3FOApmWzckOVhKY/omtB24d9zULGVyCV
	73YfC6hkE5zgBlpSy+tnmGcMAvAgxoRqbpEw6UvRjPKLidUSd5cVeYwVJck=
X-Received: by 2002:a05:600c:530f:b0:4a2:133:45e1 with SMTP id 5b1f17b1804b1-4b6dfbabcf9mr37959715e9.24.1793968856133;
        Fri, 06 Nov 2026 04:40:56 -0800 (PST)
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US, tr, en-GB
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailing-List: <debian-boot@lists.debian.org> archive/latest/223562
List-ID: <debian-boot.lists.debian.org>
List-URL: <https://lists.debian.org/debian-boot/>
List-Archive: https://lists.debian.org/msgid-search/1f8530f0-8213-436c-a892-297a48ddc158@gmail.com
Approved: robomod@news.nic.it
Lines: 71
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: debian-boot@lists.debian.org, kibi@debian.org,
 Holger Wansing <hwansing@mailbox.org>
X-Original-Date: Fri, 6 Nov 2026 15:40:52 +0300
X-Original-Message-ID: <1f8530f0-8213-436c-a892-297a48ddc158@gmail.com>
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>