]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mountpoint-util: add exempt for overlay in fstype_is_blockdev_backed()
authorPontus Lundkvist <p@article.se>
Fri, 27 Feb 2026 13:05:10 +0000 (14:05 +0100)
committerPontus Lundkvist <pontus.lundkvist@fossid.com>
Fri, 27 Feb 2026 13:06:09 +0000 (14:06 +0100)
This allows `systemd-mount` to be used with --type overlay

src/basic/mountpoint-util.c

index 624a3fcbed065314694524f24ebe0d427a88bfd9..8b293401bd9cb6c5aa50bf4492bbf9e07a01ec3f 100644 (file)
@@ -402,7 +402,7 @@ bool fstype_is_blockdev_backed(const char *fstype) {
         if (x)
                 fstype = x;
 
-        return !streq(fstype, "9p") && !fstype_is_network(fstype) && !fstype_is_api_vfs(fstype);
+        return !STR_IN_SET(fstype, "9p", "overlay") && !fstype_is_network(fstype) && !fstype_is_api_vfs(fstype);
 }
 
 bool fstype_is_ro(const char *fstype) {