From ef03f67f817a9485f61975480985588db9cd6ea0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 10 Nov 2014 19:57:33 +0100 Subject: Adding hook to enable cryptsetup (Closes: #767195). --- share/hooks/0030-enable-cryptsetup.hook.chroot | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 share/hooks/0030-enable-cryptsetup.hook.chroot (limited to 'share') diff --git a/share/hooks/0030-enable-cryptsetup.hook.chroot b/share/hooks/0030-enable-cryptsetup.hook.chroot new file mode 100755 index 000000000..54c2978d2 --- /dev/null +++ b/share/hooks/0030-enable-cryptsetup.hook.chroot @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +# Enable cryptsetup + +if [ -e /sbin/cryptsetup ] +then + if [ ! -e /etc/initramfs-tools/conf.d/cryptsetup ] + then + mkdir -p /etc/initramfs-tools/conf.d + +cat > /etc/initramfs-tools/conf.d/cryptsetup << EOF +# /etc/initramfs-tools/conf.d/cryptsetup + +CRYPTSETUP=yes +export CRYPTSETUP +EOF + + fi +fi -- cgit v1.2.3