Web lists-archives.com

Re: Question about kernel boot parameter




On 08-06-18, stuv wrote:
> Hi everyone,
> 
> I'm using a debian derivate of linux and i'm searching for a way to
> make permanent changes to the kernel boot parameters without GRUB or
> any other boot loader, i want to disable ipv6 permanently, when i do it
> over /init.d/modprobe.d the changes only last until the next reboot.
> 
> best regards.
> 

man sysctl
man sysctl.conf
man sysctl.d

and then read files /etc/sysctl.conf and files under /etc/sysctl.d/.
Those should give you enough examples. For your example, line you need
to add to some of those files, or even better new file under sysctl.d
with descriptive name for what will be done in it:

net.ipv6.conf.all.disable_ipv6 = 1