aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-07-30 20:49:18 -0400
committerBill Nottingham <notting@redhat.com>2009-07-30 20:49:18 -0400
commitfa2a1c8077d7835103f2412e3ef32947d1d988b2 (patch)
tree8fce54d584cb278ec4cb8ca552c37e80b58945e0 /rc.d/rc.sysinit
parent6d4f97d13af4366db5d8f44d684f5cdc716dbbe9 (diff)
downloadinitscripts-fa2a1c8077d7835103f2412e3ef32947d1d988b2.tar
initscripts-fa2a1c8077d7835103f2412e3ef32947d1d988b2.tar.gz
initscripts-fa2a1c8077d7835103f2412e3ef32947d1d988b2.tar.bz2
initscripts-fa2a1c8077d7835103f2412e3ef32947d1d988b2.tar.xz
initscripts-fa2a1c8077d7835103f2412e3ef32947d1d988b2.zip
Use resolv.conf from dracut netboot before setting hostname. (#514801, <wtogami@redhat.com>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1f40657c..01b5376f 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -490,6 +490,9 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
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