Skip to content

OpenRC: sysctl Call in Startup Scripts is Incompatible with Toybox (sysctl: Unknown option 'system') #947

@Climber1987muc

Description

@Climber1987muc

Hello,

I am utilizing OpenRC in a Yocto environment that relies on Toybox as my minimalist utility set. I am observing a failure during system startup where the routine for loading kernel parameters is failing. This is preventing my settings from /etc/sysctl.conf or related configuration files from being correctly applied.

Error Message

The following message is logged during the boot process:

sysctl: Unknown option 'system' (see "sysctl --help")

  • Unable to configure some kernel parameters
    Root Cause of the Conflict

The issue is that an OpenRC startup script I am using attempts to call sysctl using a non-standard subcommand:

The script likely contains the call sysctl system.

The minimalist Toybox sysctl applet I am relying on does not support the system argument.

Suggested Solution

I would request that you update the relevant script(s) to use the Toybox-compatible, standard command for loading kernel parameters from configuration files:

Change the call from:

sysctl system

to the compatible command:

sysctl -p
Thank you for your time and help in resolving this issue that I am encountering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions