diff options
author | Daniel Baumann <daniel@debian.org> | 2013-01-02 10:34:19 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2013-01-02 10:34:19 +0100 |
commit | 1dbd997d9ddbf4f5da8842d382caa851efc8da4d (patch) | |
tree | b87b8101509789d47f7ef58df27ed85024891e7e /functions/defaults.sh | |
parent | 1c64392f338a26433d0c828738d6a4c20c07adce (diff) | |
download | vyos-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-x | functions/defaults.sh | 10 |
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}" |