[Bug 879605] Re: Specifying static network configuration in kickseed no longer works
Max
879605 at bugs.launchpad.net
Wed Apr 30 20:40:47 UTC 2014
It seems that since this fix, it is no longer possible to edit /etc/network/interfaces using commands in the %post section of the Kickstart file.
I used to be able to do that to add secondary interfaces and additional IP-addresses to the file, however now my changes changes seem to be overwritten.
Would it be possible to modify your solution so that it writes out
/etc/network/interfaces before post-installation commands are run?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to kickseed in Ubuntu.
https://bugs.launchpad.net/bugs/879605
Title:
Specifying static network configuration in kickseed no longer works
Status in “kickseed” package in Ubuntu:
Fix Released
Status in “kickseed” source package in Precise:
Fix Released
Status in “kickseed” source package in Quantal:
Fix Released
Status in “kickseed” source package in Raring:
Fix Released
Status in “kickseed” source package in Saucy:
Fix Released
Bug description:
[Impact] The supported "network --bootproto=static" Kickstart option is broken during installation, so it's hard for users to tell how to preseed a static network configuration using Kickstart.
[Test Case] Put a file somewhere web-server-accessible on your local network with "network --bootproto=static --hostname=statictest.pelham.vpn.ucam.org --ip=10.0.2.16 --netmask=255.255.255.0 --gateway=10.0.2.2 --nameserver=10.0.2.3" (this is suitable for my local network with KVM; adjust to match your local environment). Boot the installer with ks=http://url/to/that/file. Once installation finishes, you should have a static network configuration, not a dynamic one using DHCP. Note that this test needs to be carried out using an installer image rebuilt against the new kickseed; we'll make one available in -proposed at some point shortly after this kickseed change is accepted into -proposed.
[Regression Potential] Confined to Kickstart, since kickseed is used for nothing else. I considered backporting the compatibility fix to netcfg instead, but that would have had a larger regression potential.
Original report follows:
In previous Ubuntu versions you used to be able to start the network
installation using DHCP, and then switch over to a static network
configuration in your kickstart file, with a line like:
==
network --bootproto=static --ip=1.2.3.4 --netmask=255.255.255.0 --gateway=1.2.3.1 --nameserver=8.8.8.8 --hostname=dhcpunit
==
However in Ubuntu 11.10 that does not seem to work, and it is still
using DHCP after installation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kickseed/+bug/879605/+subscriptions
More information about the foundations-bugs
mailing list