lb-config/hooks/normal/0030-enable-cryptsetup.hook...

22 lines
309 B
Plaintext
Raw Normal View History

2020-06-16 04:11:22 +00:00
#!/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