]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/system-update-generator/system-update-generator.c
system-update-generator: do not emit bogus warning if no /system-update symlink
[thirdparty/systemd.git] / src / system-update-generator / system-update-generator.c
index 77e265d71076ca7328e7c5c6e2a9f37e5c5af387..6ec4986c10ce70b21345f4afb5b325fdecaebfdc 100644 (file)
@@ -57,9 +57,10 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
         assert_se(arg_dest = dest_early);
 
         r = generate_symlink();
-        if (r < 0)
+        if (r <= 0)
                 return r;
 
+        /* We parse the command line only to emit warnings. */
         r = proc_cmdline_parse(parse_proc_cmdline_item, NULL, 0);
         if (r < 0)
                 log_warning_errno(r, "Failed to parse kernel command line, ignoring: %m");