mirror of
https://github.com/systemd/systemd.git
synced 2025-03-24 14:50:17 +03:00
core: don't complain about systemd.journald.xxx kernel command line arguments in PID 1
https://bugzilla.redhat.com/show_bug.cgi?id=880025
This commit is contained in:
parent
614e5fbb8b
commit
dd7c30c36a
@ -375,26 +375,37 @@ static int parse_proc_cmdline_word(const char *word) {
|
||||
} else if (startswith(word, "systemd.") ||
|
||||
(in_initrd() && startswith(word, "rd.systemd."))) {
|
||||
|
||||
log_warning("Unknown kernel switch %s. Ignoring.", word);
|
||||
const char *c;
|
||||
|
||||
log_info("Supported kernel switches:\n"
|
||||
"systemd.unit=UNIT Default unit to start\n"
|
||||
"rd.systemd.unit=UNIT Default unit to start when run in initrd\n"
|
||||
"systemd.dump_core=0|1 Dump core on crash\n"
|
||||
"systemd.crash_shell=0|1 Run shell on crash\n"
|
||||
"systemd.crash_chvt=N Change to VT #N on crash\n"
|
||||
"systemd.confirm_spawn=0|1 Confirm every process spawn\n"
|
||||
"systemd.show_status=0|1 Show status updates on the console during bootup\n"
|
||||
"systemd.log_target=console|kmsg|journal|journal-or-kmsg|syslog|syslog-or-kmsg|null\n"
|
||||
" Log target\n"
|
||||
"systemd.log_level=LEVEL Log level\n"
|
||||
"systemd.log_color=0|1 Highlight important log messages\n"
|
||||
"systemd.log_location=0|1 Include code location in log messages\n"
|
||||
"systemd.default_standard_output=null|tty|syslog|syslog+console|kmsg|kmsg+console|journal|journal+console\n"
|
||||
" Set default log output for services\n"
|
||||
"systemd.default_standard_error=null|tty|syslog|syslog+console|kmsg|kmsg+console|journal|journal+console\n"
|
||||
" Set default log error output for services\n"
|
||||
"systemd.setenv=ASSIGNMENT Set an environment variable for all spawned processes\n");
|
||||
/* Ignore systemd.journald.xyz and friends */
|
||||
c = word;
|
||||
if (startswith(c, "rd."))
|
||||
c += 3;
|
||||
if (startswith(c, "systemd."))
|
||||
c += 8;
|
||||
if (c[strcspn(c, ".=")] != '.') {
|
||||
|
||||
log_warning("Unknown kernel switch %s. Ignoring.", word);
|
||||
|
||||
log_info("Supported kernel switches:\n"
|
||||
"systemd.unit=UNIT Default unit to start\n"
|
||||
"rd.systemd.unit=UNIT Default unit to start when run in initrd\n"
|
||||
"systemd.dump_core=0|1 Dump core on crash\n"
|
||||
"systemd.crash_shell=0|1 Run shell on crash\n"
|
||||
"systemd.crash_chvt=N Change to VT #N on crash\n"
|
||||
"systemd.confirm_spawn=0|1 Confirm every process spawn\n"
|
||||
"systemd.show_status=0|1 Show status updates on the console during bootup\n"
|
||||
"systemd.log_target=console|kmsg|journal|journal-or-kmsg|syslog|syslog-or-kmsg|null\n"
|
||||
" Log target\n"
|
||||
"systemd.log_level=LEVEL Log level\n"
|
||||
"systemd.log_color=0|1 Highlight important log messages\n"
|
||||
"systemd.log_location=0|1 Include code location in log messages\n"
|
||||
"systemd.default_standard_output=null|tty|syslog|syslog+console|kmsg|kmsg+console|journal|journal+console\n"
|
||||
" Set default log output for services\n"
|
||||
"systemd.default_standard_error=null|tty|syslog|syslog+console|kmsg|kmsg+console|journal|journal+console\n"
|
||||
" Set default log error output for services\n"
|
||||
"systemd.setenv=ASSIGNMENT Set an environment variable for all spawned processes\n");
|
||||
}
|
||||
|
||||
} else if (streq(word, "quiet"))
|
||||
arg_show_status = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user