openwrt icon indicating copy to clipboard operation
openwrt copied to clipboard

busybox sysctl stops parsing .conf file after some error

Open brada4 opened this issue 8 months ago • 0 comments

Describe the bug

When uncommon errors are encountered parsing sysctl.conf the rest of configuration is ignored.

OpenWrt version

r28741-5ff7149a08

OpenWrt release

24.10-SNAPSHOT

OpenWrt target/subtarget

x86/64

Device

QEMU Standard PC (Q35 + ICH9, 2009)

Image kind

Official downloaded image

Steps to reproduce

Add following to /etc/sysctl.conf

 kernel.hostname = FAIL
 vm.mmap_rnd_bits = 1000
 kernel.hostname = PASS

Then run

sysctl -p
uname -n

Actual behaviour

FAIL is returned indicating parsing did not proceed past error

Expected behaviour

PASS is returned as the file got parsed completely

Additional info

Obviously procps-ng-sysctl works "as on any other linux"

Diffconfig


Terms

  • [x] I am reporting an issue for OpenWrt, not an unsupported fork.

brada4 avatar Jun 27 '25 06:06 brada4