[Nix-dev] systemd in initrd
Luca Bruno
lethalman88 at gmail.com
Sat Aug 23 18:24:54 CEST 2014
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140823/881948be/attachment.html
More information about the nix-dev
mailing list