From fba13de72f7c72663ccca9e1118bc2d7a658655e Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 13 Jun 2011 16:49:44 +0000 Subject: [PATCH] fix defect 3315725 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/rh/genimage | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index eb75bcc04..8b70bbd3d 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -1414,9 +1414,11 @@ sub generic_post { #This function is meant to leave the image in a state approxi print $cfgfile "#Dummy resolv.conf to make boot cleaner"; close($cfgfile); # TODO -# open($cfgfile,">","$rootimg_dir/etc/sysconfig/network-scripts/ifcfg-$prinic"); -# print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$prinic\n"; -# close($cfgfile); + if ($prinic) { + open($cfgfile,">","$rootimg_dir/etc/sysconfig/network-scripts/ifcfg-$prinic"); + print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$prinic\n"; + close($cfgfile); + } foreach (split /,/,$othernics) { if (/^$/) { next; } open($cfgfile,">","$rootimg_dir/etc/sysconfig/network-scripts/ifcfg-$_");