Bug 1165547

Summary: incomplete resolv.conf built by dracut.
Product: [openSUSE] openSUSE Distribution Reporter: Per Jessen <per>
Component: OtherAssignee: dracut maintainers <dracut-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: daniel
Version: Leap 15.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: proposed patch

Description Per Jessen 2020-03-03 11:45:20 UTC
I've installed 15.2 on an NFS root - when I boot it, I always end up in the emergency shell because it could not be mounted.  After some debugging I have determined this is because there is no "nameserver x.x.x.x" directive in /etc/resolv.conf. 

The problem is - I believe - in dracut module 35network-legacy, ifup.sh.

Look at function dhcp_wicked_apply, line 75. A "nameserver" directive is only added if an existing file is being edited, not when creating the temporary file.
Comment 1 Per Jessen 2020-03-03 11:50:39 UTC
Maybe take a look at module 40network/ifup.sh line 138 (dracut 044.2) to compare.
Comment 2 Per Jessen 2020-03-03 12:08:52 UTC
Created attachment 831785 [details]
proposed patch

I've tested this on my 15.2 systems with root on NFS.
Comment 3 Daniel Molkentin 2020-03-23 11:50:43 UTC
This should be fixed now. Similar patch is in SUSE/049 and SUSE/050 which are on their way to 15.2/TW.
Comment 4 Per Jessen 2020-04-02 12:46:25 UTC
Looking at the installed system, it looks good, but I think the installer also needs updating.
Comment 5 Per Jessen 2020-04-03 10:41:01 UTC
*** Bug 1165366 has been marked as a duplicate of this bug. ***