From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7156869355346591744 X-Received: by 2002:a05:6902:110b:b0:6ca:74dc:d56 with SMTP id o11-20020a056902110b00b006ca74dc0d56mr2671340ybu.647.1666366908800; Fri, 21 Oct 2022 08:41:48 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:690c:30a:b0:369:cf4f:2b7 with SMTP id bg10-20020a05690c030a00b00369cf4f02b7ls759649ywb.1.-pod-prod-gmail; Fri, 21 Oct 2022 08:41:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XYCOOZCvkHFqsPmOfz9oklMGA5BtQXYJn1ERIzBhkkyQN9qy8nFMFzAN+zXmhnfFlZRpV X-Received: by 2002:a0d:f782:0:b0:364:43ac:d63a with SMTP id h124-20020a0df782000000b0036443acd63amr17514608ywf.484.1666366908069; Fri, 21 Oct 2022 08:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666366908; cv=none; d=google.com; s=arc-20160816; b=LY0y/BhEHaoE10nsA2H3bO7kf/OrIY/PzgTI6zFzrtah/torTx9i2E6TuH/myy8Wyl z6CyjM/eMTd0sCrPtvCS+/9NOuZGk3vk7Fmtj+O7qlW2BSRDvaNdQ/XhcjuPj/baM3jo 6zZ7J6qjQmTl5xUvaZq9B5TybJwYrTyxLqA+xPOvC1tvfMffNtYxZgXi5VPNk7FM8aMA 4U87iwcLJmKaSQ1I8EooOPupjFo41ZeYZrgypkfrLoGTZh19hbvlt6k3XE6js/fsWdzc pZjRNr5QTtLYczGLvMFUG2Q7ERL+9mZN3VglMioE8EcLlNDib1y7O0a6ER4fVWBMD2WJ SaSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=+C1zevuraAHgjXnO/pcg8PMcv15wbSsAZLg3S2rNvr4=; b=CW3u5WdqBDkaXUYxIgKLpTXSt/kyeEEbThsCaGxY7+OUw+PRy9++1qAP6eWcPLv1V+ W5hYZUtJGNQSv+PlANF+HrSzas5axduLyvMSnTneQoaE70AE2PwrwxgIzXuMZNb8wDDq FdgvBQf1MU0m4bb9egX1VjWoPdohbuxsqYJ42aUXOj/gc2uWVcl/grkt3mNsrZvopfOk x2WuuOZ4zEq4nW5i4JsFQGsRcAESo4/Wn9ykA8zsjCWmmPfXg69UWPiUKbZu3q81vhgB wd7z2LokqdLCfTlZgZJaMSf7SNFmfigQ8YBTNzrJCNT5DeLmeCvR2G9d2bb3McwAA0nS /J2Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="aBV/D5iq"; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com. [2607:f8b0:4864:20::1030]) by gmr-mx.google.com with ESMTPS id s68-20020a818247000000b00350b92acf33si1996231ywf.4.2022.10.21.08.41.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Oct 2022 08:41:48 -0700 (PDT) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::1030 as permitted sender) client-ip=2607:f8b0:4864:20::1030; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="aBV/D5iq"; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-pj1-x1030.google.com with SMTP id z5-20020a17090a8b8500b00210a3a2364fso4641211pjn.0 for ; Fri, 21 Oct 2022 08:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+C1zevuraAHgjXnO/pcg8PMcv15wbSsAZLg3S2rNvr4=; b=aBV/D5iqOLMFMJ/8uGKO+Ky0QtaDa2TXIOJUjoXY0+ovwFX+sokydt2ZQ27ydtJKyh IOm3tFtdCcfQuBLx11rLdlDEtk+BRsJgICjW1Gm8zz+WszNwQ5noRtNBW5xyB1MRmlDC A2NtO+jvo6ypOY0SUhBxIGAR0d5KmMuU+0s/5xxObu2hf8Is6cpa4ZAS0vd4lk/g3lzt CfSGDzjcxjraF61hLyP+f8ksigZMumIyd0DB20nmmcMOJriyOOHDWMv1oDfasmbD+yP8 jmAje57Y9cb6HHWYH/BSIBNmIIv9WJQ5NlopCHuKW72Jf8FDeJxBS2JD+mIALubEXNiZ WXaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+C1zevuraAHgjXnO/pcg8PMcv15wbSsAZLg3S2rNvr4=; b=k8HjikRueibh7wR4ndYddT62cSAa2zh/hE+ikp02sjk0VeQ7EzvzTGTeK4dPIygkT9 YN3ApTWwUw/QulbUIwaqu41v42nlUM0W3CZbr8wXChxMNnytp78sbYqIGu2T1Fzz7hTx WtrIMg5dhoblaqJD23H1MM5o8U+y7r8jO0Q9vTrkMV0t5EpIYGiB4e1j27VML9jGc8JM Lw0CO2cucO43Q+vxkeXaBr985wWqqRCK1NSrWaWwYQL0gUOnJQ1FcZHhhU/6rYM+GqJX /ZrOk/+Yq11Px7xv2JdXn2W+QBnpHHH5JxvlBCyQqz9WeZZo0QWGgMiqR+zt4xWf1VOW peCQ== X-Gm-Message-State: ACrzQf241MQy22wCKHZtphG7tjAjSrGfcqZGT5xd/LvfayRD47zu3xgp A45KGtS+/bvjlHds61Zv3eLfdzsps40Eso/hHw== X-Received: by 2002:a17:902:e548:b0:186:1269:928d with SMTP id n8-20020a170902e54800b001861269928dmr19805309plf.167.1666366907149; Fri, 21 Oct 2022 08:41:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Roberto A. Foglietta" Date: Fri, 21 Oct 2022 17:41:09 +0200 Message-ID: Subject: Re: expand-on-first-boot and surprising umounts To: Raphael Lisicki Cc: isar-users@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-TUID: 9O15ZB5eKyPo Il giorno ven 21 ott 2022 alle ore 09:48 Raphael Lisicki ha scritto: > > Hi everybody, > > I am using a debian bullseye based system and use expand-on-first-boot > to expand the last partition. It is not the root file system but an > extra ext4 partition to be mounted under /data. The mounting happens > after expand-on-first boot has succeeded. > > Sometimes, on some builds more often than others, /data gets (attempted > to be) umounted immediately after being mounted and subsequent units > will fail. > > Removing expand-on-first-boot resolves the issue, so does adding > "ExecStartPost=/usr/bin/udevadm settle" to expand-on-first-boot but I am > not sure if this is only a sophisticated way of solving a race condition > with "sleep". Hi Raphael, this trick should resolve the problem (untested, after the first boot nothing happens anymore) echo 'echo "exit 0" >$0' >>isar/meta/recipes-support/expand-on-first-boot/files/expand-last-partition.sh It is equivalent to apply this patch and obviously it is just a work around 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 759ff8b..09f5cd4 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 @@ -62,3 +62,4 @@ partx -u "${LAST_PART}" export EXT2FS_NO_MTAB_OK=1 resize2fs "${LAST_PART}" +echo "exit 0" >$0 Best regards, R-