mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
* Do chroot builds in a private namespace. This means that all the
bind-mounts we do are only visible to the builder process and its children. So accidentally doing "rm -rf" on the chroot directory won't wipe out /nix/store and other bind-mounted directories anymore. Also, the bind-mounts in the private namespace disappear automatically when the builder exits.
This commit is contained in:
parent
07cdfb09fb
commit
7c54f1603f
2 changed files with 46 additions and 134 deletions
|
@ -90,6 +90,7 @@ AC_LANG_POP(C++)
|
|||
|
||||
# Check for chroot support (requires chroot() and bind mounts).
|
||||
AC_CHECK_FUNCS([chroot])
|
||||
AC_CHECK_HEADERS([sched.h], [], [], [])
|
||||
AC_CHECK_HEADERS([sys/param.h], [], [], [])
|
||||
AC_CHECK_HEADERS([sys/mount.h], [], [],
|
||||
[#ifdef HAVE_SYS_PARAM_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue