Skip to content

Commit

Permalink
Fix #385: internal conditions are type oneshot, always active
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Nov 12, 2023
1 parent 180faf8 commit 6443995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/finit.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ int main(int argc, char *argv[])

/* Some bootstrap tasks may need to know if we're in a container. */
if (in_container())
cond_set("int/container");
cond_set_oneshot("int/container");

/*
* Initialize .conf system and load static /etc/finit.conf then
Expand Down
2 changes: 1 addition & 1 deletion src/sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void sm_step(sm_t *sm)
service_step_all(SVC_TYPE_ANY);

/* Allow runparts to start */
cond_set("int/bootstrap");
cond_set_oneshot("int/bootstrap");

if (sm->newlevel == -1)
break;
Expand Down

0 comments on commit 6443995

Please sign in to comment.