[Nix-dev] Re: [Nix-commits] SVN commit: trace - 9536 - eelco - in nix/trunk/src: libstore libutil

Eelco Dolstra eelco at cs.uu.nl
Thu Nov 1 15:59:10 CET 2007


Hi,

Michael Raskin wrote:
> Eelco Dolstra wrote:
>>   However the usefulness of chroots is diminished by the fact that
>>   many builders depend on /bin/sh, so you need /bin in the list of
>>   additional directories.  (And then on non-NixOS you need /lib as
>>   well...)
> 
> Maybe /lib should be explicitly prohibited (if a special option is on).
> /bin/sh problem can be solved by enabling adding empty writable
> directories, so builder will create it itself.

But that would require changes to the builder...

Another solution would be to let the user supply a statically linked sh, which
would be placed in /bin/sh in the chroot.  But in any case additional
configuration options would be needed.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list