2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-29 15:51:18 +00:00

add more output msg for packimage (#1622)

This commit is contained in:
penguhyang
2016-08-03 13:59:07 +08:00
committed by yangsong
parent 868cd3718e
commit 180c3fc0c7

View File

@@ -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 {