[Nix-dev] systemd in initrd

Luca Bruno lethalman88 at gmail.com
Sat Aug 23 19:04:48 CEST 2014


For now this is what I'm doing, which is cleary a gross hack. I symlink the
nuked reference into the initrd.

 { object = let utils = config.system.build.extraUtils; in
     pkgs.runCommand "fake-utillinux" { allowedReferences = [ "out" utils
]; } ''
        mkdir -p $out/bin $out/sbin
        ln -sf ${utils}/bin/mount $out/bin/
        ln -sf ${utils}/bin/umount $out/bin/
        ln -sf ${utils}/bin/swapon $out/sbin/
        ln -sf ${utils}/bin/swapoff $out/sbin/
        '';
   symlink = "/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-${
pkgs.utillinux.name}";
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140823/6d7e954e/attachment-0001.html 


More information about the nix-dev mailing list