Skip to content

openrc-shutdown: Support -f for hard shutdown/reboot - #1107

Open
werdahias wants to merge 1 commit into
OpenRC:masterfrom
werdahias:fix-reboot
Open

werdahias wants to merge 1 commit into
OpenRC:masterfrom
werdahias:fix-reboot

Conversation

@werdahias

Copy link
Copy Markdown
Contributor

sysvinit halt has a -f flag to force reboot/halt immediately. When switching /sbin/init from sysvinit to openrc init, the initial reboot hangs, since -f is not implemented.

Closes: #1105

sysvinit source reference: https://codeberg.org/thejessesmith/sysvinit/src/commit/a847a51f0ac53ce9f4dca8fa8bca5c7ebb766c04/src/halt.c#L355

@werdahias
werdahias force-pushed the fix-reboot branch 3 times, most recently from d952d50 to b63626a Compare October 28, 2026 20:42
@werdahias

Copy link
Copy Markdown
Contributor Author

I just tested the (updated) version, and this works in fixing #1105

sysvinit halt has a -f flag to force reboot/halt immediately.
When switching /sbin/init from sysvinit to openrc init, the initial
reboot hangs, since -f is not implemented.

Closes: OpenRC#1105
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.

Initial reboot with openrc-init hangs indefinitly

1 participant