]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mount: extend list of extrinsic mounts a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Nov 2019 13:00:12 +0000 (14:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 16 Nov 2019 12:53:48 +0000 (13:53 +0100)
src/core/mount.c

index 6e42176c09583c85efb3b217cbf2bb5ee0cfb2d9..1d1d2683da41820ef13eb41a52fd62419d212bfc 100644 (file)
@@ -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,