system-update-generator: do not emit bogus warning if no /system-update symlink

We only need to check for the kernel cmdline override our symlink is there.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-06-07 11:49:03 +02:00
parent 58cf79c224
commit 38928e3072
1 changed files with 2 additions and 1 deletions

View 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");