distro: rip out the whole MD5SUM/TEST_MD5SUM network bandwith is cheaper then me maintaining these...

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
master
Robert Nelson 5 years ago
parent 65738abb2a
commit 9e42b33054

@ -3,46 +3,36 @@
unset UBOOTWRAPPER unset UBOOTWRAPPER
case "${DISTARCH}-${debian_boot}" in case "${DISTARCH}-${debian_boot}" in
trusty-armhf-netboot) trusty-armhf-netboot)
#15-Apr-2014
#http://ports.ubuntu.com/dists/trusty/main/installer-armhf/ #http://ports.ubuntu.com/dists/trusty/main/installer-armhf/
NETIMAGE="20101020ubuntu318" NETIMAGE="current"
TEST_MD5SUM="0888e3e43b6eb93638101cbe0c7f0730"
HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists" HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists"
BASE_IMAGE="generic/netboot" BASE_IMAGE="generic/netboot"
NETINSTALL="initrd.gz" NETINSTALL="initrd.gz"
;; ;;
xenial-armhf-netboot) xenial-armhf-netboot)
#20-Apr-2016
#http://ports.ubuntu.com/dists/xenial/main/installer-armhf/ #http://ports.ubuntu.com/dists/xenial/main/installer-armhf/
NETIMAGE="20101020ubuntu451" NETIMAGE="current"
TEST_MD5SUM="5d3660f70577ee27e894b2623f0f6fc2"
HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists" HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists"
BASE_IMAGE="generic/netboot" BASE_IMAGE="generic/netboot"
NETINSTALL="initrd.gz" NETINSTALL="initrd.gz"
;; ;;
bionic-armhf-netboot) bionic-armhf-netboot)
#2018-04-25
#http://ports.ubuntu.com/dists/bionic/main/installer-armhf/ #http://ports.ubuntu.com/dists/bionic/main/installer-armhf/
NETIMAGE="20101020ubuntu543" NETIMAGE="current"
TEST_MD5SUM="358cbf828db6322a56c448222d1847ce"
HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists" HTTP_IMAGE="http://ports.ubuntu.com/ubuntu-ports/dists"
BASE_IMAGE="generic/netboot" BASE_IMAGE="generic/netboot"
NETINSTALL="initrd.gz" NETINSTALL="initrd.gz"
;; ;;
jessie-armhf-netboot) jessie-armhf-netboot)
#2018-06-19
#http://ftp.us.debian.org/debian/dists/jessie/main/installer-armhf/ #http://ftp.us.debian.org/debian/dists/jessie/main/installer-armhf/
NETIMAGE="20150422+deb8u5" NETIMAGE="current"
TEST_MD5SUM="f4b0a74e850cbfdb4caac2f748cea206"
HTTP_IMAGE="http://ftp.debian.org/debian/dists" HTTP_IMAGE="http://ftp.debian.org/debian/dists"
BASE_IMAGE="netboot" BASE_IMAGE="netboot"
NETINSTALL="initrd.gz" NETINSTALL="initrd.gz"
;; ;;
stretch-armhf-netboot) stretch-armhf-netboot)
#2019-10-08
#http://ftp.us.debian.org/debian/dists/stretch/main/installer-armhf/ #http://ftp.us.debian.org/debian/dists/stretch/main/installer-armhf/
NETIMAGE="20170615+deb9u7+b2" NETIMAGE="current"
TEST_MD5SUM="ba3036be463687930932387afff0df17"
HTTP_IMAGE="http://ftp.debian.org/debian/dists" HTTP_IMAGE="http://ftp.debian.org/debian/dists"
BASE_IMAGE="netboot" BASE_IMAGE="netboot"
NETINSTALL="initrd.gz" NETINSTALL="initrd.gz"

@ -287,20 +287,6 @@ actually_dl_netinstall () {
fi fi
} }
check_dl_netinstall () {
MD5SUM=$(md5sum "${DIR}/dl/${DISTARCH}/${NETINSTALL}" | awk '{print $1}')
if [ "x${TEST_MD5SUM}" != "x${MD5SUM}" ] ; then
echo "Note: NetInstall md5sum has changed: ${MD5SUM}"
echo "-----------------------------"
rm -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" || true
actually_dl_netinstall
else
if [ "${UBOOTWRAPPER}" ] ; then
remove_uboot_wrapper
fi
fi
}
dl_netinstall_image () { dl_netinstall_image () {
echo "" echo ""
echo "Downloading NetInstall Image" echo "Downloading NetInstall Image"
@ -311,7 +297,8 @@ dl_netinstall_image () {
. "${DIR}/lib/distro.conf" . "${DIR}/lib/distro.conf"
if [ -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" ] ; then if [ -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" ] ; then
check_dl_netinstall rm -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" || true
actually_dl_netinstall
else else
actually_dl_netinstall actually_dl_netinstall
fi fi

Loading…
Cancel
Save