mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
install: when we encounter a transient/generated unit while presetting all, skip over it silently
Fixes: #7100
This commit is contained in:
parent
a68aef7a95
commit
2642122898
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue