casper corrupts virtual consoles creation events (/etc/event.d/tty1 - tty6)

Bug #92928 reported by Mantas Kriaučiūnas
24
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Fix Released
Undecided
Colin Watson
Declined for Feisty by Colin Watson

Bug Description

Binary package hint: casper

Current (2007-03-16) Feisty LiveCD doesn't start virtual consoles (tty1 - tty6). This is because casper from initrd corrupts virtual consoles creation events (/etc/event.d/tty1 - tty6) - look at upstart job list:

ubuntu@ubuntu:~$ sudo initctl list
control-alt-delete (stop) waiting
logd (stop) waiting
rc-default (stop) waiting
rc0 (stop) waiting
rc1 (stop) waiting
rc2 (stop) waiting
rc3 (stop) waiting
rc4 (stop) waiting
rc5 (stop) waiting
rc6 (stop) waiting
rcS (stop) waiting
rcS-sulogin (start) running, process 6611
sulogin (stop) waiting
ubuntu@ubuntu:~$

If I remove "quiet splash" from LiveCD boot options then I see this error:

init:/etc/event.d/tty1:15 "Unknown stanza"
init:/etc/event.d/tty2:15 "Unknown stanza"
(same error for all tty1-tty6)

After installation this problem disappears and virtual consoles starts fine.

On #ubuntu-devel Colin Watson told me:
22:34:29 <cjwatson> it munges /etc/event.d/*, and perhaps it uses syntax that's now broken
22:34:54 <cjwatson> please let me know the bug number once you file it (or find an existing one) and I'll ensure it's milestoned for beta

Btw, who needs 6 virtual consoles on Desktop LiveCD ? I think 2 virtual consoles is more than majority of users need, against which package should I report a bug ? I think against usplash, I'm right ?

Related branches

Revision history for this message
Colin Watson (cjwatson) wrote :

casper (1.83) feisty; urgency=low

  * Fix usplash version in Conflicts.
  * Add XS-Vcs-Bzr field to debian/control.
  * scripts/casper-bottom/25configure_init: Support for "respawn COMMAND"
    has been dropped from upstart jobs; cope with /etc/event.d/tty* using
    "respawn" plus "exec COMMAND" now instead (LP: #92928).

 -- Colin Watson <email address hidden> Mon, 19 Mar 2007 16:44:22 +0000

Changed in casper:
assignee: nobody → kamion
status: Unconfirmed → Fix Released
Revision history for this message
Flapane (flapane) wrote :

Feisty upgraded 'til today packages, casper1.83, but the problem still exists:
https://launchpad.net/ubuntu/+source/upstart/+bug/95210

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

@Flapane:

casper is used in livecd, only. You have to rebuild your livecd to use this fix. However, after Feisty is installed tty's are ok (at least for me).

@Colin Watson:

I've tested your change to scripts/casper-bottom/25configure_init (manually applied to filesystem.squashfs in Feisty Beta i386 desktop livecd), but the problem is still there. "respawn" is detected as an "unknown stanza", and you end up with no tty's when booting livecd.
I've tried removing the "respawn" line from /etc/event.d/tty*, and i got no errors and all tty's working when using casper (although no respawn, obviously), so i think there's something else needing a fix.
After installing Feisty, tty's are ok.
If you need more info or testing please let me know.

Changed in casper:
status: Fix Released → Unconfirmed
Revision history for this message
Flapane (flapane) wrote :

My problem is on the installed feisty, not te live one

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

Then it should be related to upstart. Make sure you're using the latest version.
Try modifying /etc/event.d/tty*. First, try removing the "respawn" line. That should help to get tty's working, but no respawn.
According to https://launchpad.net/upstart/main/0.3.7, the "respawn" stanza should be declared after "exec". I'm not sure if that makes a difference, but you could try it. (I tried it in casper, but it didn't work).

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I can confirm that it only works on the beta live if "respawn" (without arguments) is declared after "exec".

Revision history for this message
Flapane (flapane) wrote :

my tty file were corrputed..
I solved changing them in
respawn
exec /sbin/getty 38400 tty1

thanks

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

I'm sorry, i didn't notice that my manually applied changes to 25configure_init didn't have any effect over /etc/event.d/tty*. I'm not sure how to test this, i tried using chroot dpkg -i over uncompressed filesystem.squashfs and rebuilding the cd, but still the same.
Anyway, this fix should work, thanks.

Changed in casper:
status: Unconfirmed → Fix Released
Revision history for this message
20after4 (twentyafterfour) wrote :

I am having the same problem on the Beta live-cd. I can test a proposed fix if my help is needed.

Revision history for this message
Justin Bowes (daft-angus) wrote :

@Juan Pablo Salazar Bertín:
95210 is marked as a duplicate of this, but the system configuration is different: It's an installed, fully upgraded Feisty system. I've no idea of the cause, but I thought it might help to add another non-LiveCD report.

This bug bit me earlier tonight. I saw the same "unknown stanza" messages after an apt-get upgrade when I booted my formerly-working feisty partition with nosplash.

Workaround is the /etc/event.d/tty# fix described above. No further problems.

On the machine that manifested this, I would never see it unless GDM fails to start, which only happens after kernel updates, so I have no idea how long it has been lurking.

Revision history for this message
Juan Pablo Salazar Bertín (snifer) wrote :

@Justin Bowes:
You're right, bug #95210 is in fact a duplicate of bug #89314, since it's an upgrade and not a LiveCD report. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.