Preseeding/Kernal Boot Line (Ubuntu Server 10.04-4 LTS x64) - Disable IPv6?
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Preseeding/Kernal Boot Line (Ubuntu Server 10.04-4 LTS x64) - Disable IPv6?
Hi everyone,
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 =/.
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
Excellent, this is much more elegant than what I was about to attempt, thanks for your help once again Tobi! =)
-Snipe
Quote:
Originally Posted by TobiSGD
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
Bummer, this command just failed =/. Here's the error output:
[!!] Finish the installation
Failed to run preseeded command
Execution of preseeded command "echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf" failed with exit code 1.
I got a similar error when I tried adding the word string before in-target. Here's the command directly from the end of my preseed file:
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
Here are the contents of the modified blacklist.conf:
Code:
username@hostname:~$ sudo vim /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.
# evbug is a debug tool that should be loaded explicitly
blacklist evbug
# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd
# replaced by e100
blacklist eepro100
# replaced by tulip
blacklist de4x5
# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394
# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m
# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2
# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801
# replaced by p54pci
blacklist prism54
# replaced by b43 and ssb.
blacklist bcm43xx
# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps
# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi
# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp
# 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
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.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.