]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
umount: Don't bother remounting api and ro filesystems read-only
authorJan Janssen <medhefgo@web.de>
Thu, 8 Mar 2018 17:51:13 +0000 (18:51 +0100)
committerJan Janssen <medhefgo@web.de>
Mon, 12 Mar 2018 17:32:26 +0000 (18:32 +0100)
src/core/umount.c

index 40153defe5d691dc3047dc239c8b3357dffe2b95..f9b4a21cfcbd69d402d449bd2d2619b0e631c85b 100644 (file)
@@ -147,6 +147,8 @@ static int mount_points_list_get(MountPoint **head) {
                  * hang because of the network being down. */
                 m->try_remount_ro = detect_container() <= 0 &&
                                     !fstype_is_network(type) &&
+                                    !fstype_is_api_vfs(type) &&
+                                    !fstype_is_ro(type) &&
                                     !fstab_test_yes_no_option(options, "ro\0rw\0");
 
                 if (m->try_remount_ro) {