Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 438964

Summary: sys-apps/openrc-0.10.5 writes to /lib64/rc/console/
Product: Gentoo Hosted Projects Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Schridde 2012-10-19 17:20:13 UTC
# ll /lib64/rc/console/
total 36
-rw-r--r-- 1 root root 31226 Oct 19 19:13 keymap
-rw-r--r-- 1 root root     1 Oct 19 19:13 unicode
(I detected this, because I use a writeable tmpfs overlay over / that is mounted to /run/rw, which contains the abovementioned directory after booting.)

I assume this should be in /run/openrc instead.

Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2012-10-22 15:24:16 UTC
(In reply to comment #0)
> # ll /lib64/rc/console/
> total 36
> -rw-r--r-- 1 root root 31226 Oct 19 19:13 keymap
> -rw-r--r-- 1 root root     1 Oct 19 19:13 unicode
> (I detected this, because I use a writeable tmpfs overlay over / that is
> mounted to /run/rw, which contains the abovementioned directory after
> booting.)

That is correct. This is done by the consolefont, keymaps and termencoding services. The idea is to save the console settings so we can load them before the sysinit runlevel executes on a reboot. They are loaded by init-early.sh.
 
> I assume this should be in /run/openrc instead.

No, because /run is not preserved across reboots.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-29 02:55:46 UTC
William says it's legit, just needs to be looked at again.