mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 06:52:43 +01:00
Merge branch 'fix-writable-shell' of https://github.com/yorickvP/nix
This commit is contained in:
commit
7a71621b7c
4 changed files with 44 additions and 3 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue