Codebase list live-build / 7bd34f6 share / hooks / 0030-enable-cryptsetup.hook.chroot
7bd34f6

Tree @7bd34f6 (Download .tar.gz)

0030-enable-cryptsetup.hook.chroot @7bd34f6raw · history · blame

#!/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