chiark / gitweb /
remount: consolidate remount-api-vfs and remount-rootfs into one
[elogind.git] / src / remount-fs / remount-fs.c
similarity index 96%
rename from src/remount-api-vfs/remount-api-vfs.c
rename to src/remount-fs/remount-fs.c
index 373ae2552047287decc6251de9ca5aebc2b6726b..35b71548a30d88a046424c779e495b58f504920f 100644 (file)
@@ -78,7 +78,9 @@ int main(int argc, char *argv[]) {
                 int k;
                 char *s;
 
-                if (!mount_point_is_api(me->mnt_dir))
+                /* Remount the root fs and all API VFS */
+                if (!mount_point_is_api(me->mnt_dir) &&
+                    !path_equal(me->mnt_dir, "/"))
                         continue;
 
                 log_debug("Remounting %s", me->mnt_dir);