mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
1cc635a2dd
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 <behlendorf1@llnl.gov> Reviewed-By: Tom Caputi <tcaputi@datto.com> Signed-off-by: Andrey Prokopenko <job@terem.fr> Signed-off-by: Richard Laager <rlaager@wiktel.com> Closes #10027
21 lines
544 B
Makefile
21 lines
544 B
Makefile
hooksdir = /usr/share/initramfs-tools/hooks
|
|
|
|
hooks_SCRIPTS = \
|
|
zfs \
|
|
zfsunlock
|
|
|
|
EXTRA_DIST = \
|
|
$(top_srcdir)/contrib/initramfs/hooks/zfs.in \
|
|
$(top_srcdir)/contrib/initramfs/hooks/zfsunlock.in
|
|
|
|
$(hooks_SCRIPTS):%:%.in Makefile
|
|
-$(SED) -e 's,@sbindir\@,$(sbindir),g' \
|
|
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
|
-e 's,@udevdir\@,$(udevdir),g' \
|
|
-e 's,@udevruledir\@,$(udevruledir),g' \
|
|
-e 's,@mounthelperdir\@,$(mounthelperdir),g' \
|
|
-e 's,@DEFAULT_INITCONF_DIR\@,$(DEFAULT_INITCONF_DIR),g' \
|
|
$< >'$@'
|
|
|
|
CLEANFILES = $(hooks_SCRIPTS)
|