mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Adjust boundaries for when conditions are allowed
Not until fs_mount_all() has completed do we have /run, or /var/run, and never after shutdown has been initiated. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+5
-3
@@ -258,10 +258,12 @@ void plugin_run_hook(hook_point_t no, void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Conditions are stored in /run, so don't try to signal
|
/*
|
||||||
|
* Conditions are stored in /run, so don't try to signal
|
||||||
* conditions for any hooks before filesystems have been
|
* conditions for any hooks before filesystems have been
|
||||||
* mounted. */
|
* mounted.
|
||||||
if (cond_is_available() && no >= HOOK_MOUNT_ERROR && no <= HOOK_SHUTDOWN)
|
*/
|
||||||
|
if (cond_is_available() && no >= HOOK_MOUNT_BASEFS_UP && no <= HOOK_SHUTDOWN)
|
||||||
cond_set_oneshot(hook_cond[no]);
|
cond_set_oneshot(hook_cond[no]);
|
||||||
|
|
||||||
service_step_all(SVC_TYPE_RUNTASK);
|
service_step_all(SVC_TYPE_RUNTASK);
|
||||||
|
|||||||
Reference in New Issue
Block a user