From: Lennart Poettering Date: Fri, 15 Nov 2019 13:00:12 +0000 (+0100) Subject: mount: extend list of extrinsic mounts a bit X-Git-Tag: v244-rc1~32^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e5776d38728d6f81bc250eca2c573f0b618772;p=thirdparty%2Fsystemd.git mount: extend list of extrinsic mounts a bit --- diff --git a/src/core/mount.c b/src/core/mount.c index 6e42176c095..1d1d2683da4 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -409,9 +409,13 @@ static bool mount_is_extrinsic(Mount *m) { if (!MANAGER_IS_SYSTEM(UNIT(m)->manager)) /* We only automatically manage mounts if we are in system mode */ return true; + if (UNIT(m)->perpetual) /* All perpetual units never change state */ + return true; + if (PATH_IN_SET(m->where, /* Don't bother with the OS data itself */ - "/", - "/usr")) + "/", /* (strictly speaking redundant: should already be covered by the perpetual flag check above) */ + "/usr", + "/etc")) return true; if (PATH_STARTSWITH_SET(m->where,