dracut/modules.d/90crypt/check

12 lines
179 B
Bash
Executable File

#!/bin/sh
[[ $dracutfunctions ]] && . $dracutfunctions
find_binary cryptsetup >/dev/null || exit 1
if [ "$1" = "-h" ]; then
blkid | grep -q crypt_LUKS || exit 1
fi
exit 0