Skip to content

openrc-init: read sysvinit commands from /run/initctl#986

Merged
navi-desu merged 9 commits intoOpenRC:masterfrom
floppym:initctl
Apr 2, 2026
Merged

openrc-init: read sysvinit commands from /run/initctl#986
navi-desu merged 9 commits intoOpenRC:masterfrom
floppym:initctl

Conversation

@floppym
Copy link
Copy Markdown
Contributor

@floppym floppym commented Mar 12, 2026

This PR implements support for reading sysvinit commands from /run/initctl. This allows users to boot their system using openrc-init, but still allow them to control it using the traditional halt/poweroff/reboot commands from sysvinit without replacing them with symlinks (sys-apps/openrc[sysv-utils]).

Also included is a sizable refactor of code out of the main() function. If you would prefer to review that separately I can split it out.

floppym and others added 9 commits April 2, 2026 02:41
Rename the "default_runlevel" variable to "cmdline_runlevel" to make its
origin clear.

Ignore the command line when we receive a fifo request to transition to
single user mode. openrc-init provides no way to update the value after
the system has initially booted, so it's probably better to use the
rc.conf setting in that case.
Co-Authored-By: Mike Gilbert <floppym@gentoo.org>
@navi-desu
Copy link
Copy Markdown
Member

oh neat a rebase makes the whole thing come over again huh

@navi-desu navi-desu merged commit 4230515 into OpenRC:master Apr 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants