From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 04 Sep 2024 10:23:18 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f62.google.com (mail-lf1-f62.google.com [209.85.167.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4848NH80001915 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 4 Sep 2024 10:23:18 +0200 Received: by mail-lf1-f62.google.com with SMTP id 2adb3069b0e04-5334b6016ebsf359252e87.1 for ; Wed, 04 Sep 2024 01:23:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725438192; cv=pass; d=google.com; s=arc-20240605; b=am9mpByVPtmIYKat5gNjGKeNjMr++QrIpwpbIcti7XTc8u8ekJZRBKdbB84OEvsC6L uvJuDq/pDGPHk7hKcCFi13792/1W69w21rJmKP+Xe6hbNJD+m6ZZ1PkqrymmpRDwu7u4 V8M+7iesmxyMdvbVz9Uc9UB6LN/9kXYuvCQM/vWb/EaDULlq6AbM3bg6AlGJy/j+zYKu 2Y2XCOfNpSlhWdgVKo7UWpJRyL20IjusDsV6L+CTM9QT5OvMC+sufQuJeCZbZdBeyge3 FxSRqTKQCdTgfkQ19EHI1N8r+eYE0KXTaC9fsLl3oD+HAYIw14WEKR9o9OIUHu+/qvHl Cfmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:sender:dkim-signature; bh=xpSCGGihJLOTIxtGP4j3rXfp3xmsW4NaHHJ38drBAhM=; fh=2Obv/eai77PdSG2CfMhJLDCJcFuJRRZ6J9Yp67KCjo0=; b=ZA4uHCYneRGHSk4XcrL6+7lk4U0d/ULyWCf08yDHlmfkQodIdg9u52XPZOIGnwq8Al 5u9CYf6hRMura8ekkEYst3CDU1zFJ+fQNWKLsNlQvc0VbG5SEhllvo9m94Nd8Ij4kQ7E eTquhvGVNNZ/fkLke8gnLo8pjepYGf+3VaKEzxwD/RBL3ry+UqXqEulzA+l2k8z9hTtX QRQh/r1kBoai6ELLGWbPXJBzfz8BuE8hQMzFghj08bw2eeIsgYFin8k78ScFCiCCH1uc mPYVip20rdKrL912GvKDp0PPmDEpQsB5jElrzYIXlNi+qIYI4c8+AeR9ikzZgyZEXm/Y Xorw==; darn=ilbers.de ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1725438192; x=1726042992; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :autocrypt:references:in-reply-to:date:cc:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=xpSCGGihJLOTIxtGP4j3rXfp3xmsW4NaHHJ38drBAhM=; b=dgRMlUXLpXJyEj3Hd6Vb2YTDzrIWiPGjdtPfIg7YsCO+hGH/M04UqBXy2fmT+WuHnJ n46l24sJ5drTJQeGqxegkKfiVraWO5XvLn9Z/Wazg3hCrcXqE/LkcaP5aHjb9O3QZ0/D IA2r6NeVXr15Ep0lJU8nLlFlNpchhQrdHBgJxxiRcy2GTTwQbg2UuXBAJAO7zrB0pnf4 rS+S1UsmRXCPCU1MH04I3lUpO9w6nslUqmWibuwYLnPcARWe9/NulW0brL6gejy9OAXH auJPh5xYb5SxyTDFv2V8rwjDISvHGOOOQwBsQ3T5ecVnahvjWEnBgZD7J4aj/TxjclMr fvEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725438192; x=1726042992; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=xpSCGGihJLOTIxtGP4j3rXfp3xmsW4NaHHJ38drBAhM=; b=wlF/J9JMzrtrW2d+wGvxziLaCnTcBoY/LuD58S3/9tQc/JrmgQ7PqLvJKLjas0Ducy E8jIpFqRGravE+MqmmPLlC3QbwMJVhclHGDRucBc8gvBuC7M/kIDfmd5O37XBcTpUvnp kZ9iaD7zMJdebtkx+AuAlTWa3Qi/ZloN7RnjCCy6k85sVnUhxNNQTWvvn8u23piqO/W5 X7q/wHLICBTUO80p6xYYmru3qGTsEzg/R/9wTT/Fki2A3MQtWVUmIdIu/9TVqiqPzkj3 /4tbjeStiSMc0L33pBTKH8zXs8gs+kZ1OzrGHcMJcj4bQKprBAXSUr9NFGMMxKSnv8Rn 22Ww== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWD5Km+7h+8HLcex2j2oXzEzlx9cbEjFT5O4jNWCPth+NlAMFBLOoCZNjuIhz+FbI2QUoKb@ilbers.de X-Gm-Message-State: AOJu0Yy0hS5ijbJj1iFaoAJyqMz4CmgycgGPS5BrUEAG0/VYJcpX8lzg GIdV7yDXVpdq79uFFnSzY2JtFW/eVE6KG03zCiQc0q/OfwTPnJq0 X-Google-Smtp-Source: AGHT+IGhLyP74NZCbPtH+1Y5ruAHQqZki3YV8rsvWuYTPeNvk4wkVforg0RsE+9x7/BVWUCszJOwxQ== X-Received: by 2002:a05:6512:3b27:b0:52e:fd8f:624b with SMTP id 2adb3069b0e04-535678e4a3fmr425700e87.29.1725438191201; Wed, 04 Sep 2024 01:23:11 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3e03:b0:533:4cbc:26ea with SMTP id 2adb3069b0e04-5353d716f08ls234652e87.1.-pod-prod-00-eu; Wed, 04 Sep 2024 01:23:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU7DDXli65oKHB3mmx/AEur9T5Adpm7b7cRnGFpm16vLBO1yZ+I5+i9n7DZx35PVJKtWIhkcjN7/6jH@googlegroups.com X-Received: by 2002:a05:6512:1395:b0:530:ae99:c850 with SMTP id 2adb3069b0e04-53567662aa2mr465247e87.1.1725438188727; Wed, 04 Sep 2024 01:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725438188; cv=none; d=google.com; s=arc-20240605; b=Gm+G/4PrX/5cQcSoBhpR2yR9eFMtgMajpxbvmQOvjQ2rHUaStHIBbu7BgK6+nP256w 5FR/B+3pBAnpRFRoB+fRrrk/gDo2cXUPz53y/+AQJJHd6rJ5SAmXBfRDkWtp/tolOZXO NPTu6m7jVXOlm3WpT4xz9ukNckT0fumHHMoYsILmAXFu54T4tLhWl5Rc11Z15qXFWzEt QInA+xaV1Av4+F/szk82JTUA7vPXA+3MKhN/54r/22q+OU5UIv8oxndY3xWLoQbDJtCW ZKsOM5vXcYyVCohcH0DyUOn3JELnyldTtBbNBHF/qwaEJ5j1JiyJ+jWAtCbNqAdWk+/M evIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id; bh=+4cKWC/yRFT+SP1pDUEpPNO1MDFE/5tH9iujNzJDB1g=; fh=dO2gP3zebfE8BJSs5Z/NuTEjM8SpEYHrTCUXx7xXTeI=; b=Elv2rJtrtmxjVTL5VB7P+UO0Io7MGorMpPQ7ru9rZF1wIvAdAsUuhExptowo5v8XLZ BWqiXszJilwEtJGwchPX3db5wS6y/rLKToEHU4RM3fT5iWue6uPmd5pJN9fWRMUxJFbJ oPCY9FBVYMp5Ep1SXMLPXqS9/ptqzGZaTcrHC5JaCCN/WkHI1W7JSqSIXlTLprRA976y /2RfawWuaocbvg79CbQ+ct+DnELcfQZZXEwsZP9Ob3CZHNMSQx+DbClVOx5L5GV/Ngln YROWH51Li+9aDzDo4/meENNxbqUUANB7GR3l03dRs1Si1FRChqiD7fbe70JNn7QKuJuQ 5PZQ==; 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 Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-535407d47e0si264937e87.10.2024.09.04.01.23.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2024 01:23:08 -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; 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 4848N6xX001906 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Sep 2024 10:23:07 +0200 Message-ID: <022c84b4d1297d88a552509cee74497217dce6d6.camel@ilbers.de> Subject: Re: [PATCH] meta-isar: Added support for nfs based rootfs in deploy-image-wic (isar-image-installer). From: Uladzimir Bely To: alexander.heinisch@siemens.com, isar-users@googlegroups.com Cc: jan.kiszka@siemens.com Date: Wed, 04 Sep 2024 11:23:06 +0300 In-Reply-To: <20240828114615.123711-1-alexander.heinisch@siemens.com> References: <20240828114615.123711-1-alexander.heinisch@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.4 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS 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-Original-Sender: ubely@ilbers.de X-Original-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 Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: 6GRed664axii On Wed, 2024-08-28 at 13:46 +0200, alexander.heinisch via isar-users wrote: > From: Alexander Heinisch >=20 > When AUTO_INSTALL is not used, the script tries to resolve possible > target devices to > install the wic image to. To not overwrite the device hosting the > current root > we are using, it tries to detect the current root. Which works fine > when a local device > is used but does not work in the case of nfs. (most probably it won't > work for cifs as well) >=20 > With this patch we are detecting nfs based mounts of / before the > local device tailored handling > is applied and bypass the breaking parts (in this particular case > readlink). >=20 > Thus, in case of an nfs the current root device will be "nfs". >=20 > Signed-off-by: Alexander Heinisch > --- > =C2=A0.../deploy-image/files/deploy-image-wic.sh=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 10 > ++++++++-- > =C2=A01 file changed, 8 insertions(+), 2 deletions(-) >=20 > diff --git a/meta-isar/recipes-installer/deploy-image/files/deploy- > image-wic.sh b/meta-isar/recipes-installer/deploy-image/files/deploy- > image-wic.sh > index 8b25b1d2..95188fe3 100644 > --- a/meta-isar/recipes-installer/deploy-image/files/deploy-image- > wic.sh > +++ b/meta-isar/recipes-installer/deploy-image/files/deploy-image- > wic.sh > @@ -47,8 +47,14 @@ DISK_BMAP=3D$(find "$installdata" -type f -iname > "${DISK_IMAGE%.wic*}.wic.bmap") > =C2=A0 > =C2=A0if ! $AUTO_INSTALL; then > =C2=A0=C2=A0=C2=A0=C2=A0 target_device_list=3D"" > -=C2=A0=C2=A0=C2=A0 current_root_dev=3D$(readlink -f "$(findmnt / -o sour= ce -n)") > -=C2=A0=C2=A0=C2=A0 current_root_dev=3D${current_root_dev#\/dev/} > +=C2=A0=C2=A0=C2=A0 current_root_dev_type=3D$(findmnt / -o fstype -n) > +=C2=A0=C2=A0=C2=A0 if [ ${current_root_dev_type} =3D "nfs" ]; then > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 current_root_dev=3D"nfs" > +=C2=A0=C2=A0=C2=A0 else > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 current_root_dev=3D$(readlink= -f "$(findmnt / -o source -n)") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 current_root_dev=3D${current_= root_dev#\/dev/} > +=C2=A0=C2=A0=C2=A0 fi > + > =C2=A0=C2=A0=C2=A0=C2=A0 case $current_root_dev in > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mmcblk*) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = ;; > --=20 > 2.43.0 >=20 Applied to next, thanks. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= isar-users/022c84b4d1297d88a552509cee74497217dce6d6.camel%40ilbers.de.