auto-getty hardcodes device names

Bug #1233786 reported by Marc Zyngier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro OpenEmbedded
Fix Released
Medium
Fathi Boudra

Bug Description

The auto-getty script is very badly behaved, as it assumes that the console on which to run getty must be called tty*.
While this is true most of the time, this doesn't fly at all when using a paravirtualized console (the standard hvc console, for example). You end up with a booted guest and no way to interact with it.

The attached patch tries to work around this issue and parse /etc/securetty to find out if the device passed on the kernel command line has been vetted for root use. If so, there is no reason to prevent getty from running on this console.

It also fix a very silly bug where GETTY_ARGS will forever expand each time getty is re-spawned.

Revision history for this message
Marc Zyngier (marc-zyngier) wrote :
Revision history for this message
Marc Zyngier (marc-zyngier) wrote :
Fathi Boudra (fboudra)
Changed in linaro-oe:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 13.10
Revision history for this message
Fathi Boudra (fboudra) wrote :
Fathi Boudra (fboudra)
Changed in linaro-oe:
assignee: nobody → Fathi Boudra (fboudra)
status: Confirmed → Fix Committed
Fathi Boudra (fboudra)
Changed in linaro-oe:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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