[Nix-dev] systemd in initrd

Lluís Batlle i Rossell viric at viric.name
Sat Aug 23 18:28:52 CEST 2014


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



More information about the nix-dev mailing list