Package: live-config-sysvinit
Version: 3.0.23-1
Severity: normal
Tags: patch

Dear Maintainer,

I tried to make a debian-live image with a serial console. The default inittab 
has the serial getty commented out. Simply uncommenting this line (in 
includes.chroot) however did not result in a working serial terminal. The 
problem seems to be that `inittab` is rewritten by a script from this package. 
The concerning sed-command does not match `ttyS0`, and hence does not correctly 
rewrite the line. Patch below


--- a/lib/live/config/0170-sysvinit        2013-04-25 19:38:35.000000000 +0200
+++ b/lib/live/config/0170-sysvinit        2014-07-09 11:35:07.000000000 +0200
@@ -38,7 +38,7 @@
        sed -i -e 's|^ *RAMTMP=.*|RAMTMP=no|' /etc/default/rcS
 
        # Configure autologin
-       sed -i -e 
"s|^\([^:]*:[^:]*:[^:]*\):.*getty.*\<\(tty[0-9]*\).*$|\1:/bin/login -f 
${LIVE_USERNAME} </dev/\2 >/dev/\2 2>\&1|" /etc/inittab
+       sed -i -e 
"s|^\([^:]*:[^:]*:[^:]*\):.*getty.*\<\(ttyS\?[0-9]*\).*$|\1:/bin/login -f 
${LIVE_USERNAME} </dev/\2 >/dev/\2 2>\&1|" /etc/inittab
 
        init q


-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-config-sysvinit depends on:
ii  sysvinit  2.88dsf-41+deb7u1

live-config-sysvinit recommends no packages.

live-config-sysvinit suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to