public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] expand-on-first-boot: run systemd service before local-fs-pre.target
@ 2020-01-21 18:15 Henning Schild
  2020-03-09 10:58 ` Baurzhan Ismagulov
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Schild @ 2020-01-21 18:15 UTC (permalink / raw)
  To: isar-users; +Cc: Christian Storm, Henning Schild

From: Henning Schild <henning.schild@siemens.com>

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 <henning.schild@siemens.com>
---
 .../{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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-09 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 18:15 [PATCH] expand-on-first-boot: run systemd service before local-fs-pre.target Henning Schild
2020-03-09 10:58 ` Baurzhan Ismagulov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox