From: Jan Janssen Date: Thu, 8 Mar 2018 17:51:13 +0000 (+0100) Subject: umount: Don't bother remounting api and ro filesystems read-only X-Git-Tag: v239~550^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e783b4902f387640bba12496936d01e967545c3c;p=thirdparty%2Fsystemd.git umount: Don't bother remounting api and ro filesystems read-only --- diff --git a/src/core/umount.c b/src/core/umount.c index 40153defe5d..f9b4a21cfcb 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) {