]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
plymouth: load dm_crypt module
authorHarald Hoyer <harald@redhat.com>
Mon, 9 Aug 2010 11:09:13 +0000 (13:09 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Aug 2010 11:09:13 +0000 (13:09 +0200)
modules.d/50plymouth/cryptroot-ask.sh

index 0740cd6af5afbeb5450baabda291e912ac4207ab..d1c4770f2012059bf7fbf78a2786bdda80a7abf2 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