mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-23 18:03:51 +08:00
init-early.sh.Linux.in: apply the selinux label to /dev/console early
/dev/console is relabelled later in the devfs init script, but by then we have already missed some of the messages, so fix that label early.
This commit is contained in:
parent
038c03bef3
commit
1ab8541a6c
@ -33,6 +33,9 @@ else
|
||||
kmode="-a"
|
||||
fi
|
||||
|
||||
# Set the SELinux label on console before everything so we dont lose output
|
||||
[ -x /sbin/restorecon ] && /sbin/restorecon -F /dev/console
|
||||
|
||||
# Try and set a font and as early as we can
|
||||
if service_present "$RC_DEFAULTLEVEL" consolefont ||
|
||||
service_present "$RC_BOOTLEVEL" consolefont; then
|
||||
|
Loading…
Reference in New Issue
Block a user