From patchwork Mon Dec 12 20:23:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Roberto A. Foglietta" X-Patchwork-Id: 2285 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 12 Dec 2022 21:23:30 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-oa1-f61.google.com (mail-oa1-f61.google.com [209.85.160.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 2BCKNSsQ029549 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Dec 2022 21:23:29 +0100 Received: by mail-oa1-f61.google.com with SMTP id 586e51a60fabf-145002d9045sf2865521fac.18; Mon, 12 Dec 2022 12:23:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670876603; cv=pass; d=google.com; s=arc-20160816; b=CopCbrjgA8y+cHtIKNkxLXjFSbCRawJXRnL1wJFxHzcGB5WLMljwuVN2+DzmzO1pR5 kIVrooaLm2TcNkxdwt9dADq5wPuImNtDnoaz5n8KqVxP5nMHYi6CaNPEQkKEF3oOgvFM Ko+EZAeIanKPJ6nHqyNLJoilluQu6cPJa/RajU4N6rkZrmX+CUAxQDDDczB6vSSFxTWV 4nghB4tRC1+44DLdofJum5S3zvg21NdV6MTFNp4VXz0LJkMTsOIkqVWD7M6TVSA+mgce bS2m021A587wAi/Q2WRP61WHIK8dklQ+mJEMyGCWkxi6XKu9ZNFWRfvaBk3EmW2Zjv0v mD1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-subscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:list-unsubscribe:cc:to :reply-to:message-id:subject:date:from:sender:dkim-signature; bh=goeKuxuTh4sEYIQyoKHAhEhHsS0WcCHMZP6sZae+x34=; b=SacV0RJekryzm3Fh1C3S8em3uKvC4kvF1WlwQwoLdULzIilEdsthNqByb7Ap3Gqrwr JppjQTkP8Eykn+3GVQbyUbxrNfE9JaD2QG+WGBbD4aIc4+5m1XLezcJABBscDm3XXtcK Qp9unsRl7q5F5s8W+yFFkMpE/oNOIf0ycvWKGYxqZ977Nh+3Efzy55DduUsRxlaRnZd7 TPlXy+ylM5yzgiwLxUBf6LJO/EDWH5Wvf81s4KZ/lvJX0PuE9LZqqbhVdJ+FqPBQyuz/ HMzohUk4XzfgjdMjJQCaHlIVIwiK7mn8MVATDb3WfBwhm62FHErc2AmiMfmGeZlfdMoN QqsA== ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-subscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:list-unsubscribe:cc:to:reply-to :message-id:subject:date:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=goeKuxuTh4sEYIQyoKHAhEhHsS0WcCHMZP6sZae+x34=; b=M9YFt1ZKFrJwAO/Yuyz1CniUmSSrTRdqQyhFhYYpNfCDPUtk8m6tcgVT+MA0Uao2TP 1sao3XAqMEmLqIpJJ9xQxBe80Hr/om588vXS35OOim6ykbAT2WhHCf335vWib/riEBIB x7pYSN5hRGtr1UueZdXZlb6Cu7qa530yJdg36zpM13Y0/BYkS7reDKP5XY7Z8D1DlG+f 32pMpXKNxUWMZiVyp0wdjdUMsGmNQn5pVlKpUWLX2gYWTK6CPM44NiKaJSPZ2xO+W5Ca nAys7hLMiITQvJi9Ws5cxrFj4VM21NOa9q9G5zhBIP16xapp21bI14blQb939l0EalsT oYJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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 :list-unsubscribe:cc:to:reply-to:message-id:subject:date:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=goeKuxuTh4sEYIQyoKHAhEhHsS0WcCHMZP6sZae+x34=; b=RK87uXKsswlWuAHiqqBTym3OReHtKvUKccKFNZm3jUPUfV9AFF7i/4/Ch6mMp/sa4V kQBo2z7oWiRMtpiyRtgZAZtHhD4DHzIiXC/1Zozn08z9xSw9Dc1qj5Ym6cv01rn8EJo9 bQzZyeZ7AR6Y5k0PGPd+eJ4Gsf5vs8A5fN6jtm3OPebqfhFukPQGfBMmGUIMNgfTmxsY LS/HZbyBAPG6MkxmRgK9gYgTI3Kp4RHS9BPb5/KxrDqYthzKd0T3QiAjS3yrDng0Wwms 1sZe55ic6eYCYyx4m5hTXfVmgHrObXjeGWAjihSOkeDZ3dHUd131hBZNHFvPcpd1r+Wu FrJA== Sender: isar-users@googlegroups.com X-Gm-Message-State: ANoB5pm0+dV5I6ktVaLm06aX+RjoHemaXmYpVpFM0nrS3aiva0+r4FKB Aa8kRsXgr8ZJGzsReOOcDlM= X-Google-Smtp-Source: AA0mqf5oar3I76GJd9GiQUiclmop7rMUl2FN4V05vgxKUfYgZa+SoFvbaNsRD0meNoParDHg/MkUUA== X-Received: by 2002:a05:6871:93:b0:148:25f1:608 with SMTP id u19-20020a056871009300b0014825f10608mr33135oaa.249.1670876603166; 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-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 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; 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: , X-Msg-EID: 97MRrskICJEyh6us27RQxw2 MIME-Version: 1.0 X-Original-Sender: roberto.foglietta@gmail.com X-Original-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 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: , X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= 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)