Article View: linux.debian.maint.boot
Article #108Re: partman-cros MRs
From: Alper Nebi Yasak
Date: Wed, 04 Nov 2026 18:30
Date: Wed, 04 Nov 2026 18:30
59 lines
5961 bytes
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.
Technical Details
Message-ID:
<NVNUd-9QoM-9@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.szaf.org!news.samoylyk.net!gothmog.csi.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>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.szaf.org!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: Wed, 04 Nov 2026 19:30:01 +0100
Message-ID: <NVNUd-9QoM-9@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>
X-Mailbox-Line: From debian-boot-request@lists.debian.org Wed Nov 4 18:26:51 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: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-wr1-x42b.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Gm-Message-State: APuU4Z9wQTs9dNOKeuxs8K5hKyOoc+kMLToz/SOEDM9l3N8Emd6O+tdU
bUG58q0RgQkw7an48CXKC0QysDw+4uGcyalst7opw25u4/TyCB/x9GwcHMwrDmF+
X-Gm-Gg: AYBFou2yw1Da1YCizTMcIF4pcUywyqkmMO4VKNc8w5k62ca6YKK8tnrCp/2ORsIFUYp
81WZXToN/ky7ZGf2H6BNUYwyyhS4zsoYUDlvwze60NQM8ZSVD/4pVj4v2shLKvx2jO5hynNl9cD
REwBvE6NddAz0B0bZvi3pgvclSmr8fbJdoCIlyqs7+ObEexpEp3JfePFPjEmYgQiCDSCOiETNOk
yQuodsIYxo/BUfIyGoaZq/W7/ijSM4DnnQmhEVdhAsmWRFL7ZSoXZobJW+mu5hTVxI6ok0elXrU
cgvtHQUNktrvyAVzcnTQl1nk7Mkmlo2/os3I9aSsei9tSws824oxM4eaCvIbSrVY/M1EHMaGMar
LNaHaFM6oxPE90pnj66mbb4tk50lO2EEt9DZrR9AZ56NirQcALZxHYOhxvm6ijTfD7lw4LqoEIL
xhSpAY60Jsx141Q9ppI5Jh21WbKSyMM3n1UWCcH0LE6qHeWAw8ZIo/h17mz3uzLqc8IsjZVMODi
JPZJWkVvtHMNYswp9fz4UFMlMOBAmPbhvSFrDTa5d25UBAu/sikDyzbXjJoVNe6MYN6elOb7s4K
sBTKxGgUVUrdL6AWa2b69vwfZ8htoO/XhwM4lw==
X-Received: by 2002:a05:6000:2dc7:b0:48f:88ad:7b75 with SMTP id ffacd0b85a97d-48f88ad7ed9mr12379454f8f.15.1793816797144;
Wed, 04 Nov 2026 10:26:37 -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/223558
List-ID: <debian-boot.lists.debian.org>
List-URL: <https://lists.debian.org/debian-boot/>
List-Archive: https://lists.debian.org/msgid-search/3d310d17-560a-4b75-ab9f-773939478d1d@gmail.com
Approved: robomod@news.nic.it
Lines: 59
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: Wed, 4 Nov 2026 21:26:32 +0300
X-Original-Message-ID: <3d310d17-560a-4b75-ab9f-773939478d1d@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>