Commit 6e903d74 authored by Mike Hibler's avatar Mike Hibler

Remove any imagezip.stat file before we execute the command.

The "basic shell sleezy trick" we do only creates that file if the
imagezip fails. However, if it succeeded but there happened to be
an imagezip.stat file left-over from a previous run, we would think
we failed. This would only be a problem when taking images from
somewhere other than in an MFS (e.g., taking an image-backed data
set image from the node itself).
parent 78d125d0
...@@ -765,6 +765,9 @@ sub process_image($) ...@@ -765,6 +765,9 @@ sub process_image($)
exit(4); exit(4);
} }
# XXX make sure there is no stale imagezip.stat file
unlink("$localdir/imagezip.stat");
if (mysystem("$cmd")) { if (mysystem("$cmd")) {
$retval = $?; $retval = $?;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment