fix partition script error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
886bb5145f
commit
cf9050c8b3
@ -215,7 +215,7 @@ sub subvars {
|
||||
if ($scriptflag){
|
||||
#for redhat/sl/centos/kvm/fedora
|
||||
if ($inc =~ /#XCAT_PARTITION_START#/) {
|
||||
my $tempstr = "%inlcude /tmp/partitionfile\n";
|
||||
my $tempstr = "%include /tmp/partitionfile\n";
|
||||
$inc =~ s/#XCAT_PARTITION_START#[\s\S]*#XCAT_PARTITION_END#/$tempstr/;
|
||||
#modify the content in the file, and write into %pre part
|
||||
$partcontent = "cat > /tmp/partscript << EOFEOF\n" . $partcontent . "\nEOFEOF\n";
|
||||
|
Loading…
Reference in New Issue
Block a user