diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index 1a4d877ef..b157b6c39 100644 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -273,7 +273,7 @@ sub process_request { if ($includestr) { system("$includestr >> /tmp/xcat_packimg.txt"); } - $excludestr =~ "cat /tmp/xcat_packimg.txt|cpio -dump $temppath"; + $excludestr = "cat /tmp/xcat_packimg.txt|cpio -dump $temppath"; } elsif ($method =~ /nfs/) { $excludestr = "touch ../rootimg.nfs"; } else {