cryptsetup does not like running in a while read loop.
Gitweb: http://git.kernel.org/?p=linux/kernel/git/davej/dracut.git;a=commit;h=19e9dd9303085d3186d86999805d1a862c61aaeb Commit: 19e9dd9303085d3186d86999805d1a862c61aaeb Parent: 5ee69f0b54d301c74553fcc0ebc360110a3d1205 Author: Victor Lowther <[email protected]> AuthorDate: Sun Feb 22 00:22:36 2009 -0600 Committer: Dave Jones <[email protected]> CommitDate: Tue Feb 24 14:53:42 2009 -0500
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
--- hooks/cryptroot.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
hooks/cryptroot.sh +3 -1
@@ -2,7 +2,9 @@ [ -s /cryptroot ] && { udevadm control --stop_exec_queue while read cryptopts; do - /sbin/cryptsetup luksOpen $cryptopts + ( exec >/dev/console 2>&1 </dev/console + /sbin/cryptsetup luksOpen $cryptopts || emergency_shell + ) done </cryptroot >/cryptroot udevadm control --start_exec_queue
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html