ZFS: Difference between revisions
imported>Sjau Adding section for unlocking additional encrypted pools/datasets at bootup |
imported>Sjau No edit summary |
||
Line 298: | Line 298: | ||
=== Import and unlock multiple encrypted pools/dataset at boot === | === Import and unlock multiple encrypted pools/dataset at boot === | ||
If you have not only one encrypted pool/dataset but multiple ones and you want to import and unlock them at boot, so that they can be automounted using the hardware-configuration.nix, you could just amend the <code>boot.initrd.network.postCommands</code> | If you have not only one encrypted pool/dataset but multiple ones and you want to import and unlock them at boot, so that they can be automounted using the hardware-configuration.nix, you could just amend the <code>boot.initrd.network.postCommands</code> option. | ||
Unfortunately having an unlock key file stored in an encrypted zfs dataset cannot be used directly, so the pool must use <code>keyformat=password</code> and <code>keylocation=prompt</code>. | Unfortunately having an unlock key file stored in an encrypted zfs dataset cannot be used directly, so the pool must use <code>keyformat=password</code> and <code>keylocation=prompt</code>. |