Bug 4374

Summary: SERIAL_CONSOLES creates entries in inittab which do not have a unique ID
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: John Toomey <john.toomey>
Component: meta-yoctoAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, poky.bs.watcher, poky.watcher
Version: 1.5   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description John Toomey 2013-04-22 09:23:56 UTC
The following patch allows the use of SERIAL_CONSOLES to create multiple getty sessions on different serial ports: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7dec9be56bed73bbd8cbc42360620c64f1fed882

The inittab IDs used by the patch are not unique because the same IDs are used elsewhere in the poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb recipe:

        for n in ${SYSVINIT_ENABLED_GETTYS}
        do
            echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
        done
        echo "" >> ${D}${sysconfdir}/inittab

This results in myltiple lines in the inittab having the same ID which will cause a conflict.

I suggest that the patch be modified to use the IDs S0,S1,..,SN rather than 1,2,..,N as it is currently. 

echo "S${idx}:2345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
Comment 1 Richard Purdie 2013-04-22 13:53:14 UTC
Reassign to Paul since I think he's been talking to John...