🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1146054: marked as done (partman-auto: Detection of fakeRAID is flawed)

#217
From: Debian Bug Tracking System
Date: Wed, 02 Dec 2026 15:40
316 lines
14328 bytes
This is a multi-part message in MIME format...

------------=_1796225942-2548397-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Wed, 02 Dec 2026 15:36:13 +0000
with message-id <179622577379.38566.1489205347541404855@fasolo.debian.org>
and subject line Bug#1146054: fixed in partman-auto 181
has caused the Debian Bug report #1146054,
regarding partman-auto: Detection of fakeRAID is flawed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1146054: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1146054
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1796225942-2548397-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 29 Aug 2026 12:16:49 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.9 required=4.0 tests=BAYES_00,
	BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,SPF_HELO_NONE,SPF_PASS,
	WORD_WITHOUT_VOWELS autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 37; hammy, 150; neutral, 103; spammy,
	0. spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
	0.000-+--HTo:N*Debian, 0.000-+--HTo:N*System, 0.000-+--HTo:N*Bug,
	0.000-+--HTo:N*Tracking
Return-path: <pascal@plouf.fr.eu.org>
Received: from zenith.ipv6.plouf.fr.eu.org ([2001:7a8:6d23:1::1]:35336 helo=zenith.plouf.fr.eu.org)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <pascal@plouf.fr.eu.org>)
	id 1x0HzN-000VRZ-0r
	for submit@bugs.debian.org;
	Sat, 29 Aug 2026 12:16:49 +0000
Received: from [192.168.0.247]
	by zenith.plouf.fr.eu.org with esmtp (Exim 4.89)
	(envelope-from <pascal@plouf.fr.eu.org>)
	id 1x0Hz7-0000sm-UZ
	for submit@bugs.debian.org; Sat, 29 Aug 2026 14:16:33 +0200
Message-ID: <9e5fff7b-9c1c-4897-9727-19f7c17ca91d@plouf.fr.eu.org>
Date: Sat, 29 Aug 2026 14:16:34 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: fr
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Pascal Hambourg <pascal@plouf.fr.eu.org>
Subject: partman-auto: Detection of fakeRAID is flawed
Organization: Plouf !
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org

Package: partman-auto
Version: 179

Dear maintainers,

