[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

running netcfg a second time for preseeding static network config



Hello,

Those who are installing servers by network boot and preseeding
will encounter the 'egg-chicken-problem' that you need a working
network to fetch network configuration over the network.

I have solve that problem by running netcfg a second time.

The great trick is in netcfg-st.post which has these lines of code:

| db_get netcfg-st/second_time
| if [ ${RET} = 'true' ] ; then
|   exec netcfg
| fi

That means when you have in your preseed.cfg a line like

| d-i     netcfg-st/second_time boolean true

then it make sense to have

| d-i     netcfg/choose_interface select auto
| d-i     netcfg/disable_dhcp     boolean true
| d-i     netcfg/get_ipaddress    string 172.24.0.27
| d-i     netcfg/get_netmask      string 255.255.255.192
| d-i     netcfg/get_nameservers  string 172.24.0.10
| d-i     netcfg/get_gateway      string 172.24.0.1

for setting a static IP address for a server-a-like computer.


The changes on the source code are commited to trunk.

It waits now on an upload of netcfg and with changes like

| --- installer/build/pkg-lists/netboot/i386.cfg  (revision 34699)
| +++ installer/build/pkg-lists/netboot/i386.cfg  (working copy)
| @@ -34,5 +34,6 @@
|  hw-detect
|  ethdetect
|  netcfg
| +netcfg-st
| 
|  acpi-modules-${kernel:Version} [2.6]

it becomes effective for everybody.


My questions is:

  When should I update the documentation regarding this new feature ?



Cheers
Geert Stappers

Attachment: signature.asc
Description: Digital signature


Reply to: