main: when we encounter 'emergency' on the kernel cmdline start the emergency shell
This commit is contained in:
parent
d3f929f0fc
commit
ed370f5daa
4
fixme
4
fixme
|
@ -74,6 +74,10 @@
|
|||
|
||||
* kexec, suspend, resume
|
||||
|
||||
* passphrase agent https://bugs.freedesktop.org/show_bug.cgi?id=30038
|
||||
|
||||
* emergency.service should start default.target after C-d.
|
||||
|
||||
External:
|
||||
|
||||
* place /etc/inittab with explaining blurb.
|
||||
|
|
|
@ -234,6 +234,7 @@ static int set_default_unit(const char *u) {
|
|||
static int parse_proc_cmdline_word(const char *word) {
|
||||
|
||||
static const char * const rlmap[] = {
|
||||
"emergency", SPECIAL_EMERGENCY_TARGET,
|
||||
"single", SPECIAL_RESCUE_TARGET,
|
||||
"-s", SPECIAL_RESCUE_TARGET,
|
||||
"s", SPECIAL_RESCUE_TARGET,
|
||||
|
@ -242,7 +243,7 @@ static int parse_proc_cmdline_word(const char *word) {
|
|||
"2", SPECIAL_RUNLEVEL2_TARGET,
|
||||
"3", SPECIAL_RUNLEVEL3_TARGET,
|
||||
"4", SPECIAL_RUNLEVEL4_TARGET,
|
||||
"5", SPECIAL_RUNLEVEL5_TARGET
|
||||
"5", SPECIAL_RUNLEVEL5_TARGET,
|
||||
};
|
||||
|
||||
assert(word);
|
||||
|
|
Loading…
Reference in New Issue