From 756b7c3fb63d7a05dfe61df740f4d7639b2b7136 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 13 Sep 2023 13:03:20 +0200 Subject: [PATCH] Document advanced hooks/plugins to trigger rescue.conf Signed-off-by: Joachim Wiberg --- src/conf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/conf.c b/src/conf.c index 6c0fcfb4..8e58ff38 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1085,6 +1085,14 @@ int conf_reload(void) */ 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) { int rc; char line[80] = "tty [12345789] rescue";