Bug 578060

Summary: Dracut cannot resolve dns and needs numeric ip address for nfs root
Product: [Fedora] Fedora Reporter: Ian Dall <ian>
Component: dracutAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: amcnabb, harald, jonathan, pbat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-005-5.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 537217 Environment:
Last Closed: 2010-10-27 22:54:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to parse /etc/nsswitch.conf properly. none

Description Ian Dall 2010-03-30 06:12:30 UTC
Created attachment 403412 [details]
Patch to parse /etc/nsswitch.conf properly.

+++ This bug was initially created as a clone of Bug #537217 +++

I'm PXE booting systems with an NFS root filesystem.  What I would expect to be able to do is something like:

append initrd=f12-x86_64-net/initrd.img root=nfs:fileserver:/potatoes/f12-x86_64-net

which fails.

Booting with rdbreak set and using the emergency shell and running

  ip -r route

shows ip is unable to resolve the name of the default route.

The problem is that on the ram disk, /lib/libnss_* includes lib/libnss_files-2.11.1.so,  lib/libnss_nisplus-2.11.1.so, lib/libnss_files.so.2 and      lib/libnss_nisplus.so.2, but NOT lib/libnss_mdns4_minimal.so.2 or lib/libnss_dns-2.11.1.so.

This in turn is due to the dracut nfs install mishandling the NOFOUND tag when it parses /etc/nsswitch.conf.

There will be no problem experienced if NOFOUND is not used, but the distributed nsswitch.conf does use NOTFOUND.

Patch attched.

Comment 1 Fedora Update System 2010-09-23 15:31:07 UTC
dracut-005-4.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/dracut-005-4.fc13

Comment 2 Fedora Update System 2010-09-23 15:32:36 UTC
dracut-005-4.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/dracut-005-4.fc12

Comment 3 Fedora Update System 2010-09-24 20:38:17 UTC
dracut-005-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/dracut-005-4.fc12

Comment 4 Fedora Update System 2010-10-27 22:53:03 UTC
dracut-005-5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2010-10-30 23:37:45 UTC
dracut-005-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.