From cf9050c8b3ea8a1761e026752428e9500abcd19e Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 5 Nov 2012 08:29:42 +0000 Subject: [PATCH] fix partition script error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index ec7d6e736..9b1c41399 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -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";