Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: sh/
Date: Wed, 28 Feb 2018 18:45:55
Message-Id: 1519838695.1ab8541a6ccb9d72c6faeaf2d616fc49f6cdfaf6.williamh@OpenRC
1 commit: 1ab8541a6ccb9d72c6faeaf2d616fc49f6cdfaf6
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Wed Feb 28 17:24:55 2018 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 28 17:24:55 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=1ab8541a
7
8 init-early.sh.Linux.in: apply the selinux label to /dev/console early
9
10 /dev/console is relabelled later in the devfs init script, but by then we
11 have already missed some of the messages, so fix that label early.
12
13 sh/init-early.sh.Linux.in | 3 +++
14 1 file changed, 3 insertions(+)
15
16 diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in
17 index 1898c440..f07bc11b 100644
18 --- a/sh/init-early.sh.Linux.in
19 +++ b/sh/init-early.sh.Linux.in
20 @@ -33,6 +33,9 @@ else
21 kmode="-a"
22 fi
23
24 +# Set the SELinux label on console before everything so we dont lose output
25 +[ -x /sbin/restorecon ] && /sbin/restorecon -F /dev/console
26 +
27 # Try and set a font and as early as we can
28 if service_present "$RC_DEFAULTLEVEL" consolefont ||
29 service_present "$RC_BOOTLEVEL" consolefont; then