mirror of
https://github.com/systemd/systemd.git
synced 2025-07-30 23:42:23 +03:00
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:
@ -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");
|
||||
|
Reference in New Issue
Block a user