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