Bug 468132

Summary: No DNS name resolution in %post
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: anaconda-maint-list
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: 2008-10-30 17:30:56 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:

Description Orion Poplawski 2008-10-23 03:21:25 UTC
Description of problem:

In my %post scripts, I restore state from a backup by mounting a NFS directory.  With current rawhide, this is now failing:

+ mount saga:/export/backup1 /data/backup1
mount.nfs: DNS resolution failed for saga: Temporary failure in name resolution

+ cat /etc/resolv.conf
search cora.nwra.com

I can work around this if needed, but this used to work fine with anything special.

Version-Release number of selected component (if applicable):
11.4.1.50

Comment 1 Orion Poplawski 2008-10-23 15:37:59 UTC
I think this is also breaking my "authconfig --ldaploadcacert=http:" kickstart line.  This is more problematic.

Comment 2 David Cantrell 2008-10-25 01:57:21 UTC
The %post scripts are executed in a chroot in /mnt/sysimage after the install completes.  What I imagine we should do is copy the installer copy of /etc/resolv.conf to /mnt/sysimage/resolv.conf.

Testing that now.

Comment 3 David Cantrell 2008-10-28 00:56:41 UTC
Copying the resolv.conf file used during installation over to /mnt/sysimage does the trick.  That's what we were doing in network.py, except we were writing out the data we had in the NetworkDevice object.  What we were lacking was the DNS information, so we were only writing out a search line.

Fix will be in anaconda-11.4.1.52-1.

Comment 4 Orion Poplawski 2008-10-30 17:30:56 UTC
Works for me.  Thanks!