From fa2a1c8077d7835103f2412e3ef32947d1d988b2 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 30 Jul 2009 20:49:18 -0400 Subject: Use resolv.conf from dracut netboot before setting hostname. (#514801, ) --- rc.d/rc.sysinit | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1