summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2014-10-07 14:55:21 +0300
committerLennart Poettering <lennart@poettering.net>2014-10-08 21:35:38 +0200
commit5329ab10ffaf5b4a3fd6ebd9380b1ec09d05cfc8 (patch)
treeb345f6c4adf9b8604d137fedad328c4e40c21cfe /src/core/main.c
parent402696d787d252d6317e36c5be340d47578bb27b (diff)
core: map the 'rescue' argument to rescue.target
Even though the 'emergency' and 'single' aliases come from sysvinit, the lack of 'rescue' is still quite confusing (caught me by surprise for the 9th time yet) and inconsistent with `systemctl rescue` as well.
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 1a62e04c80..44373cc7ef 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -272,6 +272,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
static const char * const rlmap[] = {
"emergency", SPECIAL_EMERGENCY_TARGET,
"-b", SPECIAL_EMERGENCY_TARGET,
+ "rescue", SPECIAL_RESCUE_TARGET,
"single", SPECIAL_RESCUE_TARGET,
"-s", SPECIAL_RESCUE_TARGET,
"s", SPECIAL_RESCUE_TARGET,