From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6784461460125777920 X-Received: by 2002:a05:600c:214a:: with SMTP id v10mr5638603wml.182.1579630528372; Tue, 21 Jan 2020 10:15:28 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a7b:c4d0:: with SMTP id g16ls613090wmk.2.canary-gmail; Tue, 21 Jan 2020 10:15:27 -0800 (PST) X-Google-Smtp-Source: APXvYqx4waSLBfUMj0VnCfWdGQLrM2vTH89sOH4J1nJd1f08apTRbalwnKv3qZFlcFCmYXM0QYsg X-Received: by 2002:a1c:96c4:: with SMTP id y187mr5649350wmd.112.1579630527815; Tue, 21 Jan 2020 10:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579630527; cv=none; d=google.com; s=arc-20160816; b=RkB7epbIjbWnl243Jn7S4zXMWF9ZRmktrs2+vv2NE8OWATJfdB60b9PP9oXg4Rvaks 9nupYeB0VQFpw9XPLvKNbScbGoscRY3tcDrUNAxFp1sWqRSrIa0OpnAE/VRQJ5Angva3 vVoWUw4t3m+XJ39tqPUlJFvH+RQ/MWZYsoUuu2XHqfXc+Th2i0x6r41juROxzMO7Jp6i FLhqqtjgVq8NcWG+aI66pdvsLHhP+5Ck7woWmMpToN7JQe4b4r3zOzTkoOJSzBMDdOC7 VYYoa+NpxYbTsmAlqiZlwD3BOt8TByfNAUgKcOeI7TdqZuH3a0/hWfWZjcPC8x4aGAJc W09g== 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=nzebmilsgrHmcwrhlJoR83DNqNhsmKZ3WEjzaWy+pGA=; b=BGSzeKkYdcJQ+AohNol1pxKQXKAVbuHTzt6nmiF3IWw+aHyI2m18JRasHAhMRw2Mzo PiE6KVEKVRcN1tQv3weXR4rM+ZC8TGtWlLBFAImpq6bHgScIaWpJcIMBQsLNnwH/49kO +s6wUDMUX3T5FUnuMeXZEu813T1uGE822BmFfb2z8rqISIOI5PWXIZ1GhMwAcQKvA6Wx Uic4dCBevAlLhg9DNBRt4OrJy3x08PcNGsDzr3Q19llCXwrqgTw5oDgv38IKarCbif26 g2oXNUBmq/rUqFsTKxATR6A1xzLseLN2aFR/B0R40YICcljr5W2zk1V+EM2S87hQSwwS ECzA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id m12si1820285wrq.1.2020.01.21.10.15.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jan 2020 10:15:27 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 00LIFREk016617 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 21 Jan 2020 19:15:27 +0100 Received: from localhost.localdomain ([139.22.113.97]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 00LIFRxr011956; Tue, 21 Jan 2020 19:15:27 +0100 From: Henning Schild To: isar-users@googlegroups.com Cc: Christian Storm , Henning Schild Subject: [PATCH] expand-on-first-boot: run systemd service before local-fs-pre.target Date: Tue, 21 Jan 2020 19:15:22 +0100 Message-Id: <20200121181522.18134-1-henning.schild@siemens.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: 0B8mnjEjIUXl From: Henning Schild In case that last partition is one of the local filesystems and not the rootfs we have to be done with the expansion before systemd tries to mount that filesystem. Depending on the execution order and speed it was likely to get dropped into a rescue shell when the resize and the mount happened at the same time. That problem should be gone with this patch. Signed-off-by: Henning Schild --- .../{expand-on-first-boot.bb => expand-on-first-boot_1.1.bb} | 0 .../expand-on-first-boot/files/expand-on-first-boot.service | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-support/expand-on-first-boot/{expand-on-first-boot.bb => expand-on-first-boot_1.1.bb} (100%) diff --git a/meta/recipes-support/expand-on-first-boot/expand-on-first-boot.bb b/meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.1.bb similarity index 100% rename from meta/recipes-support/expand-on-first-boot/expand-on-first-boot.bb rename to meta/recipes-support/expand-on-first-boot/expand-on-first-boot_1.1.bb 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 cbe3857a..404b9c93 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 @@ -8,7 +8,7 @@ Description=Expand last partition DefaultDependencies=no Conflicts=shutdown.target After=systemd-remount-fs.service -Before=sysinit.target shutdown.target +Before=local-fs-pre.target shutdown.target ConditionPathIsReadWrite=/etc [Service] -- 2.24.1