From: Joe Slater <jslater@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 1/1] sysvinit-inittab: start runlevel 5 after terminals
Date: Wed, 8 May 2013 13:11:57 -0700 [thread overview]
Message-ID: <1368043917-25050-1-git-send-email-jslater@windriver.com> (raw)
If xserver is started before getty is attached to
virtual terminals, the server might lose the ability
to accept keyboard input, so we go to runlevel 5 at the
very end of inittab.
---
.../recipes-core/sysvinit/sysvinit-inittab/inittab | 4 +++-
.../sysvinit/sysvinit-inittab_2.88dsf.bb | 6 +++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab/inittab b/meta/recipes-core/sysvinit/sysvinit-inittab/inittab
index 6abbdf4..519ae17 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab/inittab
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab/inittab
@@ -24,7 +24,9 @@ l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
-l5:5:wait:/etc/init.d/rc 5
+#
+# go into runlevel 5 ONLY after starting getty's
+#
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index 23c284d..d4cb6b9 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Inittab for sysvinit"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-PR = "r9"
+PR = "r10"
SRC_URI = "file://inittab"
@@ -45,6 +45,10 @@ EOF
done
echo "" >> ${D}${sysconfdir}/inittab
fi
+
+ # Going to runlevel 5 should be the last thing in inittab.
+ #
+ echo "l5:5:wait:/etc/init.d/rc 5" >> ${D}${sysconfdir}/inittab
}
pkg_postinst_${PN} () {
--
1.7.3.4
reply other threads:[~2013-05-08 20:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1368043917-25050-1-git-send-email-jslater@windriver.com \
--to=jslater@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox