From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7176360366364950528 X-Received: by 2002:a05:6870:be06:b0:144:78f:4664 with SMTP id ny6-20020a056870be0600b00144078f4664mr30869oab.69.1670876603352; Mon, 12 Dec 2022 12:23:23 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a9d:181:0:b0:66c:812b:432e with SMTP id e1-20020a9d0181000000b0066c812b432els2674597ote.2.-pod-prod-gmail; Mon, 12 Dec 2022 12:23:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HIz1BK8GStHpyeUWG0GIv7TLdctXDSZHOYxO2Li+lNTVnyDM8kIySYNCagGVOqKec0r1l X-Received: by 2002:a9d:5910:0:b0:66c:cb4d:3498 with SMTP id t16-20020a9d5910000000b0066ccb4d3498mr7165364oth.27.1670876602512; Mon, 12 Dec 2022 12:23:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670876602; cv=none; d=google.com; s=arc-20160816; b=M6tjDWikJNOwn3nwCJIao6GODzka6zz9ME7Gc+YR3umIhvbvJic95+O3E+8vVzR8l5 FBZMryQdXDTAFNUrRCRBgBE6NqgLzKPA+mIe+GmQOsheClNlTm8ljX7eyNpWRTUK0fo6 Ccp4HzPKsEt7l2igprdWwVBB6dRNUjWAOsfP1gAaxz23+c/R1db+6KUOLGs0swoGnnSH 4KuJsjZC0+TSxSac9NZRz7fjGTG9aBiBPubDJA5T51MIOqMizEIeCpSt/sRR76GQyr7C oqzzH7nwoxVDaP6Ni0ngF+QvPCZMg9VQOAfHZMiTsx8bk1a+df+ECVJ/S7AlopTi/crB zCwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe:cc:to :reply-to:message-id:subject:date:from; bh=ymQ8POOFJM52HWsjuWU5yeN4IaRh25iCCEQeRjhLltw=; b=NM+KO3CyIIzQW7WWrUKXD6Q7PLQtaHtzaKAIK/q9kXQ0FPN8s/UYM/EcejRZpRg67m ADgF6OMl6eMAM1Y+vCbdLn8MQe3pRpziyJk1v18kMmV+V7RZF6pGjyJQIw3Ps+KIV8mF qED5e1DhgRVYmsylpSRZlYBRD0hX1zLUjIjfaKR+aYogvdjQpvRvQ8OlNoE1VbX2UTqr zfWJeBbl0prOtf/3qoklAMg3WMvGqugu57Y73muoKyIPr5VCfMsFAIKVq6UVwOuucqNV 24RFRlrIVYBSHf/X+p2u5vhiiIQtAknl77CYZAXy/uGDwnqCCs7i+vAzA9SS0DMp6Neh iMGQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of bounces+97mrrskicjeyh6us27rqxw2@bounces.elasticemail.net designates 216.169.99.3 as permitted sender) smtp.mailfrom=bounces+97MRrskICJEyh6us27RQxw2@bounces.elasticemail.net; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pn3.mxout.mta2.net (pn3.mxout.mta2.net. [216.169.99.3]) by gmr-mx.google.com with ESMTPS id r17-20020a056830237100b0066e950b0580si81758oth.4.2022.12.12.12.23.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2022 12:23:22 -0800 (PST) Received-SPF: pass (google.com: domain of bounces+97mrrskicjeyh6us27rqxw2@bounces.elasticemail.net designates 216.169.99.3 as permitted sender) client-ip=216.169.99.3; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of bounces+97mrrskicjeyh6us27rqxw2@bounces.elasticemail.net designates 216.169.99.3 as permitted sender) smtp.mailfrom=bounces+97MRrskICJEyh6us27RQxw2@bounces.elasticemail.net; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com From: roberto.foglietta@gmail.com Date: Mon, 12 Dec 2022 20:23:20 +0000 Subject: [PATCH] In expand last partition wait for udev have finished Message-Id: <4uin2k6ynf84.97MRrskICJEyh6us27RQxw2@16F0H.trk.elasticemail.com> Reply-To: roberto.foglietta@gmail.com To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com List-Unsubscribe: =?us-ascii?q?=3Cmailto=3Aunsubscribe+97MRrskICJEyh6us27RQxw2=40bounces=2Eelasticem?= =?us-ascii?q?ail=2Enet=3Fsubject=3Dunsubscribe=3E=2C?= =?us-ascii?q?_=3Chttp=3A=2F=2F16F0H=2Etrk=2Eelasticemail=2Ecom=2Ftracking=2Funsubscribe=3Fmsgid?= =?us-ascii?q?=3D97MRrskICJEyh6us27RQxw2&c=3D1588198146759178339=3E?= X-Msg-EID: 97MRrskICJEyh6us27RQxw2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-TUID: tzaiE/n597cx From: "Roberto A. Foglietta" bugfix, expand last partition, wait for udev completion On some hardware the udev did not created the links to the disk partitions while this script is working thus it fails. This patch fixes that cases. Signed-off-by: Roberto A. Foglietta --- .../expand-on-first-boot/files/expand-last-partition.sh | 2 ++ 1 file changed, 2 insertions(+) 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 acfef8a..68e6698 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,6 +9,8 @@ set -e +udevadm settle + ROOT_DEV="$(findmnt / -o source -n)" ROOT_DEV_NAME=${ROOT_DEV##*/} ROOT_DEV_SLAVE=$(find /sys/block/"${ROOT_DEV_NAME}"/slaves -mindepth 1 -print -quit 2>/dev/null || true) -- 2.34.1 https://16F0H.trk.elasticemail.com/tracking/unsubscribe?d=uQeFOzkk8plXVVZ2VnEcpnRSdsZJXyyuanyoKUe_hgUtRGm67z-BYxoD4dUduarMjrGtkXTgZjMZXUuF072gCX_KXuQap6OFDQDgYq9jqpv90