From 180c3fc0c7fbbc7dac5c30b9d4b4ed08e3a9e631 Mon Sep 17 00:00:00 2001 From: penguhyang Date: Wed, 3 Aug 2016 13:59:07 +0800 Subject: [PATCH] add more output msg for packimage (#1622) --- xCAT-server/lib/xcat/plugins/packimage.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index 296ede256..6d6518df7 100755 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -419,7 +419,7 @@ sub process_request { unlink("$destdir/rootimg.gz"); unlink("$destdir/rootimg.sfs"); - $callback->({ info => ["compress method:$method"] }); + $callback->({ info => ["archive method:$method"] }); if ($method =~ /cpio/) { my $compress = "gzip"; @@ -428,6 +428,7 @@ sub process_request { if ($ispigz == 0) { $compress = "pigz"; } + $callback->({ info => ["compress method:$compress"] }); if (!$exlistloc) { $excludestr = "find . -xdev -print0 | cpio -H newc -o -0 | $compress -c - > ../rootimg.gz"; } else { @@ -453,6 +454,7 @@ sub process_request { return 1; } } + $callback->({ info => ["compress method:$compress"] }); if (!$exlistloc) { $excludestr = "find . -xdev -print0 | tar --selinux --xattrs-include='*' --null -T - -c | $compress -c - > ../rootimg.tgz"; } else {