Package: loop-aes-utils
Version: 2.13.1-4
Severity: normal
Tags: patch
In the initramfs script, when /sbin/losetup is called, it typically
will call gpg, which usually needs interaction with the user (to ask
for a passphrase) and hence needs /dev/tty.
This patch makes it wait for /dev/tty before starting losetup.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages loop-aes-utils depends on:
ii gnupg 1.4.9-4 GNU privacy guard - a free PGP rep
ii libblkid1 1.41.6-1 block device id library
ii libc6 2.9-16 GNU C Library: Shared libraries
ii libselinux1 2.0.80-1 SELinux shared libraries
ii libuuid1 1.41.6-1 Universally Unique ID library
ii mount 2.15.1~rc1-1 Tools for mounting and manipulatin
Versions of packages loop-aes-utils recommends:
ii sharutils 1:4.6.3-1 shar, unshar, uuencode, uudecode
loop-aes-utils suggests no packages.
-- no debconf information
--- loop-aes-utils-2.15.1~rc1/debian/initramfs/script~ 2009-08-10 10:58:54.000000000 +0200
+++ loop-aes-utils-2.15.1~rc1/debian/initramfs/script 2009-08-10 11:10:29.176373769 +0200
@@ -135,7 +135,7 @@
modprobe -q "$mod"
done
-while ! [ -b "${rootloop}" ]; do
+while ! ( [ -b "${rootloop}" ] && [ -c "/dev/tty" ] ); do
sleep 1
done