- Package:
- live-config
- Source:
- live-config
- Submitter:
- Daniel Chao
- Date:
- 2019-10-22 19:15:03 UTC
- Severity:
- wishlist
When I upgrade my live image building system from Lenny to Squeeze, the live-getty option is not working any more. In config/binary LB_BOOTAPPEND_LIVE="8250.nr_uarts=6 live-getty console=tty0 console=ttyS0,9600n8 ip=frommedia quiet textonly" After building the image with "lb build", the login/shell prompt never appears on the serial port. This used to be working with previous version of live-helper. Tried putting a modified inittab file into config/chroot_local-include/etc will results in incorrect modified entry. I've found the same issue on debian bug #442289. This is installed on my build system: ii live-build 2.0.5-1 Debian Live - System Build Scripts Following is the package info from the live system root@debian:~# dpkg -l |grep -i live- ii live-boot 2.0.11-1 Debian Live - System Boot Scripts ii live-boot-initramfs-tools 2.0.11-1 Debian Live - System Boot Scripts (initramfs-tools backend) ii live-config 2.0.11-1 Debian Live - System Configuration Scripts ii live-config-sysvinit 2.0.11-1 Debian Live - System Configuration Scripts (sysvinit backend) ii live-initramfs 2.0.11-1 Debian Live - System Boot Scripts (transitional package)
reassign 602788 live-boot severity 602788 wishlist retitle 602788 support for serial console thanks this is a known regression, see http://live.debian.net/gitweb?p=live-config.git;a=blob;f=docs/README;h=8059e3d8d2be6616d30f9e695472d4992387f7d2;hb=HEAD i've got no sane testing environment for this, so it's not likely going to be fixed soon. however, patches are of course welcome.
This is affecting me too. FYI, you can test serial support for a live image
with something like:
$ qemu -hda binary.img -serial stdio
Serial console then appears on the command line.
I've poked around to try to fix it (or work around it), but haven't really
gotten anywhere. Any tips on where to start?
— Jason
I've attached a hacky little sed script that Works For Me (goes in config/includes.chroot/lib/live/config) — it requires manual tweaking for different device names, and is certainly no replacement for the original live-getty script. But it might help others who just need to get something up and running. Cheers, Jason
Jason Heeris's script worked for me after I changed it to 9999-serial_console (to run later). it only needs to run after 0170-sysvinit, so a lower priority like 1190 would be fine. a partial fix might be to re-write the offending sed in 0170-sysvinit (UNTESTED): \(tty[0-9]*\) -> \(tty[A-Z0-9]*\) this would correctly mangle many custom /etc/inittab files.
Hi Jason, Daniel and bnewbold, I know, this bug is pretty old, but I'd like to close it in some way. The original report was against the 2.x series of live tools released in Squeeze. Today, I retried the 4.x Jessie images in QEMU and if I add "-serial stdio" to the QEMU options and boot the kernel with "console=tty0 console=ttyS0,9600n8" stuff seems just to work. Can you confirm that? If you can, I'd just close this bug as fixed in the Jessie version and carry on :) Greets Evgeni
control: found -1 5.20151121 control: retitle -1 autologin on serial-console missing Hi, so passing "console=tty0 console=ttyS0,9600n8" works fine in the Stretch based (systemd) images too, but there is no autologin on ttyS0. I'd say this is half a regression and we should fix that in live-config. Greets Evgeni
Hi, The attached patch should (I will test it tomorrow) fix the problem.