Skip to content

Commit

Permalink
Don't try to unmount /nix or /nix/store
Browse files Browse the repository at this point in the history
They'll still be remounted read-only.

NixOS/nixos#126
  • Loading branch information
edolstra authored and wkennington committed Nov 4, 2016
1 parent a1e2ef7 commit ea0c334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/umount.c
Expand Up @@ -409,6 +409,8 @@ static int mount_points_list_umount(MountPoint **head, bool *changed, bool log_e
* anyway, since we are running from it. They have
* already been remounted ro. */
if (path_equal(m->path, "/")
|| path_equal(m->path, "/nix")
|| path_equal(m->path, "/nix/store")
#ifndef HAVE_SPLIT_USR
|| path_equal(m->path, "/usr")
#endif
Expand Down

0 comments on commit ea0c334

Please sign in to comment.