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:
parent
58cf79c224
commit
38928e3072
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue