I'm creating an xml file template to do automatic installation (which packages to install, security settings, network config, etc).
Only hostname/ip adress/netmask/route/domain are request via windows popups.
After filling in all the questions, the system boots with all network informations except gateway, and the hosts file that is not filled in correctly.
Meaning in file /etc/sysconfig/network/routes, there is not the wanted ip adress, but $gateway,
and in /etc/hosts, this is 127.0.0.2 toto.titi.fr toto
instdead of good ip adress (fqdn and localhosthame are ok).
in the xml file :
<hosts> part contains this :
#set $ikeys = $interfaces.keys()
#for $iface in $ikeys
#set $idata = $interfaces[$iface]
#if $idata["interface_type"].lower() in ["","na","bridge","bond"]