chiark / gitweb /
remount-fs: also remount /usr according to fstab
[elogind.git] / src / remount-fs / remount-fs.c
index ef68e506e5097da4628acad62cb5af547a800042..8b3aaeb32cfd1d4d524d4a0eb4d8b144eb8a9ecd 100644 (file)
@@ -79,9 +79,10 @@ int main(int argc, char *argv[]) {
                 int k;
                 char *s;
 
-                /* Remount the root fs and all API VFS */
+                /* Remount the root fs, /usr and all API VFS */
                 if (!mount_point_is_api(me->mnt_dir) &&
-                    !path_equal(me->mnt_dir, "/"))
+                    !path_equal(me->mnt_dir, "/") &&
+                    !path_equal(me->mnt_dir, "/usr"))
                         continue;
 
                 log_debug("Remounting %s", me->mnt_dir);