From 620047803b70b941606398e77f253645058007dd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Apr 2013 13:16:57 +0200 Subject: [PATCH 03/27] Don't try to unmount /nix or /nix/store They'll still be remounted read-only. https://github.com/NixOS/nixos/issues/126 --- src/shutdown/umount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index 00e268855d..08f3590f2a 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -373,6 +373,8 @@ static int delete_dm(dev_t devnum) { static bool nonunmountable_path(const char *path) { return path_equal(path, "/") + || path_equal(path, "/nix") + || path_equal(path, "/nix/store") #if ! HAVE_SPLIT_USR || path_equal(path, "/usr") #endif -- 2.24.1