summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index e845356a..83ce9ca9 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -1275,9 +1275,13 @@ if [ ! -z "$NETBOOT" ] ; then
# if there is a netboot installer tarball...
#
fetch_if_newer "$NETBOOT" "$URL"
- # try to extract, otherwise abort
sha256sum "$NETBOOT"
- tar -zxvf "$NETBOOT" || exit
+ # try to extract, otherwise clean up and abort
+ if ! tar -zxvf "$NETBOOT" ; then
+ echo "tarball seems corrupt; deleting it"
+ rm -f "$NETBOOT"
+ exit 1
+ fi
elif [ ! -z "$IMAGE" ] ; then
#
# if there is a CD image...