summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-04-28 01:15:29 +0200
committerAaron Griffin <aaron@archlinux.org>2006-04-28 01:15:29 +0200
commitc32b4769f06e60b39ce93e4ea90fd48795506e0f (patch)
tree1a0381c25f6923d3710d58bba2a63812582dec8e /hooks
parent7a4346c551247544b3b2984c8958a3b4b8575b8c (diff)
downloadmkinitcpio-c32b4769f06e60b39ce93e4ea90fd48795506e0f.tar.gz
mkinitcpio-c32b4769f06e60b39ce93e4ea90fd48795506e0f.tar.xz
sleep the luksOpen loop
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@32 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'hooks')
-rw-r--r--hooks/encrypt7
1 files changed, 3 insertions, 4 deletions
diff --git a/hooks/encrypt b/hooks/encrypt
index 26b318a..cc1b315 100644
--- a/hooks/encrypt
+++ b/hooks/encrypt
@@ -15,10 +15,9 @@ run_hook ()
echo ""
echo "A password is required to access the root filesystem:"
- /bin/cryptsetup luksOpen ${root} root
- while [ $? -ne 0 ]; do
- #loop until we get a real password
- /bin/cryptsetup luksOpen ${root} root
+ #loop until we get a real password
+ while !/bin/cryptsetup luksOpen ${root} root; do
+ sleep 2;
done
if [ -e "/dev/mapper/root" ]; then
export root="/dev/mapper/root"