Maybe from Linux 5.7+ sysctls can be set from Linux boot cmdline.
Description
Description
Details
Details
- Impact
- Normal
Related Objects
Related Objects
Event Timeline
Comment Actions
We shouldn't stop using /etc/sysctl.d for compatibility. I think the best way would be to create /etc/default/grub.d/40_sysctl.cfg with:
while read -r line; do if [ "$line" = "" ]; then continue fi if [[ "$line" =~ ^# ]]; then continue fi GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX sysctl.${line}" done < /etc/sysctl.d/30_security-misc.conf
Comment Actions
Something like that. Maybe covering all of /etc/sysctl.conf and
/etc/sysctl.d folder to GRUB_CMDLINE_LINUX expansion.
Comment Actions
And we also port to dracut which also does early sysctl loading.
Adding tons of sysctl to an already very long kernel command line (do we got the world record already :) seems excessive.
Since nobody is making the argument anymore, rejecting this ticket.