From: Mantas Mikulėnas Date: Tue, 7 Oct 2014 11:55:21 +0000 (+0300) Subject: core: map the 'rescue' argument to rescue.target X-Git-Tag: v217~279 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5329ab10ffaf5b4a3fd6ebd9380b1ec09d05cfc8;p=elogind.git 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. --- diff --git a/src/core/main.c b/src/core/main.c index 1a62e04c8..44373cc7e 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,