Mailinglist Archive: opensuse-autoinstall (47 mails)

< Previous Next >
Re: [opensuse-autoinstall]
  • From: Eduard Diner <eduard.diner@xxxxxxxxxxxxxx>
  • Date: Thu, 30 Apr 2009 10:22:59 +0200
  • Message-id: <365a6efe0904300122y4725dd62x18b948a1e3483df2@xxxxxxxxxxxxxx>
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>
<dhcp_options>
<dhclient_additional_options></dhclient_additional_options>
<dhclient_client_id></dhclient_client_id>
<dhclient_hostname_option>AUTO</dhclient_hostname_option>
</dhcp_options>
<dns>
<dhcp_hostname config:type="boolean">false</dhcp_hostname>
<dhcp_resolv config:type="boolean">false</dhcp_resolv>
<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">
<module_entry>
<device>bus-vio-3000000a</device>
<module>ibmveth</module>
<options></options>
</module_entry>
</modules>
<routing>
<routing>
<ip_forward config:type="boolean">false</ip_forward>
<routes config:type="list">
<route>
<destination>default</destination>
<device>-</device>
<gateway>$gateway</gateway>
<netmask>-</netmask>
</route>
</routes>
</routing>


### VERSION 2 ###
<networking>
<dhcp_options>
<dhclient_additional_options></dhclient_additional_options>
<dhclient_client_id></dhclient_client_id>
<dhclient_hostname_option>AUTO</dhclient_hostname_option>
</dhcp_options>
<dns>
<dhcp_hostname config:type="boolean">false</dhcp_hostname>
<dhcp_resolv config:type="boolean">false</dhcp_resolv>
<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">
<module_entry>
<device>bus-vio-3000000a</device>
<module>ibmveth</module>
<options></options>
</module_entry>
</modules>
<routing>
<ip_forward config:type="boolean">false</ip_forward>
<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 <ug@xxxxxxx>:
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx


--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >