From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7372568835680894976 X-Forwarded-Encrypted: i=2; AJvYcCXx+uhDKImanAwBKJegkfJzBHyWxK3HZZKHUmAhhvEd/QIvICQ5Pbpc6FguMJcND8SHDBsZmwG5OkzHG8aNWpGsm648dVU1Fsu2dzY= X-Received: by 2002:a19:7605:0:b0:52b:7a3c:36ca with SMTP id 2adb3069b0e04-52b8958b03cmr5057022e87.27.1717396598651; Sun, 02 Jun 2024 23:36:38 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3c8b:b0:523:a6ea:934b with SMTP id 2adb3069b0e04-52b8efb5af6ls1092630e87.0.-pod-prod-06-eu; Sun, 02 Jun 2024 23:36:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVZUJp9d9xgYgYgZRQjdo1QfqWQhYWFlq+BGqGNiynblRBGUosFFZdtvvqjLxDJ+MIBiCdJ3Dtw9YpiqXdz8cIbE151OVTE/4/uyZM= X-Google-Smtp-Source: AGHT+IGFG82gDgJwYvRJeJNc8w5HaXAzDd3ny83QvbveUTgRDs+xZ2YHAsgWozjKwXCTsQVmsCtJ X-Received: by 2002:ac2:47f6:0:b0:51d:8ff3:d156 with SMTP id 2adb3069b0e04-52b89576bc1mr4787728e87.19.1717396595995; Sun, 02 Jun 2024 23:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717396595; cv=none; d=google.com; s=arc-20160816; b=aHUO1Ptr7adakpfPZVcOdLNnRG4VfoJPHvpTEeOwSSX9sbzrKtR+hRqKVJI8Rek4is c0jzA7HscwYY/6G+XQIi3+TqvSPyTh6HQBdq2rVFR0+xlZB+YNaeIKNPOXKFw9zvqwzw Ilwz22S7hTi1OeBJgdDORO0hBUtsU5DWB6c9XDY4HqZogm+zes0Vk/ZNpeePXTUGrhFf pQ5uPMhZRgYxha6vFINPm6NPNhz3W0fcGTAZrXJ1Zfp20vu/w/kWkPAaHmcQ3r2MXNyo i9kDs586stp7TO4ODw0lghIea8X8Et2LHSXKrKQJwwAoHoD+1FRu1KM3+afDo4O1VIFL xj2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:to:from:subject:message-id; bh=7IT+YfCpmLNguiZG0hMv31NYamT7omKxBpwPgY860DE=; fh=HZDS7CgT2DdTF264NHhzNh8Tl0ssDo8G/2CxRpj6KC4=; b=q3H/5bjgOl3OfTXca8xOVBbusqlqK7wSh/0ikGyIq3dt+GLt0eGM5pRffyAnkVBVec Sap3NtpjMeGw0BcREq3zYikdX7Z87/pLf2pq/FMkBbR6XCj/MziM2mJvPEIoTPSb16Yp /X2WF8yHDYEbyFvvblliPvIco+6XEHEhLCTYG6uch3OaK2FEBvjA23rQEqqAgAgzMEEY XckzZCwC3JupyElXW6nz385/pvCSBBzr68NuHx8Swf9/FHphpPWIZ4dhe2WecT+LVW+u +HZWZVj2KeJyNdg68mCJQRYK4FxuF3Vdn/m0w1V+AAxOvPdoHtMD9eZvY8Gbi266D80R Jpog==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-52b84d3d2easi136957e87.1.2024.06.02.23.36.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Jun 2024 23:36:35 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [IPv6:::1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4536aTGj007165 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 3 Jun 2024 08:36:31 +0200 Message-ID: <10252d0201a8385ec50a77b41907cd81dd40298c.camel@ilbers.de> Subject: Re: [PATCH] expand-on-first-boot: follow symbolic before search slave device From: Uladzimir Bely To: Quirin Gylstorff , johnxw@amazon.com, isar-users@googlegroups.com Date: Mon, 03 Jun 2024 09:36:29 +0300 In-Reply-To: <20240524141223.2364631-1-Quirin.Gylstorff@siemens.com> References: <20240524141223.2364631-1-Quirin.Gylstorff@siemens.com> Autocrypt: addr=ubely@ilbers.de; prefer-encrypt=mutual; keydata=mQENBGO2eUkBCACtT+T3OrPVSExBmqfgXT3lp9XcdxRzjYp26wezkgYjjBXaf36bxtaAf S471VoQtpar0RVeFfW7WDDdfX9ZclSj36zBQe+RVSJzoNoNQfjOXWuSHb5Z+cpAFtqBY4muxK4+ia IlLJd6CN3ejOsLHATtCeHHq8wi0z2T+KdLQO+wQRgo2hjj0Lp9pGTrKJry50HP/o7Vbdu14dOx2xq r8+wPc6SQbBIrcqaa4MqCQC00vQG7eXvo+k2MOw59FDdpMH0KR9mHgp3u/s4I+4YRBArukt9G9xz/ rsEFmxAIBC6N/a6Hzwg4puc91n7ABDsPg8Vp+X3MDraujN0dvR6OKVNtABEBAAG0IFVsYWR6aW1pc iBCZWx5IDx1YmVseUBpbGJlcnMuZGU+iQFOBBMBCAA4FiEEJqPNVhVGyk12Eh+PAUQYBM/2FkoFAm O2eUkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQAUQYBM/2FkprlAgAmuna8Hm9EyoEtTl DBGDg6Zm4ZLp5ffvZBE946h92jepDrteoxsJ7pSzJVC2HmDLa4iZUao7lLLbDsUj5x45/iLJcqBZK k3YnAxP2r6a+kI+1VVQY1pxdG1nlJAbdNzoojm/qmezNPSrqni61KVMQKsXBCWhIjSXDSM9CsBj21 a+9qaVqfxovJGTn9lgrZO+xzKQNMKZeOouJlscVuFj21P0ww3/YENiU/nMeTSuYypO76mDtAd08Jo nc3yuHa9MJGei5ixN3wT+IrGR2aL2hdw2M6NgH7sYbL2Zi4ugD6RXHJai1Bh2yvFSVqSQ+M6QOInT 4ud7wslm1XRB065dXtA== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.1 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: wSF70Ortywr/ On Fri, 2024-05-24 at 16:11 +0200, 'Quirin Gylstorff' via isar-users wrote: > From: Quirin Gylstorff >=20 > The entry in /dev/mapper/... is symbolic link to /dev/dm-. >=20 > This solves they following error: > ``` > Boot device equals root device - no partitioning found > ``` > in case of the following disk layout > root@demo:~# lsblk > NAME=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 MAJ:MIN RM=C2=A0=C2=A0 SIZE RO TYPE= =C2=A0 MOUNTPOINTS > sda=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8:0=C2=A0=C2=A0= =C2=A0 0=C2=A0=C2=A0 2.5G=C2=A0 0 disk > =E2=94=9C=E2=94=80sda1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8:1=C2=A0=C2=A0= =C2=A0 0=C2=A0 47.4M=C2=A0 0 part=C2=A0 /boot > =E2=94=94=E2=94=80sda2=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8:2=C2=A0=C2=A0= =C2=A0 0 447.9M=C2=A0 0 part > =C2=A0 =E2=94=94=E2=94=80encrypted_platform 252:0=C2=A0=C2=A0=C2=A0 0 431= .9M=C2=A0 0 crypt / >=20 > Reported-by: Wang, John > Signed-off-by: Quirin Gylstorff > --- > =C2=A0.../expand-on-first-boot/files/expand-last-partition.sh=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 2 > +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/meta/recipes-support/expand-on-first-boot/files/expand- > last-partition.sh b/meta/recipes-support/expand-on-first- > boot/files/expand-last-partition.sh > index 0cb2ee21..8770677c 100755 > --- a/meta/recipes-support/expand-on-first-boot/files/expand-last- > partition.sh > +++ b/meta/recipes-support/expand-on-first-boot/files/expand-last- > partition.sh > @@ -9,7 +9,7 @@ > =C2=A0 > =C2=A0set -e > =C2=A0 > -ROOT_DEV=3D"$(findmnt / -o source -n)" > +ROOT_DEV=3D"$(readlink -f "$(findmnt / -o source -n)")" > =C2=A0ROOT_DEV_NAME=3D${ROOT_DEV##*/} > =C2=A0ROOT_DEV_SLAVE=3D$(find /sys/block/"${ROOT_DEV_NAME}"/slaves -minde= pth > 1 -print -quit 2>/dev/null || true) > =C2=A0while [ -d "${ROOT_DEV_SLAVE}/slaves" ]; do > --=20 > 2.43.0 >=20 Applied to next, thanks. --=20 Best regards, Uladzimir.