1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 16:21:26 +03:00

install: when we encounter a transient/generated unit while presetting all, skip over it silently

Fixes: #7100
This commit is contained in:
Lennart Poettering 2017-11-16 12:30:33 +01:00
parent a68aef7a95
commit 2642122898

View File

@ -3121,6 +3121,8 @@ int unit_file_preset_all(
else if (r == -ENOLINK)
r = unit_file_changes_add(changes, n_changes,
UNIT_FILE_IS_DANGLING, de->d_name, NULL);
else if (r == -EADDRNOTAVAIL) /* Ignore generated/transient units when applying preset */
continue;
if (r < 0)
return r;
}