On Fri, May 23, 2008 at 11:11:29AM +0100, Colin Topliss wrote:
1) Is there something that already exists that I can use to generate the config rather that writing my own script? 2) If not, do I need to generate a UNIQUE entry? 3) If I need the UNIQUE entry, now can I generate it?
I do the networking config in a pre-install script (that outputs a /tmp/profile/modified.xml file) and I don't have UNIQUE in there. A sample networking session looks like: <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>$DOMAIN</domain> <hostname>$HOSTNAME</hostname> <nameservers config:type="list"> <nameserver>$DNS1</nameserver> <nameserver>$DNS2</nameserver> </nameservers> </dns> <interfaces config:type="list"> <interface> <bootproto>static</bootproto> <device>eth0</device> <ipaddr>$IPADDR</ipaddr> <netmask>$NETMASK</netmask> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces> <managed config:type="boolean">false</managed> <modules config:type="list"> <module_entry> <device>static-0</device> <module></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>$GATEWAY</gateway> <netmask>-</netmask> </route> </routes> </routing> </networking> The variables above are replaced in the script with values passed (HOSTNAME, IPADDR) or values gathered from the dhcp info (NETMASK, GATEWAY, DNS*). -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com Marge: "Bart's so well behaved now, maybe you and I can have a night out?" Homer: "Ooh, let's go to the waterpark. My 10 year ban ended yesterday!" ==> Simpsons -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org