diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-07 11:49:03 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-12 17:27:17 +0200 |
commit | 38928e3072b29ec002625e7359301a8c17b4d8a7 (patch) | |
tree | ae65171c75eaf8958ef960aaba414dda87cb47f6 /src | |
parent | 58cf79c2244d41f32faaeaf5c5da7a8e13e3303f (diff) | |
download | systemd-38928e3072b29ec002625e7359301a8c17b4d8a7.tar.gz systemd-38928e3072b29ec002625e7359301a8c17b4d8a7.tar.bz2 systemd-38928e3072b29ec002625e7359301a8c17b4d8a7.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/system-update-generator/system-update-generator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c index 77e265d710..6ec4986c10 100644 --- a/src/system-update-generator/system-update-generator.c +++ b/src/system-update-generator/system-update-generator.c @@ -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"); |