mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
Document advanced hooks/plugins to trigger rescue.conf
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
263aec292a
commit
756b7c3fb6
1 file changed
+8
@@ -1085,6 +1085,14 @@ int conf_reload(void)
|
|||||||
*/
|
*/
|
||||||
memcpy(global_rlimit, initial_rlimit, sizeof(global_rlimit));
|
memcpy(global_rlimit, initial_rlimit, sizeof(global_rlimit));
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When built with --disable-rescue mode many other 'if (rescue)'
|
||||||
|
* code paths are #ifdeffed out. This one, and the ones in the
|
||||||
|
* plugins, are not because a hook or plugin can still trigger
|
||||||
|
* the alternative rescue.conf instead of finit.conf. This for
|
||||||
|
* very advanced use-cases where files on /etc are generated at
|
||||||
|
* bootstrap, including users and passwords, from other sources.
|
||||||
|
*/
|
||||||
if (rescue) {
|
if (rescue) {
|
||||||
int rc;
|
int rc;
|
||||||
char line[80] = "tty [12345789] rescue";
|
char line[80] = "tty [12345789] rescue";
|
||||||
|
|||||||
Reference in new issue
Block a user