[stable-2.9] reboot - fix Void Linux (#70704) (#70917)

Add entry for appropriate commands for Void Linux
(cherry picked from commit 4cc4cebc97)

Co-authored-by: fosslinux <fosslinux@aussies.space>
pull/70851/head
Sam Doran 4 years ago committed by GitHub
parent 8870ea5b8c
commit 2a38a6cca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
bugfixes:
- reboot - Add support for the runit init system, used on Void Linux, that
does not support the normal Linux syntax.

@ -57,6 +57,7 @@ class ActionModule(ActionBase):
SHUTDOWN_COMMAND_ARGS = { SHUTDOWN_COMMAND_ARGS = {
'alpine': '', 'alpine': '',
'void': '-r +{delay_min} "{message}"',
'freebsd': '-r +{delay_sec}s "{message}"', 'freebsd': '-r +{delay_sec}s "{message}"',
'linux': DEFAULT_SHUTDOWN_COMMAND_ARGS, 'linux': DEFAULT_SHUTDOWN_COMMAND_ARGS,
'macosx': '-r +{delay_min} "{message}"', 'macosx': '-r +{delay_min} "{message}"',

Loading…
Cancel
Save