How to edit readonly sysctl.conf

Hi,
I need to edit some system variables. But I can not edit the readonly sysctl.conf file, although I use sudo command. I test it on ubuntu core 16. Or is there another way to edit system variables?

Thank you.

You should be able to drop files in /etc/sysctl.d, see sysctl.d manpage for details.

Thank you for your reply. It works.

If you don’t mind me asking, which parameter did you need to change?

We have landed some changes that will allow tweaking kernel.printk via snap set system .. and gadget detauls just recently, and I’m wondering what other settings people need to tweak.

well, it would be neat to be able to set sysctl values in general through a system config option to be able to set things for:
oom threshold, filesystem caching/flushing values, IO scheduler, network and firewall values as well as swappiness from the gadget for fine tuning the image towards specific hardware.