mk_mmc.sh: drop lib/distro.conf

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
master
Robert Nelson 5 years ago
parent 9c3b205a76
commit 6a193719c2

@ -1,14 +0,0 @@
#!/bin/bash
unset UBOOTWRAPPER
NETIMAGE="current"
NETINSTALL="initrd.gz"
case "${DISTARCH}-${debian_boot}" in
stretch-armhf-netboot|buster-armhf-netboot)
#http://ftp.us.debian.org/debian/dists/stretch/main/installer-armhf/
#http://ftp.us.debian.org/debian/dists/buster/main/installer-armhf/
HTTP_IMAGE="http://ftp.debian.org/debian/dists"
BASE_IMAGE="netboot"
;;
esac
#

@ -274,21 +274,9 @@ dl_kernel_image () {
echo "Using Kernel: ${ACTUAL_DEB_FILE}" echo "Using Kernel: ${ACTUAL_DEB_FILE}"
} }
remove_uboot_wrapper () {
echo "Note: NetInstall has u-boot header, removing..."
echo "-----------------------------"
dd if="${DIR}/dl/${DISTARCH}/${NETINSTALL}" bs=64 skip=1 of="${DIR}/dl/${DISTARCH}/initrd.gz"
echo "-----------------------------"
NETINSTALL="initrd.gz"
unset UBOOTWRAPPER
}
actually_dl_netinstall () { actually_dl_netinstall () {
${dl} --directory-prefix="${DIR}/dl/${DISTARCH}" "${HTTP_IMAGE}/${DIST}/main/installer-${ARCH}/${NETIMAGE}/images/${BASE_IMAGE}/${NETINSTALL}" ${dl} --directory-prefix="${DIR}/dl/${DISTARCH}" "${HTTP_IMAGE}/${DIST}/main/installer-${ARCH}/${NETIMAGE}/images/${BASE_IMAGE}/${NETINSTALL}"
MD5SUM=$(md5sum "${DIR}/dl/${DISTARCH}/${NETINSTALL}" | awk '{print $1}') MD5SUM=$(md5sum "${DIR}/dl/${DISTARCH}/${NETINSTALL}" | awk '{print $1}')
if [ "${UBOOTWRAPPER}" ] ; then
remove_uboot_wrapper
fi
} }
dl_netinstall_image () { dl_netinstall_image () {
@ -298,7 +286,11 @@ dl_netinstall_image () {
##FIXME: "network-console" support... ##FIXME: "network-console" support...
debian_boot="netboot" debian_boot="netboot"
. "${DIR}/lib/distro.conf"
NETIMAGE="current"
NETINSTALL="initrd.gz"
HTTP_IMAGE="http://ftp.debian.org/debian/dists"
BASE_IMAGE="netboot"
if [ -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" ] ; then if [ -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" ] ; then
rm -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" || true rm -f "${DIR}/dl/${DISTARCH}/${NETINSTALL}" || true

Loading…
Cancel
Save