util: simplify proc_cmdline() to reuse get_process_cmdline()

Also, make all parsing of the kernel cmdline non-fatal.
This commit is contained in:
Lennart Poettering
2014-11-07 01:19:56 +01:00
parent f2997962ff
commit b5884878a2
15 changed files with 54 additions and 62 deletions
+3 -2
View File
@@ -150,8 +150,9 @@ int main(int argc, char *argv[]) {
umask(0022);
if (parse_proc_cmdline(parse_proc_cmdline_item) < 0)
return EXIT_FAILURE;
r = parse_proc_cmdline(parse_proc_cmdline_item);
if (r < 0)
log_warning("Failed to parse kernel command line, ignoring: %s", strerror(-r));
if (arg_debug_shell) {
r = strv_extend(&arg_wants, "debug-shell.service");