From: Lennart Poettering Date: Thu, 16 Nov 2017 11:30:33 +0000 (+0100) Subject: install: when we encounter a transient/generated unit while presetting all, skip... X-Git-Tag: v236~190^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7360%2Fhead;p=thirdparty%2Fsystemd.git install: when we encounter a transient/generated unit while presetting all, skip over it silently Fixes: #7100 --- diff --git a/src/shared/install.c b/src/shared/install.c index 5516799e6ba..99761f99da7 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -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; }