Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400921 - sys-apps/openrc-0.9.8.2: /etc/init.d/termencoding shouldn't "need root"
Summary: sys-apps/openrc-0.9.8.2: /etc/init.d/termencoding shouldn't "need root"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 399185
  Show dependency tree
 
Reported: 2012-01-26 14:02 UTC by Maxim Kammerer
Modified: 2012-02-10 17:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Kammerer 2012-01-26 14:02:06 UTC
I think it should be at most "use root", for writing to /lib/rc/console only after root has been remounted rw (if at all).

/etc/init.d/root doesn't always work well for ro / (e.g., when mtab is a symlink, and root is on loop), so it makes sense to remove root from the boot runlevel, without other services bringing it up unnecessarily.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-09 09:33:34 UTC
I think we can change that to just be 'need udev' and run that script much earlier.

Any other opinions on this bug?
Comment 2 William Hubbs gentoo-dev 2012-02-10 14:37:06 UTC
(In reply to comment #1)
> I think we can change that to just be 'need udev' and run that script much
> earlier.

Looking at the termencoding script, I don't believe we can move it to the sysinit runlevel. Also, I wouldn't be comfortable putting "need udev" in it because that forces openrc systems to have udev installed.

But I can see changing "need root" to "use root" as requested.

This should be easy to do before 0.9.9 so I'm adding it to the tracker.
Comment 3 William Hubbs gentoo-dev 2012-02-10 17:19:12 UTC
The suggested fix has been checked into git as commit 94661b1.

Thanks for the report.