summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriele Giacone <1o5g4r8o@gmail.com>2014-06-17 19:46:29 +0200
committerHolger Levsen <holger@layer-acht.org>2014-06-17 19:49:34 +0200
commit5a38cd568dd798254db2a5d77ebfae455e9fb7ba (patch)
treec232e6cd41430918ff8aa2ae63bced432b874042
parent4b39614c202c1982ff98efc24976dfcf53003815 (diff)
downloadjenkins.debian.net-5a38cd568dd798254db2a5d77ebfae455e9fb7ba.tar.xz
md5sum iso images.
-rwxr-xr-xbin/g-i-installation.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 34b87b60..6d73a389 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -1077,7 +1077,8 @@ if [ ! -z "$IMAGE" ] ; then
fetch_if_newer "$IMAGE" "$URL"
# is this really an .iso?
if [ $(file "$IMAGE" | grep -cE '(ISO 9660|DOS/MBR boot sector)') -eq 1 ] ; then
- # yes, so let's mount it
+ # yes, so let's md5sum and mount it
+ md5sum $IMAGE
sudo mkdir -p $IMAGE_MNT
grep -q $IMAGE_MNT /proc/mounts && sudo umount -l $IMAGE_MNT
sleep 1