umount: Don't bother remounting api and ro filesystems read-only

This commit is contained in:
Jan Janssen
2018-03-12 18:32:26 +01:00
parent 8645ffd12b
commit e783b4902f
+2
View 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) {