From 127313aa163d735fed1688508d3a7395f8b35e6d Mon Sep 17 00:00:00 2001 From: daniceexi Date: Sun, 14 Dec 2014 05:18:55 -0500 Subject: [PATCH] defect 4467: In Template.pm, fix the issue that added a emptry line at the head of the parition script which causes the partition script cannot find correct shell interpreter --- 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 fe202fe3a..84efc787e 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -272,7 +272,7 @@ sub subvars { if ($partitionfile && $doneincludes) { #the content of the specified file is a script which can write partition definition into /tmp/partitionfile # split the partition file out from the $inc - ($inc, $partcontent) = split(/FFFFFFFFFFFFPARTITIONFILESTART/, $inc); + ($inc, $partcontent) = split(/FFFFFFFFFFFFPARTITIONFILESTART\n/, $inc); if ($scriptflag){ # since the whole partition file needs be packaged in %pre first and generate an executable file at running time, # all the special chars like ',",%,\ need be kept, we have to use the base64 coding to code it and put it in