diff options
author | Bill Nottingham <notting@redhat.com> | 2009-07-30 20:49:18 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-07-30 20:49:18 -0400 |
commit | fa2a1c8077d7835103f2412e3ef32947d1d988b2 (patch) | |
tree | 8fce54d584cb278ec4cb8ca552c37e80b58945e0 /rc.d/rc.sysinit | |
parent | 6d4f97d13af4366db5d8f44d684f5cdc716dbbe9 (diff) | |
download | initscripts-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-x | rc.d/rc.sysinit | 3 |
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 |