Add one line "STARMODE=auto" in the ifcfg-$nic file, which can configure the routes following the "routes" file on SUSE.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-04-06 06:45:36 +00:00
parent 0e32272c61
commit 68904a9cea

View File

@ -1148,12 +1148,12 @@ 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);
open($cfgfile,">","$rootimg_dir/etc/sysconfig/network/ifcfg-$prinic");
print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$prinic\n";
print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$prinic\nSTARTMODE=auto\n";
close($cfgfile);
foreach (split /,/,$othernics) {
if (/^$/) { next; }
open($cfgfile,">","$rootimg_dir/etc/sysconfig/network/ifcfg-$_");
print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$_\n";
print $cfgfile "ONBOOT=yes\nBOOTPROTO=dhcp\nDEVICE=$_\nSTARTMODE=auto\n";
close($cfgfile);
}
open($cfgfile,">>","$rootimg_dir/etc/securetty");