Commit 7dfd6208 ("don't hide /dev/md* arrays if they are provisioned on 
whole-disk devices - in that case the md array itself is partitionable, 
e.g. for md-fakeraid like imsm (Intel Matrix raid). (Closes: #699431)") 
was intended to enable automatic partitioning on Intel Matrix fakeRAID 
and keep disabling it on standard Linux md RAID. But it actually allows 
almost any md RAID array.

[1] <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699431>
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699430>

The main logic is implemented in the following function:

is_wholedisk_mdraid () {
	local device="`echo $1 | sed -e 's!/\([0-9]*\)$!\1!'`"
	local mddisk=${device#/dev/}
	local ret=0
	local d

	[ -d /sys/block/$mddisk/md ] || return 1

	for d in /sys/block/$mddisk/slaves/*; do
		case "$d" in
			dm-*|md*)
				;;
			*p[0-9]|*p[0-9][0-9])
				ret=1
				break
				;;
		esac
	done

	return $ret
}

1) `/sys/block/$mddisk/slaves/*` cannot match `dm-*|md*`. Besidses IIUC 
it would allow RAID over RAID, LVM or dm-crypt devices, so what is the 
point of this check ?

2) `*p[0-9]|*p[0-9][0-9]` is intended to match partitions, but it 
actually matches only partitions on devices whose node names end with a 
digit (e.g. nvme or mmcblk) and have 'p' before the partition number. So 
it does not match on SCSI-like (ATA, USB) drives.

3) RAID members not being partitions does not even guarantee that the 
array is fakeRAID. Standard Linux md RAID can use whole unpartitioned 
drives as members too. Automatic partitioning on such layout may result 
in an unbootable system for both EFI (UEFI firmware cannot read the EFI 
partition on Linux md RAID) and BIOS (GRUB may fail to install).

AFAIK d-i no longer supports fakeRAID with dm-raid and supports only 
Intel Matrix RAID (IMSM) with md-raid. Is Intel Matrix RAID still used 
and should it be supported by d-i ?

If yes, is_wholedisk_mdraid() should be replaced with a proper detection 
of IMSM RAID arrays.

If no, either the above commit should be reverted in order to skip any 
md RAID array, or any md RAID array should be allowed under the user's 
responsibility (possibly resulting in an unbootable system).

Opinions ?

------------=_1796225942-2548397-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1146054-close) by bugs.debian.org; 2 Dec 2026 15:36:17 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-113.0 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FVGT_m_MULTI_ODD,
	HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,RCVD_IN_DNSWL_MED,
	SPF_HELO_PASS,SPF_PASS,USER_IN_DKIM_WELCOMELIST autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 84; hammy, 150; neutral, 133; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--H*r:sk:fasolo., 0.000-+--H*MI:fasolo
Return-path: <envelope@ftp-master.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:51512)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xYmNV-00AgU0-2E
	for 1146054-close@bugs.debian.org;
	Wed, 02 Dec 2026 15:36:17 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
	by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xYmNT-002IqI-07
	for 1146054-close@bugs.debian.org;
	Wed, 02 Dec 2026 15:36:15 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Content-Type:Message-Id:Date:
	Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
	:Content-Description:In-Reply-To:References;
	bh=O+dDJdEZH+82jcCem6pMS2VGskSdRHT3VaSQYoH/r6w=; b=fqGpa30PJKf3grq2g1oeAeCN2n
	OcJ6A5Tu0gUddzsvi5CyZzXjeIL7B/R1WQnXktRdMiQA3i+ciD//ojCUoYIjloA9ujptQQkjy7rKw
	Ezj8tmZ+WYK4/p8Z0ZZUt7TssRI2moKo9s3Sdh2JbBs0bQ0/BTNzWFrYHo4gFARBNo7M2VgY2EDXq
	3KZlIfa/cxZl9zutI+Mevm81+l3ismBl5yu3ASQb25skJjtoeFrPsUoTcf/N3hSHI6QG4QkbowGG5
	W+n/Egmk5nLiekTLw7e4UI/sOefXaQ1v9fwH0nbzDbKOr4GSlzuye3OyYSyS0qf7uK9kM/dCRSyQ0
	ZqfurNlg==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xYmNR-00000000AAa-3RsO;
	Wed, 02 Dec 2026 15:36:13 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Holger Wansing <hwansing@mailbox.org>
To: 1146054-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: partman-auto
Debian: DAK
Debian-Changes: partman-auto_181_source.changes
Debian-Source: partman-auto
Debian-Version: 181
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1146054: fixed in partman-auto 181
Date: Wed, 02 Dec 2026 15:36:13 +0000
Message-Id: <179622577379.38566.1489205347541404855@fasolo.debian.org>
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature";
 boundary="===============6843198320161869973=="

--===============6843198320161869973==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Source: partman-auto
Source-Version: 181
Done: Holger Wansing <hwansing@mailbox.org>

We believe that the bug you reported is fixed in the latest version of
partman-auto, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146054@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Holger Wansing <hwansing@mailbox.org> (supplier of updated partman-auto packa=
ge)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 02 Dec 2026 16:14:14 +0100
Source: partman-auto
Architecture: source
Version: 181
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Holger Wansing <hwansing@mailbox.org>
Closes: 1146054
Changes:
 partman-auto (181) unstable; urgency=3Dmedium
 .
   * Team upload.
 .
   [ Holger Wansing ]
   * Add pointer to bug for v180 changelog entry.
   * copyright: Use DEP-5 format.
 .
   [ Pascal Hambourg ]
   * Enable automatic partitioning on any md RAID. Closes: #1146054.
 .
   [ Updated translations ]
   * Macedonian (mk.po) by stojkovskistefan
   * Norwegian Bokmal (nb.po) by Telaneo
Checksums-Sha1:
 b837343031ca43c5d0f120e2ac77154151090830 1713 partman-auto_181.dsc
 15fdb3debc94c8f74514689d510ef29d56b623da 160984 partman-auto_181.tar.xz
 d9aa0995f322478410e4deb2fdc54c599a2b4384 5644 partman-auto_181_amd64.buildin=
fo
Checksums-Sha256:
 7bc2f52b6c5b9c3771d9c071504328fa9edda0d9155ac71989a93564d48c3d74 1713 partma=
n-auto_181.dsc
 f0b641db763f2536a7b1fcda9f5e7af2a493a1d6b34dc127179d457cb1b4ac32 160984 part=
man-auto_181.tar.xz
 11de976f67f56e637833a3679a924e3c2e7c7692c2b8a93f9c021c65eb8c081d 5644 partma=
n-auto_181_amd64.buildinfo
Files:
 f705c6522d987c5dff79d3a169477b70 1713 debian-installer standard partman-auto=
_181.dsc
 f70f82ddc0e5ec59a914c34a6a8bb313 160984 debian-installer standard partman-au=
to_181.tar.xz
 e5d940115a9d80b0c016f26a6db6f0cb 5644 debian-installer standard partman-auto=
_181_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEESWrG6BRCSzSFCDUpWfGHyhVusHYFAmsQNvEVHGh3YW5zaW5n
QG1haWxib3gub3JnAAoJEFnxh8oVbrB2soYQAJ6OwT1T2v1YIwut0gyk43VTsMH8
1xPr9oocz8hlCK0El7b1NjCdc2mtUHqn5GTb1Ti6JbdJN8O8cFSEF9CNuHCgZ6ET
cUHexYjdQ8rqAR5l8dwGBP7/lkjXmYiTG6U9mBmWg1OMhxwHopmRTCTWACzxAZHu
f/otdMwyQoedctFfLQv+vxRrcBZLTpwIk7VL4tcH/7KUjlFR/7EHfEPTasJJL+Mc
5U0r8fJjgGlOUgj9pk9enAJ6lxhqumadonQ3inelRd9LArBW7YLKq5TudaoTYmdJ
lVwYR6cWIFs1Zg7SsXPOO6aEIMYmR3pRvCBmYHDPbMWqMpqnomaSBh9WVRN9SUo6
i1ey3/jVSd8+4LKcH+VF7/B157BrcF6NgCajDQcMGuFhvygkFol6TnB7sE6gFcpX
fpY6zFh9tmVqOHFaHZ9cIDRd46hQQwlgv28vceCrRdhjw2Zlj31Mdgea8aTX1Bv7
t9dtPgnCD1Qto7eHZqcz3pS/srHwMWBBbzquaKPdMz4QXhEMTiSJn0WADsQNwIHF
RayqwGhmFjDUsv26HvZwRZNimEfFVHGhtJ/4ZtWBCqaoG513pX9Hp+KNrX2BvZ3c
kohe6oZ8wLOd8AfkpHKNNGQzlupa9yxxqmn2y1TKqDTAvfgRuOY1B1CmVbuzyynC
KaMVrl4cRrZkHTr/
=3DTWmJ
-----END PGP SIGNATURE-----


--===============6843198320161869973==
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCaxA67QAKCRCb9qggYcy5
IZcGAP45ekJy3tQkX3OM2yL7PtfjL/MjOcoiyDB8pza+c5An6AD+IQCQwUXClqRW
rTvqwKN8sCZqs0TZ1bDengbz3WLIHw4=
=/tkf
-----END PGP SIGNATURE-----

--===============6843198320161869973==--
------------=_1796225942-2548397-0--
Technical Details
Message-ID: <O5UB4-fz7u-15@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O5UB4-fz7u-17@gated-at.bofh.it> <Nxqcp-dXGS-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: "Debian Bug Tracking System" <owner@bugs.debian.org>
Newsgroups: linux.debian.maint.boot
Subject: Bug#1146054: marked as done (partman-auto: Detection of fakeRAID  is flawed)
Date: Wed, 02 Dec 2026 16:40:02 +0100
Message-ID: <O5UB4-fz7u-15@gated-at.bofh.it>
References: <O5UB4-fz7u-17@gated-at.bofh.it> <Nxqcp-dXGS-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-boot-request@lists.debian.org  Wed Dec  2 15:39:17 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Amavis-Spam-Status: No, score=-2 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
MIME-Version: 1.0
X-Mailer: MIME-tools 5.510 (Entity 5.510)
X-Debian-Pr-Message: closed 1146054
X-Debian-Pr-Package: partman-auto
X-Debian-Pr-Source: partman-auto
Reply-To: 1146054@bugs.debian.org
Content-Type: multipart/mixed; boundary="----------=_1796225942-2548397-0"
X-Mailing-List: <debian-boot@lists.debian.org> archive/latest/223690
List-ID: <debian-boot.lists.debian.org>
List-URL: <https://lists.debian.org/debian-boot/>
List-Archive: https://lists.debian.org/msgid-search/handler.1146054.D1146054.17962257772546602.ackdone@bugs.debian.org
Approved: robomod@news.nic.it
Lines: 316
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 02 Dec 2026 15:39:02 +0000
X-Original-Message-ID: <handler.1146054.D1146054.17962257772546602.ackdone@bugs.debian.org>
X-Original-References: <179622577379.38566.1489205347541404855@fasolo.debian.org>
 <9e5fff7b-9c1c-4897-9727-19f7c17ca91d@plouf.fr.eu.org>