Bug#610525: Preseed: Debian Installer hangs during late_command

2011-01-19 Thread Dennis Hoppe
Package: debian-installer
Version: 20110106+b1
Severity: serious

Hello,

i have added the following lines to my preseed config, because partman
should use a static size for my partitions.

d-i preseed/late_command string \
   in-target lvremove -f /dev/vg0/dummy;

After the installation the dummy partition should be removed, but the
Debian Installer stops working.

The following content is from the syslog and ps.

Jan 19 09:20:31 in-target: File descriptor 3 (pipe:[2171]) leaked on
lvremove invocation.
Jan 19 09:20:31 in-target:  Parent PID 15538: log-output
Jan 19 09:20:31 in-target: File descriptor 4 (/dev/pts/0) leaked on
lvremove invocation. Parent PID 15538: log-output
Jan 19 09:20:31 in-target: File descriptor 5 (/dev/pts/0) leaked on
lvremove invocation. Parent PID 15538: log-output
Jan 19 09:20:31 in-target: File descriptor 6 (/dev/pts/0) leaked on
lvremove invocation. Parent PID 15538: log-output
Jan 19 09:23:32 init: starting pid 249, tty '/dev/tty2': '-/bin/sh'
Jan 19 09:28:10 init: starting pid 250, tty '/dev/tty3': '-/bin/sh'

root 15335  0.0  0.2   1844   652 pts/0S+   10:20   0:00 udpkg
--configure --force-configure finish-install
root 15336  0.0  0.2   1872   608 pts/0S+   10:20   0:00 /bin/sh
/var/lib/dpkg/info/finish-install.postinst configure
root 15488  0.0  0.1   1708   420 pts/0S+   10:20   0:00
log-output -t finish-install /usr/lib/finish-install.d/07preseed
root 15489  0.0  0.1   1868   464 pts/0S+   10:20   0:00 /bin/sh
-e /usr/lib/finish-install.d/07preseed
root 15490  0.0  0.2   1872   588 pts/0S+   10:20   0:00 /bin/sh
-e /bin/preseed_command preseed/late_command
root 15492  0.0  0.1   1708   412 pts/0S+   10:20   0:00
log-output sh -c in-target lvremove -f /dev/vg0/dummy;
root 15493  0.0  0.1   1868   448 pts/0S+   10:20   0:00 sh -c
in-target lvremove -f /dev/vg0/dummy;
root 15494  0.0  0.2   1868   540 pts/0S+   10:20   0:00 /bin/sh
/bin/in-target lvremove -f /dev/vg0/dummy
root 15538  0.0  0.2   1708   532 pts/0S+   10:20   0:00
log-output -t in-target chroot /target lvremove -f /dev/vg0/dummy
root 15539  0.0  5.3  15300 13544 pts/0SL+ 10:20   0:00
lvremove -f /dev/vg0/dummy

Regards, Dennis



signature.asc
Description: OpenPGP digital signature


Bug#610525: Preseed: Debian Installer hangs during late_command

2011-01-19 Thread Joey Hess
Dennis Hoppe wrote:
 d-i preseed/late_command string \
in-target lvremove -f /dev/vg0/dummy;

Preseeding commands that generate output to stdout can break the debconf
protocol. Try adding /dev/null (if it tries to read from stdin, that
could also cause it to hang)

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#610525: Preseed: Debian Installer hangs during late_command

2011-01-19 Thread Dennis Hoppe
Hello Joey,

Am 19.01.2011 20:56, schrieb Joey Hess:
 Dennis Hoppe wrote:
 d-i preseed/late_command string \
in-target lvremove -f /dev/vg0/dummy;
 
 Preseeding commands that generate output to stdout can break the debconf
 protocol. Try adding /dev/null (if it tries to read from stdin, that
 could also cause it to hang)

i have had no luck with this little workaround.

Regards, Dennis



signature.asc
Description: OpenPGP digital signature