public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Tobias Schmidl <tobiasschmidl@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Tobias Schmidl <tobiasschmidl@siemens.com>
Subject: [PATCH] expand-on-first-boot: Switched exit behavior
Date: Mon, 25 Jul 2022 10:09:42 +0200	[thread overview]
Message-ID: <20220725080942.134743-1-tobiasschmidl@siemens.com> (raw)

RemainAfterExit=yes lets systemd to assume that we are still active
after exiting the main process. This is definitively not the case for
expand-on-first-boot. Instead, we'll use the cgroup to determine if
every spwaned process has finished or not.

Signed-off-by: Tobias Schmidl <tobiasschmidl@siemens.com>
---
 .../expand-on-first-boot/files/expand-on-first-boot.service     | 2 +-
 1 file changed, 1 insertion(+), 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 cd063f3..7d4a2c7 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
@@ -14,7 +14,7 @@ ConditionFirstBoot=true
 
 [Service]
 Type=oneshot
-RemainAfterExit=yes
+ExitType=cgroup
 ExecStart=/usr/share/expand-on-first-boot/expand-last-partition.sh
 
 [Install]
-- 
2.36.1


             reply	other threads:[~2022-07-25  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25  8:09 Tobias Schmidl [this message]
2022-07-25 12:43 ` Anton Mikanovich
2022-07-25 13:40   ` Schmidl, Tobias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220725080942.134743-1-tobiasschmidl@siemens.com \
    --to=tobiasschmidl@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox