From c90c3ddb2557178e091d882cd5a57e87aed1cc79 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 7 Feb 2010 17:22:22 +0100 Subject: [PATCH] add sleep to encrypt too --- lib/initcpio/hooks/arch_encrypt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/initcpio/hooks/arch_encrypt b/lib/initcpio/hooks/arch_encrypt index 7f2d1cb4d..3c3a5d680 100644 --- a/lib/initcpio/hooks/arch_encrypt +++ b/lib/initcpio/hooks/arch_encrypt @@ -6,6 +6,8 @@ run_hook () { if ! [ "$ENCRYPTRUN" = "1" ]; then /sbin/modprobe -a -q dm-crypt >/dev/null 2>&1 + # fix if udev initialises /dev/mapper/control + sleep 0.5 if [ -e "/sys/class/misc/device-mapper" ]; then if [ ! -e "/dev/mapper/control" ]; then /bin/mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')