shoober420
When i try to use my custom sysctl.conf file in Obarun, my computer will fail to boot. The cursor will stay blinking after “[Starts stage1 process...]”. When putting the default sysctl.conf file back in the directory, I can boot again. It seems any additional setting besides default will make my machine unbootable. No matter what setting it is, any additional setting will have this effect. I made my sysctl.conf file executable too (chmod +x).
negative
/etc/sysctl.conf ? or /etc/sysctl.d
i have always had something on /etc/sysctl.conf and that has not been a problem.
shoober420
I’m putting my custom sysctl.conf file in the /etc directory, not the sysctl.d directory.
eric
The system-systctl service launch the sysctl program without any arguments. According to the sysctl manpage, by default it try to read and parse the /etc/sysctl.conf file.
So, if you rename this file or try to use your own with a different name it will not work.
You have three solutions for that.
First, use the original one and edit it to suit your needs.
Second, create a new one replacing the original one by your own but with the same name.
Third, rename the original sysctl.conf to something like sysctl.conf.bak create a symlink named /etc/sysctl.conf pointing to your file e.g /etc/my_sysctl.conf. Now you can switch between your file and the original one just changing the target of the symlink.
Also, you have a variable at /etc/66/boot.conf called SYSCTL, set it to no to not use the sysctl program at all.
Note: you don't need to make the /etc/sysctl.conf file executable. It's a configuration file, a permissions as 0644 is sufficient.
shoober420
So I have the file names correctly and located in the right directory, it’s just if I add my settings to it, that’s when I stall out. I even copied and pasted my sysctl.conf, put hashes in front of every line except the default Obarun settings, just to verify. If I even remove one hash for a single one of my settings, the login won’t appear.
eric
so, to debug it, look the log of the boot at /run/66/log/0/current file.
negative
im curious, how are you installing Obarun? i know im installing it as a minimal-manual install, but not encountered obarun having a default /etc/sysctl.conf nor the files and folders you mention when doing the syslinux boot.
banned_9-26-2021
This file and sysctl itself as well as a whole bunch of utilities belong to procps-ng which in turn is part of the bundle called base.
Base in arch and obarun are nearly the same.
shoober420
I use the minimal installation. There’s for sure a default sysctl.conf that comes with my Obarun. I used the 09-01-2020 live iso. You can actually view it for yourself if you download that live iso and search the /etc directory.
negative
in anycase, i always add my own sysctl.conf using my unattended install script and i dont have problems caused by using one like you stated.