Mailinglist Archive: opensuse-autoinstall (56 mails)

< Previous Next >
[opensuse-autoinstall] no nameserver entry in resolv.conf
  • From: Thomas Vogt <tv@xxxxxxxxx>
  • Date: Tue, 29 Jan 2008 12:05:12 +0100
  • Message-id: <479F0868.6080506@xxxxxxxxx>
Hello

Is there a way to add nameserver values to the resolv.conf with
autoyast.xml?
After the installation of OpenSuSE 10.3 (i386) with autoyast my
resolv.conf is always empty. Everything else works fine.

XML config:

<dns>
<dhcp_hostname config:type="boolean">false</dhcp_hostname>
<dhcp_resolv config:type="boolean">false</dhcp_resolv>
<domain>mydomain</domain>
<hostname>myhostname</hostname>
<nameservers config:type="list">
<nameserver>1.2.3.4</nameserver>
<nameserver>1.2.3.5</nameserver>
</nameservers>
</dns>

I also tried it with a post-script but with no luck.

<scripts>
<post-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
<filename>myscript</filename>
<interpreter>shell</interpreter>
<location></location>
<network_needed config:type="boolean">true</network_needed>
<source><![CDATA[shell
#!/bin/sh
# Sort out resolv.conf
cat > /etc/resolv.conf <<EOF
nameserver 1.2.3.4
nameserver 1.2.3.5
EOF
]]></source>
</script>
</post-scripts>
</scripts>

Any idea?

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

< Previous Next >