projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
402696d
)
core: map the 'rescue' argument to rescue.target
author
Mantas Mikulėnas
<grawity@gmail.com>
Tue, 7 Oct 2014 11:55:21 +0000
(14:55 +0300)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 8 Oct 2014 19:35:38 +0000
(21:35 +0200)
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.
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index
1a62e04
..
44373cc
100644
(file)
--- 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,