Have cryptroot-ask load dm_crypt if needed.

master
Victor Lowther 2010-06-02 07:07:55 -05:00 committed by Harald Hoyer
parent 6a4f980921
commit 2974f382f8
1 changed files with 3 additions and 0 deletions

View File

@ -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