summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-01-02 10:34:19 +0100
committerDaniel Baumann <daniel@debian.org>2013-01-02 10:38:51 +0100
commitbfbd7af101f33c4ed621442790dbfbf9c102ddf9 (patch)
tree3624377c1071d15c78952d2be2371d12078cc8cf
parent7f50113e7472dcd6b6f85e438654efcf70a405bb (diff)
downloadvyos-live-build-bfbd7af101f33c4ed621442790dbfbf9c102ddf9.tar.gz
vyos-live-build-bfbd7af101f33c4ed621442790dbfbf9c102ddf9.zip
Defaulting to obsolete md5 for checksums instead of sha256 on debian, as debians cdrom-check in d-i only supports md5.
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 54a7d29f9..4eaed045b 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -875,7 +875,15 @@ Set_defaults ()
fi
# Setting checksums
- LB_CHECKSUMS="${LB_CHECKSUMS:-sha256}"
+ case "${LB_MODE}" in
+ progress-linux)
+ LB_CHECKSUMS="${LB_CHECKSUMS:-sha256}"
+ ;;
+
+ *)
+ LB_CHECKSUMS="${LB_CHECKSUMS:-md5}"
+ ;;
+ esac
# Setting compression
LB_COMPRESSION="${LB_COMPRESSION:-none}"