getty is run before it's usable

Bug #58630 reported by Ondřej Surý
20
Affects Status Importance Assigned to Milestone
upstart (Ubuntu)
Fix Released
Low
Scott James Remnant (Canonical)

Bug Description

getty is run on ttys before:
- hostname is set (this leads to printing "(none)" instead of hostname in prompt)
- all filesystems are mounted (you could login before your home dir is mounted)

Ondrej

Changed in upstart:
assignee: nobody → keybuk
importance: Untriaged → Low
status: Unconfirmed → Confirmed
Revision history for this message
John (john.e) wrote :

I agree, same here.

Revision history for this message
Johan Kiviniemi (ion) wrote :

The tty* jobs are in the upstart package, and as it doesn't depend on upstart-compat-sysv, this is somewhat tricky.

I think the final solution is migrating essential things from rcS to upstart jobs. Then tty* can be made start on a suitable event from them.

In the meantime, you can modify /etc/event.d/tty* to "start on rcS" instead of starting on "startup" (as long as you have upstart-compat-sysv installed). You might also want to add a "console output" or "console owner" line to /etc/event.d/rcS 1) to see rcS's output and 2) to be able to e.g. type a password if you have an encrypted partition.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

I'll move the tty scripts to the system-services package, which can depend on upstart-compat-sysv for now :)

Changed in upstart:
status: Confirmed → Fix Committed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

But yet, you're right about the long term

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This is a "patch" fix to make sure that the gettys are run at a reasonable time for now

 upstart (0.2.1-6) edgy; urgency=low
 .
   * Make packages Essential, and change Depends to Pre-Depends so that the
     packages work when unconfigured (nothing interesting is performed in
     postinst). Ubuntu: #59005.
   * Sync priority in debian/control with that in the archive (required)
   * Drop warning of dire consequences if you install upstart, seeing as it's
     installed by default.
 .
   * Add new startup-tasks and system-services packages which will contain
     the /etc/event.d files themselves (other than the main ones).
   * Move tty definitions into system-services.
   * Modify tty definitions to start when the rcS task has finished. This
     puts them in the "right" place when compared to gdm. Ubuntu: #58630.
 .
   * Correct rcS compatibility script to ignore any information in utmp so
     that all scripts are always run. Ubuntu: #59203.
   * Make rcS the console owner while it runs, temporary fix for
     Ubuntu: #58609, #58794, #58796
   * Include default control-alt-delete handler that reboots the machine.

Changed in upstart:
status: Fix Committed → Fix Released
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.