From 2974f382f8e2fe201b94c49f9329c82a341ef070 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Wed, 2 Jun 2010 07:07:55 -0500 Subject: [PATCH] Have cryptroot-ask load dm_crypt if needed. --- modules.d/90crypt/cryptroot-ask.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules.d/90crypt/cryptroot-ask.sh b/modules.d/90crypt/cryptroot-ask.sh index 2f39667a..430155a1 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