The workflow of the installation is customized via the control file, and below we have the principal steps concerning network configuration:
- SLE (in registration, addons or disks activation)
- openSUSE (only in addons or disks activation)
- network_finish -> save_network
Note: If you are interested in knowing more about the installation process check this documentation.
As the documentation of the project explains, it is the very early part of the SuSE Installation before YaST runs which means that it is the first one responsible for the network config.
We can pass many options to the installation process that will be parsed by linuxrc configuring our interfaces according to that options, or forwarding the given information through the install.inf file.
By default linuxrc does not configure any interface except in the case that we
specify some special options as for example enabling vnc, ssh or
with the ifcfg option
ifcfg=*=dhcp. If any of these options is given, linuxrc
will create a ifcfg file per interface with these options:
BOOTPROTO='dhcp' STARTMODE='auto' DHCLIENT_SET_HOSTNAME='yes'
Or a static config if it is specified so by ifcfg option, for example:
Will create ifcfg-eth0 with:
BOOTPROTO='static' STARTMODE='auto' IPADDR='192.168.122.100/24' DHCLIENT_SET_HOSTNAME='yes'
default 192.168.122.1 - eth0
This client will try to configure dhcp in all the connected cards that haven't been configured yet but only in the case that linuxrc has not activated one previously (i.e. with some parameter that implies a remote connection).
In case that the network was not configured then the lan client will be launched after the welcome dialog as you can see here otherwise the client will be skipped.
Manual Configuration (lan client)
In some scenarios, special network configuration is needed, i.e:
- Network storage environment
- Need of a particular vlan
- Addons media not available for the configured network.
- Wrong configuration
For these reasons, there are some places during the installation that allow us to launch the network configuration client.
- registration (only in SLE)
This step is when the configuration is really copied from the running
system to the installed one. This client calls more specialized clients to
procceed with the configuration, in case of networking it will call
network_finish which will call