chiark / gitweb /
fstab,mount: detect rbind as bind mount
[elogind.git] / src / fstab-generator / fstab-generator.c
index bfeddedf6228138ef99b98d964dfdecf210cc7ca..9db4123530096f5d3be656d7f4ba22a75026234f 100644 (file)
@@ -178,7 +178,9 @@ static bool mount_is_bind(struct mntent *me) {
 
         return
                 hasmntopt(me, "bind") ||
-                streq(me->mnt_type, "bind");
+                streq(me->mnt_type, "bind") ||
+                hasmntopt(me, "rbind") ||
+                streq(me->mnt_type, "rbind");
 }
 
 static bool mount_is_network(struct mntent *me) {