diff options
author | Andrey Prokopenko <[email protected]> | 2020-05-03 00:43:42 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-05-07 16:41:16 -0700 |
commit | 1cc635a2dd0379181950a1458255ea8ae8b9c1e0 (patch) | |
tree | b872c2a08620fe34cd6e7c6824ed6be927a99497 /contrib/initramfs/hooks/zfsunlock.in | |
parent | 746d22ee02d2617ee982f1620b06f882b924ce8e (diff) |
Unlock encrypted root partition over SSH
This commit add a new feature for Debian-based distributions to unlock
encrypted root partition over SSH. This feature is very handy on
headless NAS or VPS cloud servers. To use this feature, you will need
to install the dropbear-initramfs package.
Reviewed-By: Brian Behlendorf <[email protected]>
Reviewed-By: Tom Caputi <[email protected]>
Signed-off-by: Andrey Prokopenko <[email protected]>
Signed-off-by: Richard Laager <[email protected]>
Closes #10027
Diffstat (limited to 'contrib/initramfs/hooks/zfsunlock.in')
-rw-r--r-- | contrib/initramfs/hooks/zfsunlock.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/initramfs/hooks/zfsunlock.in b/contrib/initramfs/hooks/zfsunlock.in new file mode 100644 index 000000000..c8ae86363 --- /dev/null +++ b/contrib/initramfs/hooks/zfsunlock.in @@ -0,0 +1,18 @@ +#!/bin/sh + +PREREQ="dropbear" + +prereqs() { + echo "$PREREQ" +} + +case "$1" in + prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +copy_exec /usr/share/initramfs-tools/zfsunlock /usr/bin |