summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-01-02 10:34:19 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:04 +0200
commitbcab60fdf7700a8b3f174da4f93f05c03344055e (patch)
treeb87b8101509789d47f7ef58df27ed85024891e7e /functions
parent07fb58ba5283e2d11f746530ace303fd546d724c (diff)
downloadvyos-live-build-bcab60fdf7700a8b3f174da4f93f05c03344055e.tar.gz
vyos-live-build-bcab60fdf7700a8b3f174da4f93f05c03344055e.zip
Defaulting to obsolete md5 for checksums instead of sha256 on debian, as debians cdrom-check in d-i only supports md5.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index bd68bb42e..b76809a72 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -860,7 +860,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}"