From 231330fdef7ad516c21824f3b867f27aebfa109f Mon Sep 17 00:00:00 2001 From: Gardais Jeremy Date: Fri, 29 Jul 2016 12:15:03 +0200 Subject: [PATCH] scripts now support Debian version since oldStable (wheezy) until it's LTS --- scripts/README.md | 8 ++++---- scripts/download_debian.sh | 13 +++++++------ scripts/make_debian_initrd_with_firmware.sh | 4 ++-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index 5cc8004..60d4fe6 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -15,9 +15,9 @@ Set of scripts to download and generate necessary files to allow differents GNU/ ## Scripts list ### download_debian.sh -The script will provide netboot installers for all Debian (>=Stable) for both **i386** and **amd64** : +The script will provide netboot installers for all Debian (>=oldStable) for both **i386** and **amd64** : * Store the files to **/var/lib/tftpboot** (default). - * Download Debian Linux kernel and initrd files for all Debian distributions (Stable : **Jessie**; Testing : **Stretch**; Unstable : **Sid**) and for **i386** and **amd64** architectures. + * Download Debian Linux kernel and initrd files for all Debian distributions (Stable : **Jessie**; Testing : **Stretch**; oldStable : **Wheezy**; Unstable : **Sid**) and for **i386** and **amd64** architectures. * Offer an example menu file to use with a TFTP server (default_path/installer/debian/menu.cfg.example). ### download_ubuntu.sh @@ -27,10 +27,10 @@ The script will provide netboot installers for the latest LTS and latest advance * Make a symlink to access to the LTS (default_path/installer/ubuntu/lts) instead of it's codename. ### make_debian_initrd_with_firmware.sh -The script will provide Debian's netboot installers with **additionnals firmwares** for all Debian (>=Stable) for **amd64** only : +The script will provide Debian's netboot installers with **additionnals firmwares** for all Debian (>=oldStable) for **amd64** only : * Store the files to **/var/lib/tftpboot** (default). * Store temp files to **/tmp/tmp.XXXXXXXXXX** (with `mktemp`). - * Download Debian's initrd files for all Debian distributions (Stable : **Jessie**; Testing : **Stretch**; Unstable : **Sid**) for **amd64** architecture only. + * Download Debian's initrd files for all Debian distributions (Stable : **Jessie**; Testing : **Stretch**; oldstable : **Wheezy**; Unstable : **Sid**) for **amd64** architecture only. * Download additionnals firmwares : * **bnx2** : For Broadcom NetXtremeII network adapters. * **linux-nonfree** : For Tigon network adapters. diff --git a/scripts/download_debian.sh b/scripts/download_debian.sh index 743e167..fe11bef 100755 --- a/scripts/download_debian.sh +++ b/scripts/download_debian.sh @@ -1,10 +1,11 @@ #!/bin/bash # This script do the following: -# Download Debian Stable (jessie) -# Download Debian Testing (stretch) -# Download Debian Unstable (sid) -# Make an PXE's config file (aka menu.cfg) +# Download Debian Stable (Jessie) +# Download Debian Testing (Stretch) +# Download Debian oldStable (Wheezy) +# Download Debian Unstable (Sid) +# Make an PXE's config file (aka menu.cfg) TFTP_ROOT="/var/lib/tftpboot" @@ -12,7 +13,7 @@ TFTP_ROOT="/var/lib/tftpboot" CONFIG_PXE="${TFTP_ROOT}/installer/debian/menu.cfg.example" rm -f ${CONFIG_PXE} && touch ${CONFIG_PXE} -for DISTRO in jessie stretch sid; do # For ALL Debian's version +for DISTRO in jessie stretch wheezy sid; do # For ALL Debian's version for ARCH in amd64 i386; do # For all classic architecture # Config file echo "label install" >> "${CONFIG_PXE}" @@ -44,7 +45,7 @@ done # Config file /bin/cat >> "${CONFIG_PXE}" << EOF label mainmenu - menu label ^Back.. + menu label ^Back... menu exit EOF diff --git a/scripts/make_debian_initrd_with_firmware.sh b/scripts/make_debian_initrd_with_firmware.sh index e43f7a2..f2fde08 100755 --- a/scripts/make_debian_initrd_with_firmware.sh +++ b/scripts/make_debian_initrd_with_firmware.sh @@ -1,14 +1,14 @@ #!/bin/bash # This script do the following: -# Download Debian Initrd for Jessie, Stretch and Sid +# Download Debian Initrd for Jessie, Stretch, Wheezy and Sid # Download firmwares: # bnx2 # all non-free (for tigon) # Extract all downloaded files # Make a new initrd with the previous firmwares -for DISTRO in jessie stretch sid; do # For ALL Debian's version +for DISTRO in jessie stretch wheezy sid; do # For ALL Debian's version TEMP_DIR=$(mktemp -d) pushd "${TEMP_DIR}"