From d4acc09d9d51be1417ce7ca33730cc8fb8c2bc4c Mon Sep 17 00:00:00 2001 From: Pontus Lundkvist
Date: Fri, 27 Feb 2026 14:05:10 +0100 Subject: [PATCH 1/2] mountpoint-util: add exempt for overlay in fstype_is_blockdev_backed() This allows `systemd-mount` to be used with --type overlay --- src/basic/mountpoint-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index 624a3fcbed0..8b293401bd9 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -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) { From 352bb934fe6d064c74114a142f645fe2f6f8729b Mon Sep 17 00:00:00 2001 From: Pontus Lundkvist
Date: Fri, 27 Feb 2026 14:09:59 +0100 Subject: [PATCH 2/2] mountpoint-util: remove duplicate check in fstype_is_api_vfs() devtmpfs is part of the @basic-api filesystem-set --- src/basic/mountpoint-util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index 8b293401bd9..06d4d4450a2 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -391,8 +391,7 @@ bool fstype_is_api_vfs(const char *fstype) { /* Filesystems not present in the internal database */ return STR_IN_SET(fstype, "autofs", - "cpuset", - "devtmpfs"); + "cpuset"); } bool fstype_is_blockdev_backed(const char *fstype) {