[xen-tools-discuss] Upstart event handler contains 'tty1' even though serial_device is xvc0

From: Simon Hürlimann <simon.huerlimann_at_huerlisi.ch>
Date: Fri, 02 Jan 2009 01:49:20 +0100
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
Received on Fri Jan 02 2009 - 00:49:48 GMT

Mailing list overview.