mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
Fix 'Read-only file system' when building a derivation
This commit is contained in:
parent
32a0a223d5
commit
a32ff2573b
3 changed files with 5 additions and 1 deletions
|
@ -2193,6 +2193,7 @@ void DerivationGoal::startBuilder()
|
|||
userNamespaceSync.create();
|
||||
|
||||
options.allowVfork = false;
|
||||
options.restoreMountNamespace = false;
|
||||
|
||||
Pid helper = startProcess([&]() {
|
||||
|
||||
|
@ -2259,6 +2260,7 @@ void DerivationGoal::startBuilder()
|
|||
#endif
|
||||
{
|
||||
options.allowVfork = !buildUser && !drv->isBuiltin();
|
||||
options.restoreMountNamespace = false;
|
||||
pid = startProcess([&]() {
|
||||
runChild();
|
||||
}, options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue