summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
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:34:19 +0100
commit1dbd997d9ddbf4f5da8842d382caa851efc8da4d (patch)
treeb87b8101509789d47f7ef58df27ed85024891e7e /functions/defaults.sh
parent1c64392f338a26433d0c828738d6a4c20c07adce (diff)
downloadvyos-live-build-1dbd997d9ddbf4f5da8842d382caa851efc8da4d.tar.gz
vyos-live-build-1dbd997d9ddbf4f5da8842d382caa851efc8da4d.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/defaults.sh')
-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}"