I'm using Nix on an ordinary Linux distro (not NixOS) and I want to use
chroot builds, to make package builds more pure. I've successfully performed a
multi-user installation and I've enabled chroot builds in nix.conf. However,
the default build-chroot-dirs option value does not include the
I'm using Nix on an ordinary Linux distro (not NixOS) and I want to use
chroot builds, to make package builds more pure. I've successfully performed a
multi-user installation and I've enabled chroot builds in nix.conf. However,
the default build-chroot-dirs option value does not include the
Hi,
On 28/12/12 18:41, Sander van der Burg - EWI wrote:
A possible solution is to bind mount a different directory from my host system
(only containing the shell) into the the chroot environment.
It would have to be a statically linked shell, otherwise you'll need /lib as
well.
Is there an
A possible solution is to bind mount a different directory from my host
system
(only containing the shell) into the the chroot environment.
It would have to be a statically linked shell, otherwise you'll need /lib as
well.
Or a link to stdenv.shell.
Yes, you're right about the statically linked shell, or I have to bind mount
/lib into the chroot environment as well, introducing many more impurities.
Now that I'm thinking about this: It almost sounds like a good idea to
implement a feature in Nix providing a static shell in /bin/sh for any
I could also be more creative -- e.g. running nix-daemon in a chroot providing
a pure environment. But doing that is a bit too much effort for me. :P
Well, you can take my script in the short run
configurations/trunk/misc/raskin/misc-scripts/special-chroot
I do exactly this chroot trick