I'm trying to find a way to disable IPv6 during either the preseeding process or by modifying the kernal boot line during the Ubuntu install. The end goal is for IPv6 to be automatically disabled for all of my Ubuntu installs.

Thus far I've tried the following:

1) Add "ipv6.blacklist=yes" to the kernel parameters (The line should read "... -- ipv6.blacklist=yes" afterwards) - I've tried placing this text in a variety of locations within my kernal boot line.

2) Add "ipv6.disable=1" to the kernal parameters - I've tried placing this text in a variety of locations within my kernal boot line.

Unless there's something I'm missing, I guess I'm going to have to create a post install script for this purpose =/.

Thanks,
-Snipe

TobiSGD

05-04-2012 12:56 PM

I don't know if the installer will notice which modules are blacklisted for the installers kernel. But if you want to disable IPv6 on the installed system just add

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac
blacklist ipv6

Any ideas? =/

Thanks,
-Snipe

TobiSGD

05-04-2012 09:32 PM

It may be possible that the Ubuntu kernel has the ipv6 drivers not compiled as a module, but inbuilt into the kernel. In that case I don't know how to disable IPv6.
Check the config of the installed kernel for that.

It may be possible that the Ubuntu kernel has the ipv6 drivers not compiled as a module, but inbuilt into the kernel. In that case I don't know how to disable IPv6.
Check the config of the installed kernel for that.

TobiSGD

05-04-2012 10:01 PM

On the installed system do a

Code:

grep CONFIG_IPV6 /boot/config

I don't have a Debian based system currently installed, so I don't know if the symlink /boot/config exists on those systems (I assume it does), so the name may possibly be /boot/config-KERNELVERSION.
If it delivers something like this

Code:

CONFIG_IPV6=m

then IPv6 is compiled as module and can bee disabled, if it is

Code:

CONFIG_IPV6=y

then the module is inbuilt.

Sniperm4n

05-04-2012 10:22 PM

Sigh

I ran the following command:

Code:

grep CONFIG_IPV6 /boot/config-2.6.32-38-server

and it returned:

Code:

DISABLE_IPV6=y

Am I officially out of options as far as disabling IPv6 via preseed? Can it still be run via a late_command post install script?

Thanks,
-Snipe

TobiSGD

05-04-2012 10:26 PM

The problem here is not preseeding, the problem is that I don't know how to disable a driver that is inbuilt into the kernel. Blacklisting won't work in that case.

Sniperm4n

05-07-2012 01:26 PM

Bummer, I'll see if I can accomplish this via a post-install Bash script. Thank you for your time Tobi!

-Snipe

Quote:

Originally Posted by TobiSGD
(Post 4670746)

The problem here is not preseeding, the problem is that I don't know how to disable a driver that is inbuilt into the kernel. Blacklisting won't work in that case.