public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/1] expand-on-first-boot: Switched exit behavior
@ 2022-07-25 14:01 Tobias Schmidl
  2022-07-25 14:01 ` [PATCH v2 1/1] " Tobias Schmidl
  2022-08-01  6:20 ` [PATCH v2 0/1] " Anton Mikanovich
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias Schmidl @ 2022-07-25 14:01 UTC (permalink / raw)
  To: isar-users; +Cc: Tobias Schmidl

Diff to v1:
- rebased onto current "next" branch

Tobias Schmidl (1):
  expand-on-first-boot: Switched exit behavior

 .../expand-on-first-boot/files/expand-on-first-boot.service     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.36.1


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

* [PATCH v2 1/1] expand-on-first-boot: Switched exit behavior
  2022-07-25 14:01 [PATCH v2 0/1] expand-on-first-boot: Switched exit behavior Tobias Schmidl
@ 2022-07-25 14:01 ` Tobias Schmidl
  2022-08-01  6:20 ` [PATCH v2 0/1] " Anton Mikanovich
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Schmidl @ 2022-07-25 14:01 UTC (permalink / raw)
  To: isar-users; +Cc: Tobias Schmidl

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 6e9a18f..8961e6f 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
@@ -13,7 +13,7 @@ ConditionPathIsReadWrite=/etc
 
 [Service]
 Type=oneshot
-RemainAfterExit=yes
+ExitType=cgroup
 ExecStart=/usr/share/expand-on-first-boot/expand-last-partition.sh
 ExecStartPost=-/bin/systemctl disable expand-on-first-boot.service
 
-- 
2.36.1


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

* Re: [PATCH v2 0/1] expand-on-first-boot: Switched exit behavior
  2022-07-25 14:01 [PATCH v2 0/1] expand-on-first-boot: Switched exit behavior Tobias Schmidl
  2022-07-25 14:01 ` [PATCH v2 1/1] " Tobias Schmidl
@ 2022-08-01  6:20 ` Anton Mikanovich
  1 sibling, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2022-08-01  6:20 UTC (permalink / raw)
  To: Tobias Schmidl, isar-users

25.07.2022 17:01, Tobias Schmidl wrote:
> Diff to v1:
> - rebased onto current "next" branch
>
> Tobias Schmidl (1):
>    expand-on-first-boot: Switched exit behavior
>
>   .../expand-on-first-boot/files/expand-on-first-boot.service     | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied to next, thanks.


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

end of thread, other threads:[~2022-08-01  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25 14:01 [PATCH v2 0/1] expand-on-first-boot: Switched exit behavior Tobias Schmidl
2022-07-25 14:01 ` [PATCH v2 1/1] " Tobias Schmidl
2022-08-01  6:20 ` [PATCH v2 0/1] " Anton Mikanovich

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