]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Have cryptroot-ask load dm_crypt if needed.
authorVictor Lowther <victor.lowther@gmail.com>
Wed, 2 Jun 2010 12:07:55 +0000 (07:07 -0500)
committerHarald Hoyer <harald@redhat.com>
Wed, 9 Jun 2010 08:46:38 +0000 (10:46 +0200)
modules.d/90crypt/cryptroot-ask.sh

index 2f39667ae657c75687ad042114851860ba91dc84..430155a1716ed1cdfc569938b721fbecc7be2714 100755 (executable)
@@ -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