https://bugzilla.novell.com/show_bug.cgi?id=758539
https://bugzilla.novell.com/show_bug.cgi?id=758539#c0
Summary: autoyast forgets DNS settings in resolv.conf in stage
2.
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: All
OS/Version: openSUSE 12.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: AutoYaST
AssignedTo: ug@suse.com
ReportedBy: them4z@googlemail.com
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101
Firefox/11.0
When installing with autoyast (with keep_install_network; with sysvinit, but
unsure if this latter fact matters), /etc/resolv.conf will be empty when stage
2 comes up, resulting in various subsequent errors for profile content that
tries to use DNS (like <add-on>).
Workaround: Add the following script (which also verifies that the resolv.conf
was indeed empty):
---------- 8< ----------
<scripts>
<post-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<feedback config:type="boolean">false</feedback>
<filename>fixresolv</filename>
<interpreter>shell</interpreter>
true
<source><![CDATA[resolv=$(cat /etc/resolv.conf)
if [ -z "$resolv" ]; then
echo "# resolv.conf was empty, ftfy.
nameserver xxx.yyy.xxx.yyy" >> /etc/resolv.conf
fi
]]></source>
</script>
</post-scripts>
</scripts>
---------- >8 ----------
Reproducible: Always
Steps to Reproduce:
1. install with profile containing valid network settings like below
2. experience stage 2 not only firing, but also blowing up (;
Actual Results:
Installation fails due to empty /etc/resolv.conf (tested both [a] with static
network settings and explicit nameserver definition and [b] with dhcp-provided
network settings).
Expected Results:
/etc/resolv.conf should contain the nameserver specified in the network
settings.
network snippet of the (static) autoyast profile:
---------- 8< ----------
<networking>
true
<dns>
false
<domain>example.local</domain>
<hostname>new-and-shiny</hostname>
<nameservers config:type="list">
<nameserver>xxx.yyy.xxx.yyy</nameserver>
</nameservers>
auto
<searchlist config:type="list">
<search>example.local</search>
</searchlist>
false
</dns>
<ipv6 config:type="boolean">false</ipv6>
<managed config:type="boolean">false</managed>
<routing>
false
<routes config:type="list">
<route>
<destination>default</destination>
<device>-</device>
<gateway>xxx.yyy.xxx.yyy</gateway>
<netmask>-</netmask>
</route>
</routes>
</routing>
</networking>
---------- >8 ----------
installed yast packages on the autoyast client
---------- 8< ----------
new-and-shiny:~ # rpm -qa|grep yast|sort
autoyast2-installation-2.21.4-2.1.2.noarch
patterns-openSUSE-yast2_install_wf-12.1-25.21.1.x86_64
yast2-2.21.24-2.1.2.x86_64
yast2-add-on-2.21.6-1.1.noarch
yast2-bootloader-2.21.2-1.2.x86_64
yast2-core-2.21.7-2.2.3.x86_64
yast2-country-2.21.5-2.1.1.x86_64
yast2-country-data-2.21.5-2.1.1.x86_64
yast2-dbus-client-2.21.0-3.1.3.x86_64
yast2-firewall-2.21.1-2.1.1.noarch
yast2-hardware-detection-2.21.0-2.1.3.x86_64
yast2-installation-2.21.28-125.1.noarch
yast2-ldap-2.21.1-3.1.2.x86_64
yast2-ldap-client-2.21.11-2.1.1.noarch
yast2-libyui-2.21.1-3.1.2.x86_64
yast2-mail-2.21.1-2.1.1.noarch
yast2-mouse-2.21.0-2.1.1.x86_64
yast2-ncurses-2.21.4-3.1.3.x86_64
yast2-ncurses-pkg-2.21.2-1.1.2.x86_64
yast2-network-2.21.8-2.1.1.x86_64
yast2-ntp-client-2.21.1-2.1.1.noarch
yast2-online-update-2.21.4-2.1.1.noarch
yast2-packager-2.21.22-1.1.1.x86_64
yast2-pam-2.21.0-2.1.1.noarch
yast2-perl-bindings-2.19.1-9.1.4.x86_64
yast2-pkg-bindings-2.21.11-2.1.3.x86_64
yast2-runlevel-2.21.3-2.1.1.noarch
yast2-schema-2.18.2-11.1.1.noarch
yast2-security-2.21.6-2.1.1.noarch
yast2-slp-2.21.0-2.1.2.x86_64
yast2-storage-2.21.14-1.1.1.x86_64
yast2-trans-en_US-2.21.0-57.54.1.noarch
yast2-trans-stats-2.19.0-7.1.3.noarch
yast2-transfer-2.21.0-3.1.2.x86_64
yast2-update-2.21.1-2.1.1.x86_64
yast2-users-2.21.9-1.2.x86_64
yast2-xml-2.16.1-65.1.3.x86_64
yast2-ycp-ui-bindings-2.21.2-3.1.3.x86_64
---------- >8 ----------
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.