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