From patchwork Thu Dec 15 22:16:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henning Schild X-Patchwork-Id: 2328 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 15 Dec 2022 23:16:20 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f59.google.com (mail-wm1-f59.google.com [209.85.128.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 2BFMGKef013481 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Dec 2022 23:16:20 +0100 Received: by mail-wm1-f59.google.com with SMTP id x10-20020a05600c420a00b003cfa33f2e7csf315069wmh.2; Thu, 15 Dec 2022 14:16:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671142575; cv=pass; d=google.com; s=arc-20160816; b=XNGL0nKzxfjQ7lXOvcbSpBO5sRSdf+hEigRtp3hu+zO0mW449rloTjHEzLzxxz+b20 xHi22ARcMc12ktfr7vXBAUPjTf09+LR1BJFHD4ATDE+a7X50/GkIaAEkGrH8MYtccP9h wBfClTzd+2GaUuSwpFUvnoo1UzSYIuVR0nB2OcA6U0vBismWacOP22MUPL6hFYnfjsnE VThWmyR5sjkPlxuHOJxN/4lUJMRbCA6eAtiUrdXqVT3b2R7IBUBWQ6XeGuly1wbkeyUe Utapf2oEw25oRuEyG6KWhvnyTUo7dvTT2YQ2qjr31hAy2r9DhxiNBF6MpcyLQlfjOQ1g tmOw== 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:feedback-id:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=vEF54+7uTmiKSlxkrLDR933vqtAmOSN7RquISHf2Hwc=; b=Pog71iGsmW7vzZc+G9vctsfRw8baDA51JA0HYfwu08a5MyDnYwjcFIhrCrpw3TcOY8 1wy/gw9SozfSkgHSqfBLkS5UGQfOgH0xV0MzrS6GZdGDjoeJyMXDa67xJNEZgeQbJi84 BmtU9EDxeaLoQT5RNrz7ZHedphkJHzFRNzc79vjmc184Ba1j+QlhchyqDsur6TTkPzP1 P8tscI6cG8hDRNiW01goUTi6RV1ppWbwZg26ox+DIGVxx3hFhy4Qe8RV/caD8xORHcQt jSBPJwtziob3vxWmQC7Az9NbbU6DqKPQ4YzAnJLtvXDkOzhpa68JdX4niPZ70LRRdG96 iKPQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=FaQlzKsy; spf=pass (google.com: domain of fm-52304-20221215221613dc679666c774386e86-47cto1@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-52304-20221215221613dc679666c774386e86-47Cto1@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com 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:feedback-id:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=vEF54+7uTmiKSlxkrLDR933vqtAmOSN7RquISHf2Hwc=; b=eiLEuprasCWGcxP0D27kWStAyGgA5Rkrr+ovMIYgSjiU8Id76cmCO52WSRBlQxPjSy hKQu6iB1WEs51lbGRhT3mDfpqbU8Ntct2prLoO3uUAlGD7skfGVm6jnt9LJbDtMQ5AkH Q9XsyEbWdov+yMRb7UTc0Ep5Jm3cYqnMRfSljIWcanNp+voQKRTPKrNqeg9D88HhEDbk 4bA1okV6mP7RXmf7Q4GEUv6KHTSOaOq/EhqtBjOq2a6KaTgAjPVJWh8mKoiEGJoX/7hk vIPT70AMIPz9zOLbpglrdtH/zfeWxlRP2q5JR1BPAVvubi9dLX4UBbm/F7BRfMIC95fh SJ6Q== 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:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=vEF54+7uTmiKSlxkrLDR933vqtAmOSN7RquISHf2Hwc=; b=o1Fx28NE4iGQVzN9qsWdTkynsl+DV4n2I9CP1flaLMQRNhtJMeg3rb0adoyxE8wLpn vUC54egDjgX3sN8lNuOnMLuYptgYrJBVe7oVe91qCI0+e4Qt1jB3TF+T//oMdEVr8WmO YW/uzO2JjlFAZWGorE8jhv1K2jwnQ1ayLkrT6YyphepJhcdev8buoMW4Qs36ghk649JG vsa0mufA5Dfx4348lTHUEucqw8D/IL6bl69oHeCt4RiSFcff61LtbrERUNGdHopGYIgN EBj3zJ3f3R0IzFUyXOX/fk7MC3HpCUUXTTrUuzQmoPnceri5w7Ls9Mbume6c56YnMw9J 6mMg== Sender: isar-users@googlegroups.com X-Gm-Message-State: ANoB5pmZ71tQyucmnYFnMWjkxKMvW4GcO71NvklI+PtcILLOtF7rKYva iFfAAILv+hGI85HYooRWHfc= X-Google-Smtp-Source: AA0mqf4txROeUQ26I42IULZTzfsMWwwrvGD6ZadTko9j0/C/JiWBSDyj5tdUzbleRIeHFsr48Rr36g== X-Received: by 2002:adf:fcc8:0:b0:242:453f:fd14 with SMTP id f8-20020adffcc8000000b00242453ffd14mr16630279wrs.468.1671142574834; Thu, 15 Dec 2022 14:16:14 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6000:230:b0:242:2700:8318 with SMTP id l16-20020a056000023000b0024227008318ls763018wrz.0.-pod-prod-gmail; Thu, 15 Dec 2022 14:16:13 -0800 (PST) X-Received: by 2002:a5d:60c5:0:b0:24f:5890:6168 with SMTP id x5-20020a5d60c5000000b0024f58906168mr12991930wrt.10.1671142573830; Thu, 15 Dec 2022 14:16:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671142573; cv=none; d=google.com; s=arc-20160816; b=t0nR3KOh/3izw6xP3Xqgpn3CBkLPERyFbR6vV415gnwN5tZhmpzSUJLuwZ4Ioe0w0M zc+sgjGHq18Lsr3U89N9hRm2JwYka/m9ydNHNDmHxpVJiWmVQX8AECzj7gdYy7Hyxryp 5o9OeEF90ZncTyA8lPZDCXGVNoSslUEYBw3kc9XnXHDr1hTh4VBRP/aw2IimYxBEwUVN P+P4oprq5qHQXybc6ZgguGmbXfWiAm1GiMNZjpccyLVqcS76+xyMAOMOfC+Moj87UkXQ gGZDx1B24R2ZKQnCXWPjW1mJ9xb6C79b0JyYnzKAyfuHAV2TOU7FFdep2dUGdihdJR3D iYzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=m5XMbJBaQ4aJozklzfEWtIu/E0TLDRr8GNzK41e0PFI=; b=Hhjn5dAhtKP8VVPB/zkTf5zxsrwOhCrxhv5yXH0G4Rtf7Z+fEA91MatjToTT4e3iR4 Y5RJQvpBiDggoGAh9H960uOI3co52zZHPxJwnKK8EMxW83iGv3Wt84WTusesFDiXJR6/ znAwQsDT8Z7yKUdV10erTEn9wlIcRMoU3jnaLhYmKXm3a6SpKijP8GxcpHWSmKFvjFMY zkhSg3gQRST300+jlkpELXz3dYvlf+CZxzZyQquDSO8xiRjWd4s7i6NPj7I+NuRJOn8A j1JXfQ0EhLoowTopjMjSWyczq3slLSEFDOHrs2GHVnA73pJXXhNeC9uvJmVH0IaYi24f ivzQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=FaQlzKsy; spf=pass (google.com: domain of fm-52304-20221215221613dc679666c774386e86-47cto1@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-52304-20221215221613dc679666c774386e86-47Cto1@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net. [185.136.64.228]) by gmr-mx.google.com with ESMTPS id cy4-20020a056000400400b0025664a2d85bsi27933wrb.1.2022.12.15.14.16.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2022 14:16:13 -0800 (PST) Received-SPF: pass (google.com: domain of fm-52304-20221215221613dc679666c774386e86-47cto1@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) client-ip=185.136.64.228; Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20221215221613dc679666c774386e86 for ; Thu, 15 Dec 2022 23:16:13 +0100 From: henning.schild@siemens.com To: isar-users@googlegroups.com Cc: Henning Schild Subject: [PATCH v6 1/6] expand-on-first-boot: really only do that once, especially on failure Date: Thu, 15 Dec 2022 23:16:01 +0100 Message-Id: <20221215221606.5623-2-henning.schild@siemens.com> In-Reply-To: <20221215221606.5623-1-henning.schild@siemens.com> References: <20221215221606.5623-1-henning.schild@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-52304:519-21489:flowmailer X-Original-Sender: henning.schild@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=FaQlzKsy; spf=pass (google.com: domain of fm-52304-20221215221613dc679666c774386e86-47cto1@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-52304-20221215221613dc679666c774386e86-47Cto1@rts-flowmailer.siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.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: , 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: Henning Schild We do hope the expand will work but we also know very well that it can fail. The script is written in a way that currently only supports one try. And not a retry if it failed in an earlier boot. So make sure to disable the service also on failure. Signed-off-by: Henning Schild --- .../expand-on-first-boot/files/expand-on-first-boot.service | 1 + 1 file changed, 1 insertion(+) 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 fda50016e9fe..90c92a396b27 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,6 +15,7 @@ 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