[Nix-dev] How to add file to initrd?
Tuomas Tynkkynen
tuomas.tynkkynen at iki.fi
Fri Sep 11 14:01:59 CEST 2015
(Argh, replying to the list this time...)
2015-09-09 9:03 GMT+03:00 Bryan Gardiner <bog at khumba.net>:
> On Tue, Sep 08, 2015 at 08:09:16PM +0100, Tomasz Czyż wrote:
[...]
>
> How about doing something like:
>
> preLVMCommands =
> let key = builtins.readFile ./keyfile; in
> "echo '${key}' >/key"
>
Do note that by doing this, the key will get embedded somewhere in
/nix/store, with world-readable unix permissions.
More information about the nix-dev
mailing list