From e0fca2165375e7876d8b3dfe1f0fd081ebe99c43 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 8 Mar 2018 18:51:13 +0100 Subject: umount: Don't bother remounting api and ro filesystems read-only (cherry picked from commit e783b4902f387640bba12496936d01e967545c3c) --- src/core/umount.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.2