summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-11-04 20:29:43 +0000
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-19 18:19:28 +0100
commit74af5a3696cd3747fa814a21eb1b3d7cae3dea56 (patch)
treef5861054c0717f579d1418e82b534c27017e546d
parentcdc1cd4eb3f86f3100d6d04b1b5d12a2d87b8704 (diff)
downloadsystemd-74af5a3696cd3747fa814a21eb1b3d7cae3dea56.tar.gz
basic/mountpoint-util: detect erofs as a read-only FS
(cherry picked from commit fac2c3e97d80fb356eb50abb429bdb5ed36afcf1)
-rw-r--r--src/basic/mountpoint-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c
index e7a5a99551..7e57d9a226 100644
--- a/src/basic/mountpoint-util.c
+++ b/src/basic/mountpoint-util.c
@@ -424,6 +424,7 @@ bool fstype_is_ro(const char *fstype) {
return STR_IN_SET(fstype,
"DM_verity_hash",
"iso9660",
+ "erofs",
"squashfs");
}