From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 26 May 2026 21:37:53 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRxb7-0048iF-2Q for lore@lore.pengutronix.de; Tue, 26 May 2026 21:37:53 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wRxb7-0002sw-6N; Tue, 26 May 2026 21:37:53 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1wRxb4-0002nd-0W; Tue, 26 May 2026 21:37:50 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wRxb3-001zPk-13; Tue, 26 May 2026 21:37:49 +0200 Received: from [::1] (helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.98.2) (envelope-from ) id 1wRxb3-00000001DHA-3N4b; Tue, 26 May 2026 21:37:49 +0200 From: Ahmad Fatoum To: distrokit@pengutronix.de Date: Tue, 26 May 2026 21:36:44 +0200 Message-ID: <20260526193736.288664-4-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260526193736.288664-1-a.fatoum@pengutronix.de> References: <20260526193736.288664-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 3/9] datapartition: fix regex for virtualized block devices X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The closing parenthesis at the end of the pattern did not close a capture group, but was interpreted literally, thus preventing match of any Virt I/O block device returned by rdev. Signed-off-by: Ahmad Fatoum --- projectroot/etc/rc.once.d/repart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectroot/etc/rc.once.d/repart b/projectroot/etc/rc.once.d/repart index c84ab31f67a1..a32be3231847 100755 --- a/projectroot/etc/rc.once.d/repart +++ b/projectroot/etc/rc.once.d/repart @@ -1,5 +1,5 @@ #!/bin/sh -if rdev | grep -q '/dev/hd.*[0-9]\|/dev/mmcblk.*[0-9]\|/dev/sd.*[0-9]\|/dev/vd.*[0-9])'; then +if rdev | grep -q '/dev/hd.*[0-9]\|/dev/mmcblk.*[0-9]\|/dev/sd.*[0-9]\|/dev/vd.*[0-9]'; then echo "Repartitioning the root disk..." systemd-repart --dry-run=no --definitions=/etc/repart.rc-once.d/ else -- 2.47.3