Add non-free ISO support

This commit is contained in:
Jeremy Gardais 2019-02-18 10:18:19 +01:00
parent dcf134b429
commit 6b6a7db739
1 changed files with 11 additions and 2 deletions

View File

@ -49,8 +49,12 @@ fi
DEBIAN_VERSION_NAME="stretch"
## ISO to download and use
### Can be dvd, net, netinst or mini
DEBIAN_ISO_TYPE="netinst"
### Can be:
### dvd
### net, netinst
### non-free, firm, firmware
### mini
DEBIAN_ISO_TYPE="firm"
# Define URL according to specified release name {{{
case "${DEBIAN_VERSION_NAME}" in
@ -59,11 +63,13 @@ case "${DEBIAN_VERSION_NAME}" in
DEBIAN_ISO_DVD_URL="https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-${DEBIAN_VERSION_NB}-amd64-DVD-1.iso"
DEBIAN_ISO_NETINST_URL="https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-${DEBIAN_VERSION_NB}-amd64-netinst.iso"
DEBIAN_ISO_NONFREE_URL="http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/archive/9.7.0+nonfree/amd64/iso-cd/firmware-9.7.0-amd64-netinst.iso"
DEBIAN_ISO_MINI_URL="http://ftp.fr.debian.org/debian/dists/${DEBIAN_VERSION_NAME}/main/installer-amd64/current/images/netboot/mini.iso"
;;
"testing" | "buster" | "unstable" | "sid")
DEBIAN_ISO_DVD_URL="https://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/debian-testing-amd64-DVD-1.iso"
DEBIAN_ISO_NETINST_URL="https://cdimage.debian.org/cdimage/daily-builds/daily/current/amd64/iso-cd/debian-testing-amd64-netinst.iso"
DEBIAN_ISO_NONFREE_URL="http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/weekly-builds/amd64/iso-cd/firmware-testing-amd64-netinst.iso"
DEBIAN_ISO_MINI_URL="http://ftp.fr.debian.org/debian/dists/${DEBIAN_VERSION_NAME}/main/installer-amd64/current/images/netboot/mini.iso"
;;
* )
@ -82,6 +88,9 @@ case "${DEBIAN_ISO_TYPE}" in
net | netinst )
USE_DEBIAN_ISO="${DEBIAN_ISO_NETINST_URL}"
;;
non-free | firm | firmware )
USE_DEBIAN_ISO="${DEBIAN_ISO_NONFREE_URL}"
;;
mini )
USE_DEBIAN_ISO="${DEBIAN_ISO_MINI_URL}"
;;