Article View: linux.debian.maint.boot
Article #110Re: partman-cros MRs
From: Alper Nebi Yasak
Date: Thu, 05 Nov 2026 12:00
Date: Thu, 05 Nov 2026 12:00
73 lines
6522 bytes
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...)
Technical Details
Message-ID:
<NW4il-9Z4u-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.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> <NVNUd-9QoM-9@gated-at.bofh.it> <NW053-9WVn-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!news.hispagatos.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: Thu, 05 Nov 2026 13:00:01 +0100
Message-ID: <NW4il-9Z4u-7@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>
X-Mailbox-Line: From debian-boot-request@lists.debian.org Thu Nov 5 11:51:42 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+SIWqNVCkZBppfTi0EUSfRL6wHoGyfQfUBLtOaQPLKMMobCia2
CSRh7yYzze2OOiWEOUbukMrBKu8knDrinAveIkO7Sa4y8uvE/QubZGAl
X-Gm-Gg: AYBFou2C8gSJpsYM8VUWpNlkhBVvS4ua05cO/hVISuig1KX9d9G5zF0caO3iYFGcDkd
8spOblc2JeNYAdoJLbnNc4ArCZYrqAORomxq6P9/nxCkzEQLyNcVL0QsuUaNx9QSg2gQu3DbIum
wne4BPbHs7kmqhAkos9rkieJpVGEjS/741clxEbDIf0X1JZgoo5ZUOD2CC10rGzXqNpL44k32Kw
/oTamIlki+45efqJ/c/YXkfxWAaXlQhCZnVh4wbNBc2+kne2JjfRVt0SdSYhXnfU+lynz48enfS
lE7AXCaFZMZXFYYC2PeCs9/7bOwp/eqm9CVJm2dxGJfKJZcIbRNcLM3TWjpso0gzPLLLCwyTUPG
8WcIs+Tnkn50wRAGw8mZ2d/As2j86Ucx0N/kL6eCU85BkbxyA4NGFKiytyD2T7LzI1ZMpgOq/rd
+ra2YlzXupNJ5YzJdPkjg1oQnmobFVF7u5j2Pwp5hA2aCXvtjklbVY8Sy0wyrtIc5ufZWTXYtqU
4VIuJr0Xs7TYbQzyAtmmmqpr4Okezeg/uF8piuaJJEFcOxYHBDsYkctY6Ay6d/j2s2QffISR421
HxsdEwnkcR6Z377wij3HDJgo2Z3yHpPK2yVL/mzgLSTr4WebUK/40OevywM=
X-Received: by 2002:a05:600c:3f0a:b0:4a3:7344:13b4 with SMTP id 5b1f17b1804b1-4ac1709a2d0mr398496815e9.14.1793879489106;
Thu, 05 Nov 2026 03:51:29 -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/223560
List-ID: <debian-boot.lists.debian.org>
List-URL: <https://lists.debian.org/debian-boot/>
List-Archive: https://lists.debian.org/msgid-search/f726d7ee-33f4-43ec-a53e-d001e07b0234@gmail.com
Approved: robomod@news.nic.it
Lines: 73
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: Thu, 5 Nov 2026 14:51:26 +0300
X-Original-Message-ID: <f726d7ee-33f4-43ec-a53e-d001e07b0234@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>