Package: casper Version: 1.71+debian-1 Tags: patch The attached patch fixes the casper-getty setup. There were reports that it did not work on cdrom boots. I don't think the code in 1.71+debian1 could have worked at all net or cd boot. I have tested the new code by booting a cdrom image using qemu. This test shows the code works.
The patch is to the script 25configure_init (Version: 1.71+debian-1) Regards Alex Owen
--- 25configure_init.orig 2006-10-05 18:17:48.000000000 +0000 +++ 25configure_init 2006-10-22 13:09:04.000000000 +0000 @@ -23,7 +23,7 @@ # Arrange for shells on virtual consoles, rather than login prompts if [ -n "$USERNAME" ]; then - if [ ! -z "${CASPERGETTY}" ]; then + if [ -n "${CASPERGETTY}" ]; then # AUTOMATIC SERIAL CONSOLE # defconsole=$(sed -e 's%.*console=%console=%' /proc/cmdline) if echo "${defconsole}" | grep -qs console=ttyS; then @@ -47,6 +47,9 @@ >>/root/etc/inittab fi fi + if [ -f /root/etc/inittab ]; then + sed -i -e'/^[^#]/s%respawn:/sbin/getty%respawn:/sbin/casper-getty%' /root/etc/inittab + fi else if [ -f /root/etc/inittab ]; then sed -i -e "s|^\([^:]*:[^:]*:[^:]*\):.*getty.*\<\(tty[0-9]*\).*$|\1:/bin/login -f $USERNAME </dev/\2 >/dev/\2 2>\&1|" /root/etc/inittab