$cmd was set to a tar command and then printed to indicate what was happenning in the output, however $cmd was not being used. The same command but missing the verbose option was retyped when it was actually being executed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8165 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4637b46cbd
commit
e541850588
@ -3883,9 +3883,9 @@ sub cpNetbootImages {
|
||||
mkdir($tmpDir);
|
||||
chdir($tmpDir);
|
||||
xCAT::SvrUtils::sendmsg("extracting netboot files from OS image. This may take about a minute or two...hopefully you have ~1GB free in your /tmp dir\n", $output_handler);
|
||||
my $cmd = "tar zxvf $srcDir/image.tgz";
|
||||
my $cmd = "tar zxf $srcDir/image.tgz";
|
||||
print "\n$cmd\n";
|
||||
if(system("tar zxf $srcDir/image.tgz")){
|
||||
if(system($cmd)){
|
||||
xCAT::SvrUtils::sendmsg([1,"Unable to extract $srcDir/image.tgz\n"], $output_handler);
|
||||
}
|
||||
# this has the big image and may take a while.
|
||||
|
Loading…
Reference in New Issue
Block a user