[Nix-dev] systemd in initrd
Luca Bruno
lethalman88 at gmail.com
Sat Aug 23 18:31:22 CEST 2014
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 <viric at viric.name>
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
> > nix-dev at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
--
www.debian.org - The Universal Operating System
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140823/4e952d0b/attachment.html
More information about the nix-dev
mailing list