summaryrefslogtreecommitdiff
path: root/src/initctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/initctl.c')
-rw-r--r--src/initctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/initctl.c b/src/initctl.c
index f36f1cc704..eaa717ad91 100644
--- a/src/initctl.c
+++ b/src/initctl.c
@@ -93,6 +93,8 @@ static const char *translate_runlevel(int runlevel, bool *isolate) {
for (i = 0; i < ELEMENTSOF(table); i++)
if (table[i].runlevel == runlevel) {
*isolate = table[i].isolate;
+ if (runlevel == '6' && kexec_loaded())
+ return SPECIAL_KEXEC_TARGET;
return table[i].special;
}