From: Victor Lowther Date: Wed, 2 Jun 2010 12:07:55 +0000 (-0500) Subject: Have cryptroot-ask load dm_crypt if needed. X-Git-Tag: 006~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2974f382f8e2fe201b94c49f9329c82a341ef070;p=thirdparty%2Fdracut.git Have cryptroot-ask load dm_crypt if needed. --- diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index 2f39667ae..430155a17 100755 --- a/modules.d/90crypt/cryptroot-ask.sh +++ b/modules.d/90crypt/cryptroot-ask.sh @@ -9,6 +9,9 @@ # we already asked for this device [ -f /tmp/cryptroot-asked-$2 ] && exit 0 +# load dm_crypt if it is not already loaded +[ -d /sys/module/dm_crypt ] || modprobe dm_crypt + . /lib/dracut-lib.sh # default luksname - luks-UUID