Bug 514801

Summary: Copy resolv.conf from dracut netboot
Product: [Fedora] Fedora Reporter: Warren Togami <wtogami>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-31 00:50:22 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:
Bug Depends On:    
Bug Blocks: 512800    

Description Warren Togami 2009-07-30 20:01:38 UTC
--- rc.sysinit.orig	2009-07-30 14:48:54.545395611 -0400
+++ rc.sysinit	2009-07-30 14:59:47.630395753 -0400
@@ -485,6 +485,9 @@
 		done
 	done
 
+        # Use resolv.conf passed by initramfs netboot
+        [ -f /dev/.initramfs/resolv.conf ] && cp /dev/.initramfs/resolv.conf /etc/
+
 	# In theory there should be no more than one network interface active
 	# this early in the boot process -- the one we're booting from.
 	# Use the network address to set the hostname of the client.  This

This patch copies resolv.conf from dracut netboot if it exists, allowing the following hostname setting to work.

Comment 1 Warren Togami 2009-07-30 20:02:34 UTC
Line wrapping munged the above, but it should be obvious what to do.