The problem is that systemd calls other binaries at runtime. systemd binary
references are nuked to /nix/store/eeeeeeeee/bin/mount, for example.
Probably there are no such examples in the current initrd that I can look
at.


On Sat, Aug 23, 2014 at 6:28 PM, Lluís Batlle i Rossell <[email protected]>
wrote:

> Have you looked at the current initrd? Doesn't it have the files in
> /nix/store?
>
> On Sat, Aug 23, 2014 at 06:24:54PM +0200, Luca Bruno wrote:
> >  Wall hit: systemd calls binaries like mount etc.
> >
> > First problem: they are hardcoded paths to the nix store, and it's hard
> to
> > change those references.
> > Possible solution: rebuild systemd in order to call /bin/mount instead.
> > That's easy.
> >
> > Second problem: after switching root, those binaries are no more
> available.
> > Not only, even if they were, they would be the busybox binaries.
> > Possible solution: hardcode systemd paths to use
> > /run/current-system/sw/bin. In initrd it would be a matter of creating
> the
> > directory.
> >
> > Thoughts?
> >
> > Best regards,
>
> > _______________________________________________
> > nix-dev mailing list
> > [email protected]
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
www.debian.org - The Universal Operating System
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to