[Nix-dev] How to add file to initrd?

Tomasz Czyż tomasz.czyz at gmail.com
Thu Sep 10 22:22:13 CEST 2015


I have a problem with this method as you cannot copy the file outside
extras tree.

I used:

   ''cp /my.key $out/key" - the final file is in /nix/store/XXXXX/here
(hard to access, if hash will change this stuff stop work.
   "cp /my.key $out/../../key" or "cp /my.key /key" doesn't work,
permission error, so I cannot put key in the root of initrd.

Tom

2015-09-09 5:59 GMT+01:00 <phreedom at yandex.ru>:

> On Tuesday, September 08, 2015 20:09:16 Tomasz Czyż wrote:
>
> > Is there any way to add key files to initrd? (I found some "extra"
> options
>
> > for boot partition but not for initrd, maybe there are some hooks I'm not
>
> > aware of)
>
>
>
> boot.initrd.extraUtilsCommands looks like a good match.
>
>
>
> -- Evgeny
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
Tomasz Czyż
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150910/c557d589/attachment.html 


More information about the nix-dev mailing list