mirror of
https://github.com/NixOS/nix
synced 2025-06-28 09:31:16 +02:00
parent
4546be1b3e
commit
818ab58cc6
2 changed files with 15 additions and 1 deletions
|
@ -2346,7 +2346,8 @@ void DerivationGoal::runChild()
|
|||
|
||||
/* Mount a new tmpfs on /dev/shm to ensure that whatever
|
||||
the builder puts in /dev/shm is cleaned up automatically. */
|
||||
if (pathExists("/dev/shm") && mount("none", (chrootRootDir + "/dev/shm").c_str(), "tmpfs", 0, 0) == -1)
|
||||
if (pathExists("/dev/shm") && mount("none", (chrootRootDir + "/dev/shm").c_str(), "tmpfs", 0,
|
||||
fmt("size=%s", settings.get("sandbox-dev-shm-size", std::string("50%"))).c_str()) == -1)
|
||||
throw SysError("mounting /dev/shm");
|
||||
|
||||
/* Mount a new devpts on /dev/pts. Note that this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue