Red Hat Bugzilla – Bug 468132
No DNS name resolution in %post
Last modified: 2008-10-30 13:30:56 EDT
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
I can work around this if needed, but this used to work fine with anything special.
Version-Release number of selected component (if applicable):
I think this is also breaking my "authconfig --ldaploadcacert=http:" kickstart line. This is more problematic.
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.
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-184.108.40.206-1.
Works for me. Thanks!