diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-04-28 01:15:29 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-04-28 01:15:29 +0200 |
commit | c32b4769f06e60b39ce93e4ea90fd48795506e0f (patch) | |
tree | 1a0381c25f6923d3710d58bba2a63812582dec8e /hooks/encrypt | |
parent | 7a4346c551247544b3b2984c8958a3b4b8575b8c (diff) | |
download | mkinitcpio-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/encrypt')
-rw-r--r-- | hooks/encrypt | 7 |
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" |