From patchwork Wed Feb 1 15:53:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: roberto.foglietta@linuxteam.org X-Patchwork-Id: 2574 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 01 Feb 2023 16:53:47 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f185.google.com (mail-lj1-f185.google.com [209.85.208.185]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 311Frl74029102 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 Feb 2023 16:53:47 +0100 Received: by mail-lj1-f185.google.com with SMTP id b44-20020a05651c0b2c00b002905d4df023sf2569088ljr.18; Wed, 01 Feb 2023 07:53:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675266822; cv=pass; d=google.com; s=arc-20160816; b=uGp570Qavko/RDbAm4EM69sbwm1TDz/1SnQyTNY5QNoKMKKjMz8tp3m0TDshwlBeut ILmA8yRUpxh6wjQOno9JU9fQWXu3qMYscOC9K6sEwsSJT2RB0hs/LywGHG0JCYJhv57/ ZrbUr6Vu4paWLzdCreWvn00B+WIkIT8gVYydtzkYkorczO7BITwRxP2+vzDljDZOg3Zz LOmKCLJRdoK3Mh58Bx1a0TU07BkORasgiaJBSSetK9s3egM+EcZNMdBKmViO7L6jyaD+ F3T83jV7g+pWrxvnoH2xX16v/6eVBrsONqir8cLRp8zbpwZdoV5K5dKAUabH3jKx8VQC my1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=nNU1vQJQ1nd7n9OZY/hI9MY304UBenuWIonAHRIZpvs=; b=UpsS4ZZnMEmvKAhARAeE3L7eHvnprrW2oHMRKLtJQI98tBrsXanHhabqx1oRgR1gcJ B71fN3Pw0TN66PaMBCkEWY+ralThNgDhPJmuCCN1b+x4ib4vHB2D27t8ql96/ew3F3v6 N0qzNVCv+5amiE7+fwsdz0kPpRwB/9Hmra0VzLMM6qRywJ2py5Xxd04UWw1z7fqOR173 QL07oi1ruzHh8jF03z9s9Rj0KJBfwH81bz51Pfbnp9cczOi5HdnCOpfgBi5CZ/JVmWZh 44b+7D9mTrBoPM75nlzk8AXB8lZY7tVAEC8rqmtSlzaX5zCozK0RC5mAVyelcP4Zo3qu CRiA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.167 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=nNU1vQJQ1nd7n9OZY/hI9MY304UBenuWIonAHRIZpvs=; b=R4031yWlUwdsU9mAgRvWSWNiHIAUr+A4seUe3FqTrKlVIAPwSTINCis3+JB0JFr+AJ dcvjb3ImpaOBpaT3F54iiqBJkD0kYu1gpePNAai85/8ujO+O8pDkoYXuysC/dMepA6vW S9NF+lbzi2a8gy4c/A2YhrRtnjuFopaAJO6EjzqeWhy9xUNIvaFPS8YEK/uzt5rLG3Qb jBtfn+dr+7/0CECvXdg8fDB1J9ulu7+G0ErBWufZ6g8krJxDbhpFLuwxm1H6GV86JE3U hjNc6D2Od3Ga38ehFKGVBQaYNH3dFfOe3rcNQ/S1A2DT6xRHwOTsPDKCEAaGQUKpXcCt fhOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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 :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=nNU1vQJQ1nd7n9OZY/hI9MY304UBenuWIonAHRIZpvs=; b=jSodOr3mbOsBxNmcTZ68/IBkrR+CHOP6iIoMeyMB/+kmday2M9t3cOxt/H8DIk7KR9 pvflaG/dphYOJCGRg0LF8YJW8yryZnXvBVhwipJuWGSsG09sV9YCE9DJA0LCfjnTcv5q GooJWQ/rwW8sIMezg1JMSZtReKCK5+fRltgHK3jwbzg9fGFqlKMxkZTNljIvcPlZYrPN qXZ1+Qnng6mEVuWpHw9c/MAkO8twj7aQwbkrbYgP+i/VzTtlqmLkvn3ok+u+zMXa8W82 NBdl7Kz9wceTwvt6Aj2OA8lfCBQriliWQkYwpiq45wO69jPU14oWb4/YM87jAOHzPD9g fkEQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AO0yUKXyFx2nJG2kl86VaZwahyqUxVIEJJOaipOz1O8RmsAQaQbYorM0 nlXvNHzg5250i6mkqxSJoBU= X-Google-Smtp-Source: AK7set9pNGwQTXpC18U1UD5nPDJLnltxN8w2bg9PREpC69XaanSzMaB9ClHfXnIvnEcrzOi8hERx1Q== X-Received: by 2002:a05:6512:74c:b0:4d8:58f0:b530 with SMTP id c12-20020a056512074c00b004d858f0b530mr529276lfs.2.1675266821662; Wed, 01 Feb 2023 07:53:41 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3116:b0:4c8:8384:83f3 with SMTP id n22-20020a056512311600b004c8838483f3ls1440538lfb.3.-pod-prod-gmail; Wed, 01 Feb 2023 07:53:40 -0800 (PST) X-Received: by 2002:a19:5e48:0:b0:4d5:8e78:2887 with SMTP id z8-20020a195e48000000b004d58e782887mr644015lfi.36.1675266820189; Wed, 01 Feb 2023 07:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675266820; cv=none; d=google.com; s=arc-20160816; b=tTRMe7PFeUvOLGIDKDZJLQQhfGf2zabbsbkUbb6xMUI23w2U94g3zEprv4wLcH+Dum qIFwFFRe7L76pv3VZKANa7o6nMOo5ADqIZtMUAShFfpMgy2ElWahi8dL++OkHTx2b/g6 zTxsi1i2b0MlZQWSVFXsZOgQ4hwXcxYsq42WnJ+y9P0Jj6OjM4HtLrUTsefQ3yXrzAt2 UByXSNFErkNd1KimE5zwjEY/ib58GCUKhrurzGbvrFQ1gYHDZjjV6cZcgcl96vayT9SV rQwU09Xk5cQsSSnkmdfC2Kdeo3Gpz9aqqEILwKxZGkI0D0y4hLOb2YKlOcCB5d3hgQER tyqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=GbXQe+NiK+LLQ7XRD//gNqFPRNauTPzdDKzJZLKU9Y0=; b=OsUMkJxvja2YX+MBNWuRAqSpnNcorVWML3hnNwJtTQHyn++HsGhU0+Htugwm1ncadv N7KEZjL3zAC0s2Zvy0/X1o0nE4wns8RT9xmrcUj6Z5nuvhC4W7I1TwEvaUP200MMrcbm 3YFm8QCsNBIGiXiTbWvJuwtLMM+kBaqRser0Td9iMvOg9g1riBlCQXB5cvZzOBWGorEo 8nOyeEveE9ISDUaYHEu1TPxUZs1GDu8UQUVBMS8gMIhhplc54FQEE2h8qkJvZzNXtv1a Pa567ShFVGdRe7TkMcX1dzWctAsW9hI3aSV/hBOQa0SIjwjvepsH5HEQiNj6WP2x/+cE 84iw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.167 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Received: from relay06.th.seeweb.it (relay06.th.seeweb.it. [5.144.164.167]) by gmr-mx.google.com with ESMTPS id h9-20020a0565123c8900b00492ce810d43si1061512lfv.10.2023.02.01.07.53.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 07:53:40 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.167 as permitted sender) client-ip=5.144.164.167; Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3187:7b80:cdd4:5b9b:cf61:6790]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 00BA03F787; Wed, 1 Feb 2023 16:53:38 +0100 (CET) From: roberto.foglietta@linuxteam.org To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com Subject: [PATCH] expand-on-first-boot: really only do that once - reverted back Date: Wed, 1 Feb 2023 16:53:35 +0100 Message-Id: <20230201155335.2975971-1-roberto.foglietta@linuxteam.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: roberto.foglietta@linuxteam.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.167 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org 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-Spam-Status: No, score=-0.9 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,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" The proper solution is to wait that udev settle ends and then try to access to the disk that in some architectures are down to a bus not initialised at boot time because the boot happens from a separate partition usually internal to the PCB/SoC. After all, this script is supposed to run just one single time at the first boot and thus the time spent on it has no impact on the every-day performances. Moreover, in case of failure - which is more probable in small embedded systems - the system goes in production without the full disk capacity for which has been designed for. Small embedded systems those usually unsupervised or remotely supervised, thus introducing a potential source of nasty failures which could hard to detect expecially if the disk becames overloaded or complete full. To avoid all these risks the only reasonable approach is to set these systems in such a way that they will reboot continously until they are not provided with the full disk capacity. In such a way they will fail at the day zero and this will be easily catch by the deployment tests. This patch affects also this setting and definetely should be reverted Signed-off-by: Roberto A. Foglietta --- .../expand-on-first-boot/files/expand-on-first-boot.service | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/recipes-support/expand-on-first-boot/files/expand-on-first-boot.service b/meta/recipes-support/expand-on-first-boot/files/expand-on-first-boot.service index 90c92a39..fda50016 100644 --- a/meta/recipes-support/expand-on-first-boot/files/expand-on-first-boot.service +++ b/meta/recipes-support/expand-on-first-boot/files/expand-on-first-boot.service @@ -15,7 +15,6 @@ ConditionPathIsReadWrite=/etc Type=oneshot ExecStart=/usr/share/expand-on-first-boot/expand-last-partition.sh ExecStartPost=-/bin/systemctl disable expand-on-first-boot.service -ExecStopPost=-/bin/systemctl disable expand-on-first-boot.service [Install] WantedBy=sysinit.target