[xen-tools-discuss] Upstart event handler contains 'tty1' even though serial_device is xvc0
Simon Hürlimann
simon.huerlimann at huerlisi.ch
Fri Jan 2 01:49:20 CET 2009
Hi again
I'm using default xen-tools in version 3.9-3 on Intrepid. This gives me the problem with the
console as described in https://bugs.launchpad.net/ubuntu/+source/xen-tools/+bug/139046.
As far as I can see, the startup event handler for tty1 gets renamed, but it doesn't work.
The reason is, that those tty1 instances in the file itself aren't replaced. The inittab
doesn't exist on these systems anymore, either.
Possible fix?
Yupp change the :
# replace existing device.
mv ${prefix}/etc/event.d/tty1 ${prefix}/etc/event.d/${serial_device}
- sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/inittab
+ sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/event.d/${serial_device}
+ [ -f ${prefix}/etc/inittab ] && sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/inittab
Simon
More information about the xen-tools-discuss
mailing list