Hello Uwe,
I attached two versions. The first one is the "source":
Lines beginning with an "@" define perl commands. A perl script parses
these lines an inserts some useful informations depending on the
distribution sles10 or sles11.
The second version shows the resulting networking section for sles11.
### VERSION 1 ###
<networking>
AUTO
<dns>
false
false
<domain>wdf.sap.corp</domain>
<hostname>$hostname</hostname>
<nameservers config:type="list">
@foreach nameservers
<nameserver>$address</nameserver>
@end
</nameservers>
<searchlist config:type="list">
<search>wdf.sap.corp</search>
<search>de.ibm.com</search>
<search>ibm.com</search>
</searchlist>
</dns>
<interfaces config:type="list">
@perl $i=0;
@foreach interfaces
<interface>
<bootproto>static</bootproto>
@perl if (substr($distribution,0,4) eq "sl10") {
<device>eth-id-$macaddress</device>
@perl } else {
<device>eth$i</device>
@perl }
@perl $i++;
<ipaddr>$ipaddr</ipaddr>
<netmask>$netmask</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
@end
</interfaces>
<managed config:type="boolean">false</managed>
<modules config:type="list">
<device>bus-vio-3000000a</device>
<module>ibmveth</module>
<options></options>
</modules>
<routing>
<routing>
false
<routes config:type="list">
<route>
<destination>default</destination>
<device>-</device>
<gateway>$gateway</gateway>
<netmask>-</netmask>
</route>
</routes>
</routing>
### VERSION 2 ###
<networking>
AUTO
<dns>
false
false
<domain>wdf.sap.corp</domain>
<hostname>ls3814</hostname>
<nameservers config:type="list">
<nameserver>11.17.210.88</nameserver>
</nameservers>
<searchlist config:type="list">
<search>my.company.corp</search>
</searchlist>
</dns>
<interfaces config:type="list">
<interface>
<bootproto>static</bootproto>
<device>eth0</device>
<ipaddr>10.17.205.167</ipaddr>
<netmask>255.255.254.0</netmask>
<startmode>auto</startmode>
<usercontrol>no</usercontrol>
</interface>
</interfaces>
<managed config:type="boolean">false</managed>
<modules config:type="list">
<device>bus-vio-3000000a</device>
<module>ibmveth</module>
<options></options>
</modules>
<routing>
false
<routes config:type="list">
<route>
<destination>default</destination>
<device>-</device>
<gateway>10.17.204.1</gateway>
<netmask>-</netmask>
</route>
/networking
Thanks a lot!
Bye, Eduard
2009/4/29 Uwe Gansert :
On Tuesday 28 April 2009 15:13:37 Eduard Diner wrote:
Looking in the /etc/hosts file on SLES 11 you can find a additional line:
127.0.0.2 hostName.domain hostName
On a SLES 10 based installation this line is not present. It looks
like some default behaviour changed with SLES 11.
But how can I avoid this in my autoyast file?
should not happen. Can you attach your networking section please?
--
ciao, Uwe Gansert
Uwe Gansert, Server Technologies Team
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Business: http://www.suse.de/~ug
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org