specify partition definition: support definition file for sles/suse

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-07-05 07:42:13 +00:00
parent 0ce9d811b9
commit 46531485db

View File

@ -218,7 +218,12 @@ sub subvars {
}
else{
$partcontent =~ s/\s$//;
$inc =~ s/#XCAT_PARTITION_START#[\s\S]*#XCAT_PARTITION_END#/$partcontent/;
if ($inc =~ /#XCAT_PARTITION_START#/){
$inc =~ s/#XCAT_PARTITION_START#[\s\S]*#XCAT_PARTITION_END#/$partcontent/;
}
elsif ($inc =~ /<!-- XCAT-PARTITION-START -->/){
$inc =~ s/<!-- XCAT-PARTITION-START -->[\s\S]*<!-- XCAT-PARTITION-END -->/$partcontent/;
}
}
}
}