Remote disk unlocking: Difference between revisions

34j (talk | contribs)
Setup: Support ZFS in postCommands
34j (talk | contribs)
mNo edit summary
 
Line 27: Line 27:
     postCommands = ''
     postCommands = ''
       # unlock LUKS encrypted partitions
       # unlock LUKS encrypted partitions
       echo 'cryptsetup-askpass' >> /root/.profile
       echo 'cryptsetup-askpass'</nowiki> >> <nowiki>/root/.profile
       # unlock ZFS encrypted partitions (NOTE: boot.initrd.supportedFilesystems.zfs must be true for zfs, zpool to be available here)
       # unlock ZFS encrypted partitions (NOTE: boot.initrd.supportedFilesystems.zfs must be true for zfs, zpool to be available here)
       # zpool import -a;
       # zpool import -a;
       # echo 'zfs load-key -a' >> /root/.profile
       # echo 'zfs load-key -a'</nowiki> >> <nowiki>/root/.profile
       # exit SSH
       # exit SSH
       echo 'exit' >> /root/.profile
       echo 'exit'</nowiki> >> <nowiki>/root/.profile
     '';
     '';
   };
   };