plugins: skip plugin in rescue mode

These plugins should not run in rescue mode, because the system may be
in a very bad state and we do not want to make the situation any worse
than it already is.

Essentially, only services in rescue.conf should run in rescue mode.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-04-24 19:46:43 +02:00
parent 799e992542
commit 26128dd788
7 changed files with 53 additions and 0 deletions
+5
View File
@@ -34,6 +34,11 @@ static void setup(void *arg)
char cmd[256];
char *path;
if (rescue) {
_d("Skipping %s plugin in rescue mode.", __FILE__);
return;
}
/*
* Populate /dev and prepare for runtime events from kernel.
* Prefer udev if mdev is also available on the system.