summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-09-14 14:30:48 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-09-14 14:30:48 +0400
commit391594a6024522b1a284711687833c938d50fc4c (patch)
treed524ec5cd70967d57f63de8bec8e7fd969d11572
parent0fa5d461732d95410c07fa36f4ffe44e0286c354 (diff)
downloadlive-391594a6024522b1a284711687833c938d50fc4c.tar.gz
Create checksum files automatically2014-10-08/netinst
-rwxr-xr-xprotostar10
1 files changed, 9 insertions, 1 deletions
diff --git a/protostar b/protostar
index 50af350..a9fbfc7 100755
--- a/protostar
+++ b/protostar
@@ -10,6 +10,7 @@ TMP="${TMP:-/var/tmp}"
DATE=$(date '+%Y-%m-%d-%H%M')
DIST="${DIST:-bok}"
+OUTDIR="${OUTDIR:-out}"
INSTALL_DIST="${INSTALL_DIST:-lacaille}"
REPO="${REPO:-http://apt.osdyson.org}"
@@ -354,6 +355,9 @@ title Dyson LiveCD and '${INSTALL_DIST}' installer, $DATE
GRUB
echo "Making final ${ISONAME}..."
+rm -rf "${OUTDIR}"
+mkdir -p "${OUTDIR}"
+cd "${OUTDIR}"
genisoimage \
-o "${ISONAME}" \
-b boot/grub/stage2_eltorito \
@@ -369,7 +373,11 @@ genisoimage \
-V "${ISOLABEL}" \
"${ROOT}"
-ls -lh "${ISONAME}"
+for m in md5 sha1 sha256; do
+ ${m}sum "${ISONAME}" > "${ISONAME}.$m"
+done
+
+ls -lh "${ISONAME}"*
exit 0