From f0eee42c06a2a1d5d41f0d72fc9dc77edff1d297 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 7 May 2008 19:20:47 +0000 Subject: [PATCH] -Prevent init scripts from complaining about resolv.conf git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1317 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/share/xcat/netboot/rh/genimage | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server-2.0/share/xcat/netboot/rh/genimage b/xCAT-server-2.0/share/xcat/netboot/rh/genimage index 52f146bc2..a10f6d96f 100755 --- a/xCAT-server-2.0/share/xcat/netboot/rh/genimage +++ b/xCAT-server-2.0/share/xcat/netboot/rh/genimage @@ -388,6 +388,9 @@ sub generic_post { #This function is meant to leave the image in a state approxi open($cfgfile,">","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/sysconfig/network"); print $cfgfile "NETWORKING=yes\n"; close($cfgfile); + open($cfgfile,">","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/resolv.conf"); + print $cfgfile "#Dummy resolv.conf to make boot cleaner"; + close($cfgfile); open($cfgfile,">","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/sysconfig/network-scripts/ifcfg-$prinic"); print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$prinic\n"; close($cfgfile);