aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-08 21:12:51 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-11-08 21:12:51 +0100
commit7a71621b7c43d7d2f264cc495fb7ceb66455fd3c (patch)
tree5781dae8522739f74671f15a6a6a43a964bde4f4 /src/libstore/local-store.cc
parent6c2af1f201a925c2aa632737765685c72b642847 (diff)
parentfcb8af550f5fca37458da0d9042a2b59523eb304 (diff)
Merge branch 'fix-writable-shell' of https://github.com/yorickvP/nix
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 225a19e1e..1cef50a40 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -504,6 +504,7 @@ void LocalStore::makeStoreWritable()
throw SysError("getting info about the Nix store mount point");
if (stat.f_flag & ST_RDONLY) {
+ saveMountNamespace();
if (unshare(CLONE_NEWNS) == -1)
throw SysError("setting up a private mount namespace");