[Nix-dev] systemd in initrd

Lluís Batlle i Rossell viric at viric.name
Sun Aug 24 16:29:19 CEST 2014


On Sun, Aug 24, 2014 at 04:02:32PM +0200, Luca Bruno wrote:
> Some progress: nixos/tests/simple.nix built successfully. That means the
> initrd works fine, mounted the file systems and so on, and switched root.
> Probably something is still not in the right place between stage 1 and
> stage 2, however it's a good step forward.
> 
> Current issues:
> - The /nix/store/eeeeeeeeeeee- thing to make systemd happy when calling
> binaries such as mount.
> - Currently systemd switches root and enters stage-2, then it's restarted
> from stage-2. This is not what we want I guess.
> 
> These two issues are interconnected, since if systemd is not restarted in
> stage-2, it means it will use the wrong paths for the mount binaries.

Not leaving any binary descriptor open from the initrd is important to be able to
wash away from memory the initrd, which uses to be something good, as it frees
memory.

Regards,
Lluís.


More information about the nix-dev mailing list