diff --git a/download-free.sh b/download-free.sh index c39edb7..948fc06 100755 --- a/download-free.sh +++ b/download-free.sh @@ -2,16 +2,44 @@ . ./settings.sh -# --- Debian 11 Installer -DIST="bullseye" +WGET="-nv -nc" + +echo "--- Knoppix V9.1 ------------------------------------------------------------------" +echo "------------------------------------------------------------------------------------" +KNX9URL="http://ftp.uni-kl.de/pub/linux/knoppix-dvd/KNOPPIX_V9.1DVD-2021-01-25-DE.iso" +FILENAME=KNOPPIX_V9.1DVD.iso + +if ! [ -e ./temp/$FILENAME ]; then + echo "Downloading Knoppix..." + wget $WGET -O ./temp/$FILENAME $KNX9URL +else + echo "Preparing Knoppix..." + mkdir -p ${TFTP}/free/knx + 7z x -o${TFTP}/free/knx ./temp/${FILENAME} + cp ./resources/knx-miniroot.gz ${TFTP}/free/knx/boot/isolinux/miniroot.gz +fi + +echo "--- Debian Installer ---------------------------------------------------------------" +echo "------------------------------------------------------------------------------------" +DISTS="bullseye bookworm" ARCHS="amd64 i386" -for ARCH in ${ARCHS}; + +for DIST in $DISTS; do - DEBURL="https://deb.debian.org/debian/dists/${DIST}/main/installer-${ARCH}/current/images/netboot/netboot.tar.gz" - wget -nc -O ./temp/netboot-${ARCH}.tar.gz $DEBURL - if [ -e ./temp/netboot-${ARCH}.tar.gz ]; then - mkdir -p ${TFTP}/free/deb - tar xfvzC ./temp/netboot-${ARCH}.tar.gz ${TFTP}/free/deb - fi + for ARCH in ${ARCHS}; + do + DEBURL="https://deb.debian.org/debian/dists/${DIST}/main/installer-${ARCH}/current/images/netboot/netboot.tar.gz" + FILENAME="netboot-${DIST}-${ARCH}.tar.gz" + if ! [ -e ./temp/${FILENAME} ]; then + echo "Downloading Debian installer ${DIST}/${ARCH}..." + wget $WGET -O ./temp/${FILENAME} $DEBURL + else + echo "Create directory in ${TFTP}/free/deb-${DIST}..." + mkdir -p ${TFTP}/free/deb-${DIST} + echo "Unpacking files..." + tar xfzC ./temp/${FILENAME} ${TFTP}/free/deb-${DIST} + fi + done done +chmod a+rwx ${TFTP}/ -R diff --git a/install-debian-packages.sh b/install-debian-packages.sh index 13209ce..6a7bad4 100755 --- a/install-debian-packages.sh +++ b/install-debian-packages.sh @@ -1,3 +1,3 @@ #!/bin/sh -apt install -y git tftpd-hpa nfs-kernel-server lighttpd ipxe pxelinux syslinux syslinux-common sudo +apt install -y git tftpd-hpa nfs-kernel-server lighttpd ipxe pxelinux syslinux syslinux-common sudo p7zip p7zip-full diff --git a/resources/default-full b/resources/default-full index 2150479..4974228 100644 --- a/resources/default-full +++ b/resources/default-full @@ -17,18 +17,18 @@ label - MENU LABEL Live-Systeme: -------------------------- MENU DISABLE -LABEL knx9g - MENU LABEL * Knoppix 9.1 Live, Grafisch - KERNEL knx9/linux - APPEND nfsdir=__NFSSERVERIP__:/srv/knx9 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 initrd=knx9/miniroot.gz libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix +LABEL knx + MENU LABEL * Knoppix 9.1 Live, Grafisch, 32Bit + KERNEL free/knx/boot/isolinux/linux + APPEND nfsdir=__NFSSERVERIP__:/srv/tftp/free/knx nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 initrd=free/knx/boot/isolinux/miniroot.gz libata.force=noncq tz=europe/Berlin hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix MENU BEGIN MENU LABEL * Weitere Optionen... - LABEL knx9t - MENU LABEL * Knoppix 9.1 Live, Textmode - KERNEL knx9/linux - APPEND nfsdir=__NFSSERVERIP__:/srv/knx9 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 initrd=knx9/miniroot.gz libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix 2 + LABEL knx + MENU LABEL * Knoppix 9.1 Live, Textmodus, 32Bit + KERNEL free/knx/boot/isolinux/linux + APPEND nfsdir=__NFSSERVERIP__:/srv/tftp/free/knx nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 initrd=free/knx/boot/isolinux/miniroot.gz libata.force=noncq tz=Europe/Berlin hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix 2 LABEL slitazfull MENU LABEL * Slitaz Linux Live, Grafisch @@ -105,19 +105,23 @@ label - MENU BEGIN MENU LABEL * Debian Installer... - LABEL deb - menu label * Debian 12 Installer 64Bit Textmodus - kernel deb/linux - append vga=788 initrd=deb/initrd.gz --- quiet + LABEL deb12 + MENU LABEL * Debian 12 Installer 64Bit Textmodus + CONFIG free/deb-bookworm/debian-installer/amd64/pxelinux.cfg/default + APPEND free/deb-bookworm/ + LABEL deb12 + MENU LABEL * Debian 12 Installer 32Bit Textmodus + CONFIG free/deb-bookworm/debian-installer/i386/pxelinux.cfg/default + APPEND free/deb-bookworm/ - LABEL deb64 + LABEL deb11 MENU LABEL * Debian 11 Installer 64Bit Textmodus - CONFIG deb/debian-installer/amd64/pxelinux.cfg/default - APPEND deb/ - LABEL deb32 + CONFIG free/deb-bullseye/debian-installer/amd64/pxelinux.cfg/default + APPEND free/deb-bullseye/ + LABEL deb11 MENU LABEL * Debian 11 Installer 32Bit Textmodus - CONFIG deb/debian-installer/i386/pxelinux.cfg/default - APPEND deb/ + CONFIG free/deb-bullseye/debian-installer/i386/pxelinux.cfg/default + APPEND free/deb-bullseye/ LABEL zurueck... MENU EXIT diff --git a/resources/knx-miniroot.gz b/resources/knx-miniroot.gz new file mode 100644 index 0000000..0dbe6ef Binary files /dev/null and b/resources/knx-miniroot.gz differ