[Nix-dev] systemd in initrd

Luca Bruno lethalman88 at gmail.com
Fri Aug 22 17:53:53 CEST 2014


On 22/08/2014 17:46, Alexander Kjeldaas wrote:
> How will actually building the initrd be improved?  I feel that the
> dependency resolution is only half of the problem. Things like this is
> the other half - manual copying of libraries and binaries to minimize
> initrd size:
>
> https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/luksroot.nix#L408
>
> For my use I don't care whether initrd is large, but making systemd
> services "portable" to initrd by copying their closures will probably
> affect initrd size a lot more than systemd itself.
>
> Alexander
It's not meant to be an automatic porting of existing nixos services to
initrd. Only those defined for being usable in initrd. In which case,
each service that is supposed to run in the initrd has to do something
similar to luks. We are mostly talking about file systems though.


More information about the nix-dev mailing list