From 079a37dfaa422323a5bb589fb036e23f83e2ac72 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 5 May 2006 15:12:55 +0000 Subject: Fixes: lvm2+encrypt: modprobe dm-mode before the check for device-mapper raid: Pass full CMDLINE to mdassemble git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@65 880c04e9-e011-0410-abf7-b926e227c9cd --- hooks/lvm2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hooks/lvm2') diff --git a/hooks/lvm2 b/hooks/lvm2 index a1788ce..1eaae9a 100644 --- a/hooks/lvm2 +++ b/hooks/lvm2 @@ -3,8 +3,8 @@ run_hook () { mkdevice () { /bin/mknod "/dev/mapper/control" c ${1} ${2}; } + /bin/modprobe -q dm-mod >/dev/null 2>&1 if [ -e "/sys/class/misc/device-mapper" ]; then - /bin/modprobe -q dm-mod >/dev/null 2>&1 read dev_t < /sys/class/misc/device-mapper/dev OLDIFS=$IFS; IFS=: mkdevice $dev_t -- cgit v1.2.3-24-g4f1b