diff options
author | Stephano Cetola <stephano.cetola@linux.intel.com> | 2016-04-28 20:01:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:31:12 +0100 |
commit | 8fa797d73b6266bb3fadcaf6d53ef7adca7f47ba (patch) | |
tree | da53b74da9fda93376285b3f5cdb69c549f5096e /meta/recipes-core/sysvinit | |
parent | 36a26402feaed9f93eaaa9dc673067051527fe83 (diff) | |
download | poky-8fa797d73b6266bb3fadcaf6d53ef7adca7f47ba.tar.gz |
sysvinit-inittab: restrict labels to 4 chars
The current recipe creates inittab labels based off the device node name
of TTYs used as consoles. If those names exceed the 4 character label
limit of inittab, it will break. This change takes the last 4 chars of
the device names in order to avoid any errors.
[ YOCTO #9529 ]
(From OE-Core rev: 30acc7a6b9e6d1c42ba1df6e5a362d10b43cb4eb)
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/sysvinit')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb index c5b8cdca95..bdc3416aa9 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb | |||
@@ -26,7 +26,8 @@ do_install() { | |||
26 | for i in $tmp | 26 | for i in $tmp |
27 | do | 27 | do |
28 | j=`echo ${i} | sed s/\;/\ /g` | 28 | j=`echo ${i} | sed s/\;/\ /g` |
29 | label=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` | 29 | l=`echo ${i} | sed -e 's/tty//' -e 's/^.*;//' -e 's/;.*//'` |
30 | label=`echo $l | sed 's/.*\(....\)/\1/'` | ||
30 | echo "$label:12345:respawn:${base_bindir}/start_getty ${j}" >> ${D}${sysconfdir}/inittab | 31 | echo "$label:12345:respawn:${base_bindir}/start_getty ${j}" >> ${D}${sysconfdir}/inittab |
31 | done | 32 | done |
32 | 33 | ||