Bug 1165547 - incomplete resolv.conf built by dracut.
Summary: incomplete resolv.conf built by dracut.
Status: RESOLVED FIXED
: 1165366 (view as bug list)
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: dracut maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-03 11:45 UTC by Per Jessen
Modified: 2020-04-03 10:41 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed patch (971 bytes, patch)
2020-03-03 12:08 UTC, Per Jessen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***