From: Victor Lowther Date: Sun, 22 Feb 2009 06:22:36 +0000 (-0600) Subject: cryptsetup does not like running in a while read loop. X-Git-Tag: 0.1~418 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19e9dd9303085d3186d86999805d1a862c61aaeb;p=platform%2Fupstream%2Fdracut.git cryptsetup does not like running in a while read loop. Add some additional manglage to ensure that stdin/stdout is always pointing the right thing. A more elegant way of doing this would be much appreciated --- diff --git a/hooks/cryptroot.sh b/hooks/cryptroot.sh index 739f5d3..1bcc68f 100755 --- a/hooks/cryptroot.sh +++ b/hooks/cryptroot.sh @@ -2,7 +2,9 @@ [ -s /cryptroot ] && { udevadm control --stop_exec_queue while read cryptopts; do - /sbin/cryptsetup luksOpen $cryptopts + ( exec >/dev/console 2>&1 /cryptroot udevadm control --start_exec_queue