[Nix-dev] systemd in initrd

Luca Bruno lethalman88 at gmail.com
Sun Aug 24 22:50:59 CEST 2014


Some other progress, we'are almost there:

- Cleaned up several stuff.
- Fixed the emergency shell to work when called from within systemd.
- Removed the /nix/store/eeeeeeeee- references hack, now we build a systemd
with hardcoded /bin/foo and /sbin/bar commands.

Still systemd is re-executed for the stage-2, I think there's no clean
solution at the moment.

FIXME: currently "auto" file systems do not work because the relative
kernel module is not loaded. Does the fstab-generator generates .mount with
the guessed file system, or it keeps being "auto"?Does anybody know, before
I scratch my head to make it work?

For an example of porting from old hooks, see the qemu-vm.nix[1]. I don't
know instead why the setupRoot service is not even scheduled by systemd :-(

[1]
https://github.com/lethalman/nixpkgs/blob/systemd/nixos/modules/virtualisation/qemu-vm.nix#L284
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140824/5370c6aa/attachment.html 


More information about the nix-dev mailing list