zfsrogue / zfs-crypto

ZFS On Linux with crypto patches
Other
39 stars 7 forks source link

Passphrase through Splash/Plymouth/Etc #15

Closed Hadron2 closed 11 years ago

Hadron2 commented 11 years ago

Feature Request or Bug Fix.

We should have a way to pass a passphrase from STDIN, a pipe/redirect, or environment.

I tried to use "keysource=raw,prompt" as suggested by lundman on #zfsonlinux.

root@ubuntu> echo "PASSPHRASE" | zfs create -o encryption=on -o keysource=raw,prompt tank/CRYPT
cannot create 'tank/CRYPT': invalid all zeros key 0
root@ubuntu>

Please make 'raw,prompt' work, or add 'passphrase,stdin' as a feature.

Thanks! :)

lundman commented 11 years ago

This appears to work, but little testing done.

https://github.com/lundman/zfs-crypto/commit/62d0d4513cee45d6c3b9a3c93d3930d15efb9cd8

zfsrogue commented 11 years ago

спасибо

https://github.com/zfsrogue/zfs-crypto/commit/f973b3fd235e7543790dd1300d804bb80b8d91a4