summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2018-03-08 18:51:13 +0100
committerLuke Shumaker <lukeshu@lukeshu.com>2018-07-19 12:27:34 -0400
commite0fca2165375e7876d8b3dfe1f0fd081ebe99c43 (patch)
tree77edbb4075bbc20548f4d6d3b1f2645802c2486f
parent29abfd9f86983e71737d111d5131dfa0ad49a0a7 (diff)
umount: Don't bother remounting api and ro filesystems read-only
(cherry picked from commit e783b4902f387640bba12496936d01e967545c3c)
-rw-r--r--src/core/umount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/umount.c b/src/core/umount.c
index f4a977f5bb..726c4dc170 100644
--- a/src/core/umount.c
+++ b/src/core/umount.c
@@ -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) {