From c3955a98dbdd5478a946d86a0f9349082438ecc9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Dec 2017 22:15:56 +0100 Subject: [PATCH 001/694] testing branch advanced PXE-Server --- README.md | 442 +++++++++---------- install-pxe-server_pass1.sh | 135 +++++- install-pxe-server_pass2.sh | 843 +++++++++++++++++++++++------------- 3 files changed, 901 insertions(+), 519 deletions(-) diff --git a/README.md b/README.md index 01c13c1..2b377af 100644 --- a/README.md +++ b/README.md @@ -1,221 +1,221 @@ -# install-pxe-server -setup a Raspberry Pi as an PXE-Server. - -it is a private project i have made for myself. - -i did not keeped an eye on network security. - -**USE IT AT YOUR OWN RISK.** - -## what is it good for? -the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, PXE server. -and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. - -the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. - -it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see **note4**) - -### overview schematic: -``` - ╔══════════╗ ╔═══╗ ╔══════╗╔═════════╗ -WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ - ╚══════════╝ ║ w ║ ║PXE- ║╚═════════╝ - ║ i ║ ║server║ - ╔══════╗ ║ t ╟───eth0╢ ║ - ║ RPi3 ╟──────╢ c ║ ║ ║ - ╚══════╝ ┌──╢ h ╟──┐ ║ ║ - │ ╚═══╝ │ ╚══════╝ - ╔══╧══╗ ╔══╧══╗ - ║ PC1 ║ ║ PC2 ║ - ╚═════╝ ╚═════╝ -``` - -## requirements -### hardware: -- Raspberry Pi (with LAN) -- SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) -- USB memory stick (for preloaded iso images), (e.g. 64GByte) -- working network environment with a connection to internet - -optional, if your SD card is too small or you dont want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the scripts. - -### software: -- **Raspbian Stretch** or **Raspbina Stretch Lite** (2017-08-16), https://www.raspberrypi.org/downloads/raspbian/) - -## installation: -assuming, -- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2017-08-16, -- and has a proper connection to the internet via LAN (eth0). -- and your SD card can hold all the iso images (41GB when you use unmodified script), -- and you have plugged an USB-memory-stick that has the has a label **PXE-Server** -- and the folowing folder structure on the USB memory stick: -``` - -└── backup - ├── img - └── iso - -mkdir -p /backup/img -mkdir -p /backup/iso -``` - -optional structure for win-pe pxe boot -``` - -└── backup - └── tftp - ├── boot - └── efi - -mkdir -p /backup/tftp/boot -mkdir -p /backup/tftp/efi -``` -replace **** with the path, where you mounted your USB stick. - -1. run `bash install-pxe-server_pass1.sh` to install necessary packages
-(use **_bash_** and do not run it from **_sudo_**) -2. reboot your RPi with `sudo reboot` -3. run `bash install-pxe-server_pass2.sh` to copy/download iso images of LiveDVDs, mount and export them and setup PXE menu according installed images.
-(use **_bash_** and do not run it from **_sudo_**) -4. reboot your RPi with `sudo reboot` - -done. - -## update: -to update your images, update the url in the **install-pxe-server_pass2.sh** file and re-run `bash install-pxe-server_pass2.sh`. -this will download all updated iso files. - -## modifying the script: -what you should know, when you make modification to the script...
-there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. -1. the ISO or NSF path relative to the TFTP root path.
-(on disk `/srv/tftp/iso`, `/srv/tftp/nfs` as symbolik link). -2. the ISO or NFS path relative to the pxe boot menu root path
-(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). -3. the ISO or NFS path repative to the nfs root path
-(on disk `/srv/iso`, `/srv/nfs`). -``` -/ -└── srv - ├── iso (the real physical location of ISO files) - ├── nfs (the real physical location of NFS files or mountpoints) - | - └── tftp (TFTP root) - ├── iso (only a symbolic link to ISO files) - ├── nfs (only a symbolic link to NFS files) - | - └── menu-bios (PXE boot menu root for BIOS) - ├── iso (only a symbolic link to ISO files) - └── nfs (only a symbolic link to NFS files) -``` -if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match -pxe menu entries to file structure on disk. - -what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
-the root for NFS are defined in `/etc/exports`. - - -## note: -the script will copy/download/mount following ISOs: -``` -win-pe-x86.iso # Microsoft Windows PE, can not be downloaded, you have to create by yourself -ubuntu-lts-x64.iso # Ubuntu LTS -ubuntu-lts-x86.iso -ubuntu-x64.iso # Ubuntu -ubuntu-x86.iso -ubuntu-nopae.iso # an old Ubuntu with non-PAE for old PCs -debian-x64.iso # Debian -debian-x86.iso -gnuradio-x64.iso # GNU Radio -deft-x64.iso # DEFT -kali-x64.iso # Kali Linux -pentoo-x64.iso # Pentoo Linux -systemrescue-x86.iso # System Rescue -desinfect-x86.iso # c't desinfect, is not downloadable, you have to get by yourself -tinycore-x86.iso # tiny core ~16MB minimal linux. -tinycore-x64.iso # tiny core ~16MB minimal linux. -rpdesktop-x86.iso # Raspberry Pi Desktop for x86 PC -clonezilla-x64.iso # clonezilla -clonezilla-x86.iso -``` - -the following url files will contain the url of the iso image, where to download, to compare if you have the requested iso already downloaded, to prevent downloading an iso newly, when it is done already. -``` -win-pe-x86.url -ubuntu-lts-x64.url -ubuntu-lts-x86.url -ubuntu-x64.url -ubuntu-x86.url -ubuntu-nopae.url -debian-x64.url -debian-x86.url -gnuradio-x64.url -deft-x64.url -kali-x64.url -pentoo-x64.url -systemrescue-x86.url -desinfect-x86.url -tinycore-x86.url -tinycore-x64.url -rpdesktop-x86.url -clonezilla-x64.url -clonezilla-x86.url -``` - -there is a complete new section, that contains download url for disk images, that contains partitions. -``` -e.g. -RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://.../...zip -``` - -**if you don't want some iso images getting downloaded and mounted, you can comment out lines -e.g.:** -``` -###################################################################### -# handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -# handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -# handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -# handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -# handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -# handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -# handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -# handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -# handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -# handle_iso $DEFT_X64 $DEFT_X64_URL; -# handle_iso $KALI_X64 $KALI_X64_URL; -# handle_iso $PENTOO_X64 $PENTOO_X64_URL; -# handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -# handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; -handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -... -``` -**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines -e.g.:** -``` -###################################################################### -handle_zip_img $RPD_LITE $RPD_LITE_URL; -# handle_zip_img $RPD_FULL $RPD_FULL_URL; -``` - -## note2: -some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). -if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries - -## note3: -it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet, because of lack of hardware for UEFI boot - -## note4: NETWORK BOOTING for Raspberry Pi 3 -the server is prepared for to boot a Raspberry Pi 3 via network. -in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN=12345678``` line, change the ```12345678``` to the serial number of the RPi3, that will boot from network. if you have more than one RPi3 for network booting you have to add them by hand to the ```/srv/tftp``` folder. - -the script will download Raspbian-Stretch-Lite and prepare it for the RPi3 with the given serial number. - -by default, a RPi3 is not enabled for network booting. you have to enable it once. - -for more information, - -see: [Network Booting](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md)
-see: [Network Boot Your Raspberry Pi](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md) +# install-pxe-server +setup a Raspberry Pi as an PXE-Server. + +it is a private project i have made for myself. + +i did not keeped an eye on network security. + +**USE IT AT YOUR OWN RISK.** + +## what is it good for? +the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, PXE server. +and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. + +the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. + +it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see **note4**) + +### overview schematic: +``` + ╔══════════╗ ╔═══╗ ╔══════╗╔═════════╗ +WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ + ╚══════════╝ ║ w ║ ║PXE- ║╚═════════╝ + ║ i ║ ║server║ + ╔══════╗ ║ t ╟───eth0╢──┐ ║ + ║ RPi3 ╟──────╢ c ║ ║ │NAT║ ╔═══════════════════════╗ + ╚══════╝ ┌──╢ h ╟──┐ ║ └───╟eth1───╢ PC3 IP:192.168.250.100║ + │ ╚═══╝ │ ╚══════╝ ╚═══════════════════════╝ + ╔══╧══╗ ╔══╧══╗ + ║ PC1 ║ ║ PC2 ║ + ╚═════╝ ╚═════╝ +``` + +## requirements +### hardware: +- Raspberry Pi (with LAN) +- SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) +- USB memory stick (for preloaded iso images), (e.g. 64GByte) +- working network environment with a connection to internet + +optional, if your SD card is too small or you dont want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the scripts. + +### software: +- **Raspbian Stretch** or **Raspbina Stretch Lite** (2017-08-16), https://www.raspberrypi.org/downloads/raspbian/) + +## installation: +assuming, +- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2017-08-16, +- and has a proper connection to the internet via LAN (eth0). +- and your SD card can hold all the iso images (41GB when you use unmodified script), +- and you have plugged an USB-memory-stick that has the has a label **PXE-Server** +- and the folowing folder structure on the USB memory stick: +``` + +└── backup + ├── img + └── iso + +mkdir -p /backup/img +mkdir -p /backup/iso +``` + +optional structure for win-pe pxe boot +``` + +└── backup + └── tftp + ├── boot + └── efi + +mkdir -p /backup/tftp/boot +mkdir -p /backup/tftp/efi +``` +replace **** with the path, where you mounted your USB stick. + +1. run `bash install-pxe-server_pass1.sh` to install necessary packages
+(use **_bash_** and do not run it from **_sudo_**) +2. reboot your RPi with `sudo reboot` +3. run `bash install-pxe-server_pass2.sh` to copy/download iso images of LiveDVDs, mount and export them and setup PXE menu according installed images.
+(use **_bash_** and do not run it from **_sudo_**) +4. reboot your RPi with `sudo reboot` + +done. + +## update: +to update your images, update the url in the **install-pxe-server_pass2.sh** file and re-run `bash install-pxe-server_pass2.sh`. +this will download all updated iso files. + +## modifying the script: +what you should know, when you make modification to the script...
+there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. +1. the ISO or NSF path relative to the TFTP root path.
+(on disk `/srv/tftp/iso`, `/srv/tftp/nfs` as symbolik link). +2. the ISO or NFS path relative to the pxe boot menu root path
+(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). +3. the ISO or NFS path repative to the nfs root path
+(on disk `/srv/iso`, `/srv/nfs`). +``` +/ +└── srv + ├── iso (the real physical location of ISO files) + ├── nfs (the real physical location of NFS files or mountpoints) + | + └── tftp (TFTP root) + ├── iso (only a symbolic link to ISO files) + ├── nfs (only a symbolic link to NFS files) + | + └── menu-bios (PXE boot menu root for BIOS) + ├── iso (only a symbolic link to ISO files) + └── nfs (only a symbolic link to NFS files) +``` +if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match +pxe menu entries to file structure on disk. + +what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
+the root for NFS are defined in `/etc/exports`. + + +## note: +the script will copy/download/mount following ISOs: +``` +win-pe-x86.iso # Microsoft Windows PE, can not be downloaded, you have to create by yourself +ubuntu-lts-x64.iso # Ubuntu LTS +ubuntu-lts-x86.iso +ubuntu-x64.iso # Ubuntu +ubuntu-x86.iso +ubuntu-nopae.iso # an old Ubuntu with non-PAE for old PCs +debian-x64.iso # Debian +debian-x86.iso +gnuradio-x64.iso # GNU Radio +deft-x64.iso # DEFT +kali-x64.iso # Kali Linux +pentoo-x64.iso # Pentoo Linux +systemrescue-x86.iso # System Rescue +desinfect-x86.iso # c't desinfect, is not downloadable, you have to get by yourself +tinycore-x86.iso # tiny core ~16MB minimal linux. +tinycore-x64.iso # tiny core ~16MB minimal linux. +rpdesktop-x86.iso # Raspberry Pi Desktop for x86 PC +clonezilla-x64.iso # clonezilla +clonezilla-x86.iso +``` + +the following url files will contain the url of the iso image, where to download, to compare if you have the requested iso already downloaded, to prevent downloading an iso newly, when it is done already. +``` +win-pe-x86.url +ubuntu-lts-x64.url +ubuntu-lts-x86.url +ubuntu-x64.url +ubuntu-x86.url +ubuntu-nopae.url +debian-x64.url +debian-x86.url +gnuradio-x64.url +deft-x64.url +kali-x64.url +pentoo-x64.url +systemrescue-x86.url +desinfect-x86.url +tinycore-x86.url +tinycore-x64.url +rpdesktop-x86.url +clonezilla-x64.url +clonezilla-x86.url +``` + +there is a complete new section, that contains download url for disk images, that contains partitions. +``` +e.g. +RPD_LITE=rpi-raspbian-lite +RPD_LITE_URL=https://.../...zip +``` + +**if you don't want some iso images getting downloaded and mounted, you can comment out lines +e.g.:** +``` +###################################################################### +# handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +# handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +# handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +# handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +# handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +# handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +# handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +# handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +# handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +# handle_iso $DEFT_X64 $DEFT_X64_URL; +# handle_iso $KALI_X64 $KALI_X64_URL; +# handle_iso $PENTOO_X64 $PENTOO_X64_URL; +# handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +# handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; +handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +... +``` +**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines +e.g.:** +``` +###################################################################### +handle_zip_img $RPD_LITE $RPD_LITE_URL; +# handle_zip_img $RPD_FULL $RPD_FULL_URL; +``` + +## note2: +some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). +if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries + +## note3: +it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet, because of lack of hardware for UEFI boot + +## note4: NETWORK BOOTING for Raspberry Pi 3 +the server is prepared for to boot a Raspberry Pi 3 via network. +in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN=12345678``` line, change the ```12345678``` to the serial number of the RPi3, that will boot from network. if you have more than one RPi3 for network booting you have to add them by hand to the ```/srv/tftp``` folder. + +the script will download Raspbian-Stretch-Lite and prepare it for the RPi3 with the given serial number. + +by default, a RPi3 is not enabled for network booting. you have to enable it once. + +for more information, + +see: [Network Booting](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md)
+see: [Network Boot Your Raspberry Pi](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index a3c5905..bf5bcf6 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-11-28 +# v2017-12-01 # # known issues: # @@ -10,6 +10,17 @@ #bridge# +###################################################################### +# disable screensaver on console +echo -e "\e[36m disable term screensaver temporary\e[0m"; +setterm -blank 0 -powerdown 0 2> /dev/null; +xset s off 2> /dev/null; +echo -e "\e[36m done.\e[0m"; +echo -e "\e[36m disable X screensaver temporary\e[0m"; +xset -dpms 2> /dev/null; +echo -e "\e[36m done.\e[0m"; + + ###################################################################### echo -e "\e[32msetup variables\e[0m"; SRC_MOUNT=/media/server @@ -48,9 +59,9 @@ sudo sync \ && echo -e "\e[32mupgrade...\e[0m" && sudo apt-get -y upgrade \ && echo -e "\e[32mautoremove...\e[0m" && sudo apt-get -y --purge autoremove \ && echo -e "\e[32mautoclean...\e[0m" && sudo apt-get autoclean \ +&& sudo sync \ && echo -e "\e[32mDone.\e[0m" \ -&& sudo sync - +; ###################################################################### echo -e "\e[32minstall nfs-kernel-server for pxe\e[0m"; @@ -86,16 +97,128 @@ echo -e "\e[32minstall syslinux-common for pxe\e[0m"; sudo apt-get -y install pxelinux syslinux-common; +###################################################################### +#echo -e "\e[32minstall mergerfs\e[0m"; +#sudo apt-get -y install fuse mergerfs; + + ###################################################################### #bridge#echo -e "\e[32minstall network bridge\e[0m"; #bridge#sudo apt-get -y install bridge-utils hostapd dnsmasq iptables iptables-persistent +###################################################################### +echo -e "\e[32minstall network NAT\e[0m"; +sudo apt-get -y install iptables iptables-persistent + + +###################################################################### +$(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { +sudo apt-get -y install chrony; +sudo systemctl enable chronyd.service; +sudo systemctl restart chronyd.service; +} + +###################################################################### +###################################################################### + + +###################################################################### +## optional +echo -e "\e[32minstall wireshark\e[0m"; +sudo apt-get -y install wireshark +sudo usermod -a -G wireshark $USER + +#sudo apt-get -y --auto-remove purge avahi-daemon +sudo systemctl stop avahi-daemon.service +sudo systemctl disable avahi-daemon.service + + +###################################################################### +## optional +grep -q mod_install_server /etc/rc.local 2> /dev/null || { +echo -e "\e[32m... disable screensaver\e[0m"; +sudo sed /etc/rc.local -i -e "s/^exit 0$/########################################\n## mod_install_server\nsetterm -blank 0 -powerdown 0;\n\nexit 0/" +sudo sh -c "echo '######################################## +## mod_install_server +setterm -blank 0 -powerdown 0; +xset s off; +xset -dpms; +' >> /etc/X11/Xsession.d/40x11-common_xsessionrc"; +} + + ###################################################################### ## optional -#bridge#echo -e "\e[32minstall wireshark\e[0m"; -#bridge#sudo apt-get -y install wireshark -#bridge#sudo usermod -a -G wireshark $USER +grep -q logo.nologo /boot/cmdline.txt 2> /dev/null || { +echo -e "\e[32msetup cmdline.txt for no logo\e[0m"; +sudo sed -i '1 s/$/ logo.nologo/' /boot/cmdline.txt; +} + + +###################################################################### +## optional +echo -e "\e[32mchange hostname\e[0m"; +sudo sh -c "echo pxe-server > /etc/hostname" +sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts + + +###################################################################### +## optional +grep -q mod_install_server /boot/config.txt 2> /dev/null || { +echo -e "\e[32msetup /boot/config.txt\e[0m"; +sudo sed /boot/config.txt -i -e 's/^max_usb_current=/\#max_usb_current=/g' +sudo sed /boot/config.txt -i -e 's/^force_turbo=/\#force_turbo=/g' +sudo sed /boot/config.txt -i -e 's/^disable_overscan=/\#disable_overscan=/g' +sudo sed /boot/config.txt -i -e 's/^hdmi_force_hotplug=/\#hdmi_force_hotplug=/g' +sudo sed /boot/config.txt -i -e 's/^config_hdmi_boost=/\#config_hdmi_boost=/g' +sudo sed /boot/config.txt -i -e 's/^hdmi_drive=/\#hdmi_drive=/g' +sudo sed /boot/config.txt -i -e 's/^cec_osd_name=/\#cec_osd_name=/g' +sudo sh -c "echo '######################################## +## mod_install_server +[pi2] +total_mem=1024 + +[pi3] +total_mem=1024 + +[all] +max_usb_current=1 +force_turbo=1 + +disable_overscan=1 +config_hdmi_boost=4 +hdmi_force_hotplug=1 +hdmi_drive=2 +hdmi_ignore_cec_init=1 +cec_osd_name=PXE-Server +' >> /boot/config.txt" +} + + +###################################################################### +## optional +grep -q mod_install_server /etc/rc.local 2> /dev/null || { +echo -e "\e[32mdisable screensaver\e[0m"; +sudo sed /etc/rc.local -i -e 's/^exit 0$/\########################################\n## mod_install_server\nsetterm -blank 0 -powerdown 0;\n\nexit 0/' +sudo sh -c "echo '######################################## +## mod_install_server +setterm -blank 0 -powerdown 0; +xset s off; +xset -dpms; +' >> /etc/X11/Xsession.d/40x11-common_xsessionrc"; +} + + +###################################################################### +## optional +[ -f /etc/ssh/mod_install_server ] || { +echo -e "\e[32mcopy predefined ssh keys\e[0m"; +sudo touch /etc/ssh/mod_install_server +sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ +sudo chmod 0600 /etc/ssh/*key +sudo ssh-keygen -A +} ###################################################################### diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index c7b74f3..5126574 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1,6 +1,6 @@ #!/bin/bash -###################################################################### +########################################################################## # ubuntu, http://releases.ubuntu.com/ # https://help.ubuntu.com/community/Installation/MinimalCD # debian, http://cdimage.debian.org/debian-cd/ @@ -29,38 +29,40 @@ #bridge# -###################################################################### +########################################################################## echo -e "\e[36msetup variables\e[0m"; -###################################################################### -###################################################################### +########################################################################## +########################################################################## ## variables, you have to customize ## e.g.: ## RPI_SN0 : serial number ## of the raspberry pi 3 for network booting ## and other variables... -###################################################################### -###################################################################### -RPI_SN0=12345678 -RPI_SN0_BOOT=rpi-$RPI_SN0-boot -RPI_SN0_ROOT=rpi-$RPI_SN0-root -###################################################################### +########################################################################## +########################################################################## +RPI_SN0=-------- +RPI_SN1=-------- +RPI_SN2=-------- +RPI_SN3=-------- +########################################################################## INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) -INTERFACE_BR0=br0 -###################################################################### +INTERFACE_ETH1=eth1 +########################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') -IP_ETH0_=$(echo $IP_ETH0 | grep -E -o "([0-9]{1,3}[\.]){3}") +IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') IP_ETH0_0=$(echo $(echo $IP_ETH0_)0) IP_ETH0_START=$(echo $(echo $IP_ETH0_)200) IP_ETH0_END=$(echo $(echo $IP_ETH0_)250) -IP_ETH0_ROUTER=$(echo $(ip rout show dev $INTERFACE_ETH0 | grep default | cut -d' ' -f3)) +IP_ETH0_ROUTER=$(echo $(ip rout show dev $INTERFACE_ETH0 | grep default | cut -d' ' -f3)) IP_ETH0_DNS=$IP_ETH0_ROUTER IP_ETH0_MASK=255.255.255.0 -IP_BR0=192.168.250.1 -IP_BR0_START=192.168.250.200 -IP_BR0_END=192.168.250.250 -IP_BR0_MASK=255.255.255.0 -###################################################################### +########################################################################## +IP_ETH1=192.168.250.1 +IP_ETH1_START=192.168.250.100 +IP_ETH1_END=192.168.250.100 +IP_ETH1_MASK=255.255.255.0 +########################################################################## ISO=/iso IMG=/img TFTP_ETH0=/tftp @@ -76,13 +78,17 @@ DST_ISO=$DST_ROOT$ISO DST_IMG=$DST_ROOT$IMG DST_TFTP_ETH0=$DST_ROOT$TFTP_ETH0 DST_NFS_ETH0=$DST_ROOT$NFS_ETH0 -###################################################################### +########################################################################## DST_PXE_BIOS=menu-bios DST_PXE_EFI32=menu-efi32 DST_PXE_EFI64=menu-efi64 - +########################################################################## +KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') +KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') +KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) echo +echo -e "$KERNEL_MAJOR.$KERNEL_MINOR \e[36mis kernel version\e[0m"; echo -e "$INTERFACE_ETH0 \e[36mis used as primary networkadapter for PXE\e[0m"; echo -e "$IP_ETH0 \e[36mis used as primary IP address for PXE\e[0m"; echo -e "$RPI_SN0 \e[36mis used as SN for RPi3 network booting\e[0m"; @@ -98,16 +104,16 @@ if [ "$IP_ETH0_ROUTER" == "" ]; then exit 1 fi -sudo umount -f $SRC_MOUNT -sudo mount $SRC_MOUNT +sudo umount -f $SRC_MOUNT 2> /dev/null; +sudo mount $SRC_MOUNT 2> /dev/null; -###################################################################### -###################################################################### +########################################################################## +########################################################################## ## url to iso images, with LiveDVD systems ## note: ## update the url, if iso is outdated -###################################################################### -###################################################################### +########################################################################## +########################################################################## WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= @@ -138,6 +144,9 @@ GNURADIO_X64_URL=http://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnurad DEFT_X64=deft-x64 DEFT_X64_URL=http://na.mirror.garr.it/mirrors/deft/deft-8.2.iso +DEFTZ_X64=deftz-x64 +DEFTZ_X64_URL=http://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso + KALI_X64=kali-x64 KALI_X64_URL=http://cdimage.kali.org/kali-2017.3/kali-linux-2017.3-amd64.iso @@ -157,7 +166,7 @@ TINYCORE_x86=tinycore-x86 TINYCORE_x86_URL=http://tinycorelinux.net/8.x/x86/release/TinyCore-8.2.1.iso RPDESKTOP_X86=rpdesktop-x86 -RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso +RPDESKTOP_X86_URL=http://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-amd64.iso @@ -171,16 +180,19 @@ FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/26/W TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.3/tails-amd64-3.3.iso +CENTOS_X64=centos-x64 +CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1708.iso -###################################################################### -###################################################################### + +########################################################################## +########################################################################## ## url to zip files, ## that contains disk images -## for raspbarry pi 3 network booting +## for raspbarry pi 3 pxe network booting ## note: ## update the url, if disk image is outdated -###################################################################### -###################################################################### +########################################################################## +########################################################################## PI_CORE=pi-core PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip @@ -191,15 +203,15 @@ RPD_FULL=rpi-raspbian-full RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-12-01/2017-11-29-raspbian-stretch.zip -###################################################################### +########################################################################## handle_dhcpcd() { echo -e "\e[32mhandle_dhcpcd()\e[0m"; ###################################################################### if grep -q stretch /etc/*-release; then echo -e "\e[36m a stretch os detected\e[0m"; - ###################################################################### - grep -q $INTERFACE_ETH0 /etc/dhcpcd.conf || { + ################################################################## + grep -q mod_install_server /etc/dhcpcd.conf || { echo -e "\e[36m setup dhcpcd.conf\e[0m"; sudo sh -c "cat << EOF >> /etc/dhcpcd.conf ######################################## @@ -208,13 +220,25 @@ interface $INTERFACE_ETH0 static ip_address=$IP_ETH0/24 static routers=$IP_ETH0_ROUTER static domain_name_servers=$IP_ETH0_ROUTER + +######################################## +interface $INTERFACE_ETH1 +static ip_address=$IP_ETH1/24 +static routers=$IP_ETH1_ROUTER +static domain_name_servers=$IP_ETH1_ROUTER + +######################################## +#bridge#interface $INTERFACE_BR0 +#bridge#static ip_address=$IP_BR0/24 +#bridge#static routers=$IP_BR0_ROUTER +#bridge#static domain_name_servers=$IP_BR0_ROUTER EOF"; sudo systemctl daemon-reload; sudo systemctl restart dhcpcd.service; } else echo -e "\e[36m a non-stretch os detected\e[0m"; - ###################################################################### + ################################################################## grep -q mod_install_server /etc/network/interfaces || { echo -e "\e[36m setup networking, disable dhcpcd\e[0m"; sudo sh -c "cat << EOF > /etc/network/interfaces @@ -245,12 +269,13 @@ iface $INTERFACE_ETH0 inet static netmask $IP_ETH0_MASK gateway $IP_ETH0_ROUTER -#bridge#auto eth1 -#bridge#iface eth1 inet static -#bridge# hwaddress 88:88:88:11:11:11 -#bridge# address 169.254.11.11 -#bridge# netmask 255.255.0.0 -#bridge# +auto $INTERFACE_ETH1 +iface $INTERFACE_ETH1 inet static + address $IP_ETH1 + netmask $IP_ETH1_MASK + gateway $IP_ETH1_ROUTER + hwaddress 88:88:88:11:11:11 + #bridge#auto br0 #bridge#iface br0 inet static #bridge# bridge_ports eth1 wlan0 wlan1 @@ -272,7 +297,7 @@ EOF"; } -###################################################################### +########################################################################## handle_dnsmasq() { echo -e "\e[32mhandle_dnsmasq()\e[0m"; @@ -290,20 +315,24 @@ log-queries # interface selection interface=$INTERFACE_ETH0 +interface=$INTERFACE_ETH1 #bridge#interface=$INTERFACE_BR0 # TFTP_ETH0 (enabled) enable-tftp tftp-lowercase tftp-root=$DST_TFTP_ETH0/, $INTERFACE_ETH0 -#bridge#tftp-root=$DST_TFTP_ETH0_BR0/, $INTERFACE_BR0 +dhcp-option=$INTERFACE_ETH0, option:tftp-server, $IP_ETH0 +#nat#tftp-root=$DST_TFTP_ETH1/, $INTERFACE_ETH1 +#nat#dhcp-option=$INTERFACE_ETH1, option:tftp-server, $IP_ETH1 +#bridge#tftp-root=$DST_TFTP_BR0/, $INTERFACE_BR0 +#bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, $IP_BR0 # DHCP # do not give IPs that are in pool of DSL routers DHCP dhcp-range=$INTERFACE_ETH0, $IP_ETH0_START, $IP_ETH0_END, 24h +dhcp-range=$INTERFACE_ETH1, $IP_ETH1_START, $IP_ETH1_END, 24h #bridge#dhcp-range=$INTERFACE_BR0, $IP_BR0_START, $IP_BR0_END, 24h -dhcp-option=$INTERFACE_ETH0, option:tftp-server, $IP_ETH0 -#bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, $IP_BR0 # DNS (enabled) port=53 @@ -338,7 +367,7 @@ EOF"; } -###################################################################### +########################################################################## handle_samba() { echo -e "\e[32mhandle_samba()\e[0m"; @@ -351,34 +380,34 @@ handle_samba() { ## mod_install_server [srv] - comment = /srv folder of pxe-server path = $DST_ROOT/ - public = yes - only guest = yes + comment = /srv folder of pxe-server + guest ok = yes + guest only = yes browseable = yes read only = no - writeable = yes create mask = 0644 directory mask = 0755 force create mask = 0644 force directory mask = 0755 force user = root force group = root + hide dot files = no [media] - comment = /media folder of pxe-server path = /media/ - public = yes - only guest = yes + comment = /media folder of pxe-server + guest ok = yes + guest only = yes browseable = yes read only = no - writeable = yes create mask = 0644 directory mask = 0755 force create mask = 0644 force directory mask = 0755 force user = root force group = root + hide dot files = no EOF" sudo systemctl restart smbd.service; ) @@ -394,8 +423,15 @@ handle_pxe_menu() { ###################################################################### ## INFO: ## The entry before -- means that it will be used by the live system / the installer - ## The entry after -- means that it will be carried to and used by the installed system + ## The entry after -- means that it will be carried to and used by the installed system ## https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kernel-parameters.txt + ## + ## some debian/ubuntu parameter + ## https://www.debian.org/releases/stretch/example-preseed.txt + ## https://www.debian.org/releases/stretch/amd64/apb.html.en + ## https://www.debian.org/releases/stretch/amd64/ch05s03.html.en + ## https://manpages.debian.org/stretch/live-config-doc/live-config.7.en.html + ## http://manpages.ubuntu.com/manpages/precise/man7/live-config.7.html ###################################################################### echo -e "\e[32mhandle_pxe_menu(\e[0m$1\e[32m)\e[0m"; echo -e "\e[36m setup sys menu for pxe\e[0m"; @@ -610,6 +646,21 @@ LABEL DEFT x64 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFTZ_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL DEFT Zero x64 + KERNEL $NFS_ETH0/$DEFTZ_X64/casper/vmlinuz + APPEND initrd=$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + TEXT HELP + Boot to DEFT Zero x64 Live + User: root, Password: toor + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then echo -e "\e[36m add $PENTOO_X64\e[0m"; @@ -732,6 +783,24 @@ LABEL Clonezilla x86 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then + echo -e "\e[36m add $CENTOS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel +## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup +## NOT WORKING +LABEL CentOS x64 + KERNEL $NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 + APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + TEXT HELP + Boot to CentOS LiveGNOME + User: liveuser + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then echo -e "\e[36m add $FEDORA_X64\e[0m"; @@ -742,7 +811,8 @@ EOF"; LABEL Fedora x64 KERNEL $NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz # APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=$IP_ETH0:$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 - APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=live:tftp://$IP_ETH0/menu-bios/nfs/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$FEDORA_X64,vers=3 root-path=/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 +# APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=live:tftp://$IP_ETH0/menu-bios/nfs/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -755,10 +825,12 @@ EOF"; echo -e "\e[36m add $TAILS_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## +## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten ## NOT WORKING LABEL Tails x64 KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=de_DE.UTF-8 keyboard-layouts=de +# APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=de_DE.UTF-8 keyboard-layouts=de + APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash nox11autologin module=Tails quiet TEXT HELP Boot to Tails x64 Live (modprobe r8169; exit) ENDTEXT @@ -767,17 +839,81 @@ EOF"; } -###################################################################### +########################################################################## +handle_pxe() { + echo -e "\e[32mhandle_pxe()\e[0m"; + + ###################################################################### + [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; + if [ -d "$SRC_TFTP_ETH0" ]; then + echo -e "\e[36m copy win-pe stuff\e[0m"; + [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxeboot.0" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/pxeboot.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -f "$DST_TFTP_ETH0/bootmgr.exe" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/bootmgr.exe $DST_TFTP_ETH0/; + [ -d "$DST_TFTP_ETH0/boot" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/boot $DST_TFTP_ETH0/; + fi + [ -h "$DST_TFTP_ETH0/sources" ] || sudo ln -s $DST_NFS_ETH0/$WIN_PE_X86/sources/ $DST_TFTP_ETH0/sources; + #for SRC in `find /srv/tftp/Boot -depth` + #do + # DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'` + # if [ "${SRC}" != "${DST}" ] + # then + # [ ! -e "${DST}" ] && sudo mv -T "${SRC}" "${DST}" || echo "${SRC} was not renamed" + # fi + #done + + + ###################################################################### + echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; + [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxelinux.0" ] || sudo ln -s /usr/lib/PXELINUX/pxelinux.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/pxelinux.0; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/ldlinux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/memdisk" ] || sudo ln -s /usr/lib/syslinux/memdisk $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_BIOS/nfs; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; + handle_pxe_menu $DST_PXE_BIOS default; + + ###################################################################### + #echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; + #[ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.0" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/syslinux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.0; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI32/nfs; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; + #handle_pxe_menu $DST_PXE_EFI32 efidefault; + + ###################################################################### + #echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; + #[ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.0" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/syslinux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.0; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI64/nfs; + #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; + #handle_pxe_menu $DST_PXE_EFI64 efidefault; +} + + +########################################################################## handle_iso() { + echo -e "\e[32mhandle_iso(\e[0m$1\e[32m)\e[0m"; + ###################################################################### # $1 : short name - # $2 : download url - ############################################################## + # $2 : download ulr + ###################################################################### local NAME=$1 local URL=$2 local FILE_URL=$NAME.url local FILE_ISO=$NAME.iso - ############################################################## - echo -e "\e[32mhandle_iso(\e[0m$NAME\e[32m)\e[0m"; + ###################################################################### + if ! [ -d "$DST_ISO/" ]; then sudo mkdir -p $DST_ISO/; fi if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi @@ -827,7 +963,7 @@ handle_iso() { if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 0' >> /etc/fstab"; + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; fi if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then @@ -844,11 +980,13 @@ handle_iso() { } -###################################################################### +########################################################################## handle_zip_img() { + echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; + ###################################################################### # $1 : short name - # $2 : download url - ############################################################## + # $2 : download ulr + ###################################################################### local NAME=$1 local URL=$2 local RAW_FILENAME=$(basename $URL .zip) @@ -856,20 +994,20 @@ handle_zip_img() { local RAW_FILENAME_ZIP=$RAW_FILENAME.zip local NAME_BOOT=$NAME-boot local NAME_ROOT=$NAME-root - local DST_BOOT=$DST_NFS_ETH0/$NAME_BOOT - local DST_ROOT=$DST_NFS_ETH0/$NAME_ROOT + local DST_NFS_BOOT=$DST_NFS_ETH0/$NAME_BOOT + local DST_NFS_ROOT=$DST_NFS_ETH0/$NAME_ROOT local FILE_URL=$NAME.url local FILE_IMG=$NAME.img - ############################################################## - echo -e "\e[32mhandle_zip_img(\e[0m$NAME\e[32m)\e[0m"; + ###################################################################### + if ! [ -d "$DST_IMG/" ]; then sudo mkdir -p $DST_IMG/; fi if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi - sudo exportfs -u *:$DST_BOOT 2> /dev/null; - sudo umount -f $DST_BOOT 2> /dev/null; + sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; + sudo umount -f $DST_NFS_BOOT 2> /dev/null; - sudo exportfs -u *:$DST_ROOT 2> /dev/null; - sudo umount -f $DST_ROOT 2> /dev/null; + sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; + sudo umount -f $DST_NFS_ROOT 2> /dev/null; if [ "$URL" == "" ]; then if ! [ -f "$DST_IMG/$FILE_IMG" ] \ @@ -921,42 +1059,42 @@ handle_zip_img() { sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" ## boot - if ! [ -d "$DST_BOOT" ]; then + if ! [ -d "$DST_NFS_BOOT" ]; then echo -e "\e[36m create image-boot folder\e[0m"; - sudo mkdir -p $DST_BOOT; + sudo mkdir -p $DST_NFS_BOOT; fi - if ! grep -q "$DST_BOOT" /etc/fstab; then + if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_BOOT auto ro,nofail,auto,loop,offset=$OFFSET_BOOT,sizelimit=$SIZE_BOOT 0 0' >> /etc/fstab"; + sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_BOOT auto ro,nofail,auto,loop,offset=$OFFSET_BOOT,sizelimit=$SIZE_BOOT 0 11' >> /etc/fstab"; fi - if ! grep -q "$DST_BOOT" /etc/exports; then + if ! grep -q "$DST_NFS_BOOT" /etc/exports; then echo -e "\e[36m add image-boot folder to exports\e[0m"; - sudo sh -c "echo '$DST_BOOT *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_BOOT *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; fi ## root - if ! [ -d "$DST_ROOT" ]; then + if ! [ -d "$DST_NFS_ROOT" ]; then echo -e "\e[36m create image-root folder\e[0m"; - sudo mkdir -p $DST_ROOT; + sudo mkdir -p $DST_NFS_ROOT; fi - if ! grep -q "$DST_ROOT" /etc/fstab; then + if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then echo -e "\e[36m add image-root to fstab\e[0m"; - sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_ROOT auto ro,nofail,auto,loop,offset=$OFFSET_ROOT,sizelimit=$SIZE_ROOT 0 0' >> /etc/fstab"; + sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_ROOT auto ro,nofail,auto,loop,offset=$OFFSET_ROOT,sizelimit=$SIZE_ROOT 0 11' >> /etc/fstab"; fi - if ! grep -q "$DST_ROOT" /etc/exports; then + if ! grep -q "$DST_NFS_ROOT" /etc/exports; then echo -e "\e[36m add image-root folder to exports\e[0m"; - sudo sh -c "echo '$DST_ROOT *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_ROOT *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; fi - sudo mount $DST_BOOT; - sudo exportfs *:$DST_BOOT; + sudo mount $DST_NFS_BOOT; + sudo exportfs *:$DST_NFS_BOOT; - sudo mount $DST_ROOT; - sudo exportfs *:$DST_ROOT; + sudo mount $DST_NFS_ROOT; + sudo exportfs *:$DST_NFS_ROOT; else ## boot sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" @@ -967,62 +1105,25 @@ handle_zip_img() { fi } - -###################################################################### -handle_network_booting() { - # $1 : short name - # $2 : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) - ############################################################## - local NAME=$1 - local FLAGS=$2 - local NAME_BOOT=$NAME-boot - local NAME_ROOT=$NAME-root - local SRC_BOOT=$DST_NFS_ETH0/$NAME_BOOT - local SRC_ROOT=$DST_NFS_ETH0/$NAME_ROOT - local DST_BOOT=$DST_NFS_ETH0/$RPI_SN0_BOOT - local DST_ROOT=$DST_NFS_ETH0/$RPI_SN0_ROOT - local FILE_URL=$NAME.url - ############################################################## - echo -e "\e[32mhandle_network_booting(\e[0m$NAME\e[32m)\e[0m"; - if [ "$RPI_SN0" == "" ] \ - || [ "$RPI_SN0" == "12345678" ]; then - echo -e "\e[36m skipped: no serial number setted at RPI_SN0.\e[0m"; - return 1; - fi - sudo exportfs -u *:$DST_BOOT 2> /dev/null; - sudo exportfs -u *:$DST_ROOT 2> /dev/null; - - ###################################################################### - if ! [ -d "$DST_BOOT" ]; then sudo mkdir -p $DST_BOOT; fi - if ! [ -d "$DST_ROOT" ]; then sudo mkdir -p $DST_ROOT; fi - +########################################################################## +handle_rpi_pxe_customization() { + echo -e "\e[36m handle_rpi_pxe_customization()\e[0m"; ###################################################################### - if ! [ -h "$DST_TFTP_ETH0/$RPI_SN0" ]; then sudo ln -s $DST_BOOT/ $DST_TFTP_ETH0/$RPI_SN0; fi - + local DST_CUSTOM_BOOT=$1 + local DST_CUSTOM_ROOT=$2 + local FLAGS=$3 ###################################################################### - if (echo $FLAGS | grep -q redo) \ - || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_BOOT/$FILE_URL 2> /dev/null; then - echo -e "\e[36m delete old boot files\e[0m"; - sudo rm -rf $DST_BOOT/*; - echo -e "\e[36m delete old root files\e[0m"; - sudo rm -rf $DST_ROOT/*; - - ################################################################## - if ! [ -f "$DST_BOOT/bootcode.bin" ]; then - echo -e "\e[36m copy boot files\e[0m"; - sudo rsync -xa --info=progress2 $SRC_BOOT/* $DST_BOOT/ - fi - + if (echo $FLAGS | grep -q redo); then ################################################################## if (echo $FLAGS | grep -q cmdline); then echo -e "\e[36m add cmdline file\e[0m"; - sudo sh -c "echo 'dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 plymouth.ignore-serial-consoles root=/dev/nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPI_SN0_ROOT,vers=3 rw ip=dhcp rootwait net.ifnames=0 elevator=deadline' > $DST_BOOT/cmdline.txt"; + sudo sh -c "echo 'dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 plymouth.ignore-serial-consoles root=/dev/nfs nfsroot=$IP_ETH0:$DST_NFS_ROOT,vers=3 rootwait rw ip=dhcp elevator=deadline net.ifnames=0 consoleblank=0' > $DST_CUSTOM_BOOT/cmdline.txt"; fi ################################################################## if (echo $FLAGS | grep -q config); then echo -e "\e[36m add config file\e[0m"; - sudo sh -c "cat << EOF > $DST_BOOT/config.txt + sudo sh -c "cat << EOF > $DST_CUSTOM_BOOT/config.txt ######################################## dtparam=audio=on @@ -1033,6 +1134,7 @@ disable_overscan=1 hdmi_force_hotplug=1 config_hdmi_boost=4 hdmi_drive=2 +#hdmi_ignore_cec_init=1 cec_osd_name=NetBoot ######################################## @@ -1050,31 +1152,26 @@ EOF"; ################################################################## if (echo $FLAGS | grep -q ssh); then echo -e "\e[36m add ssh file\e[0m"; - sudo touch $DST_BOOT/ssh; + sudo touch $DST_CUSTOM_BOOT/ssh; fi ################################################################## if (echo $FLAGS | grep -q root); then - if ! [ -d "$DST_ROOT/etc" ]; then - echo -e "\e[36m copy root files\e[0m"; - sudo rsync -xa --info=progress2 $SRC_ROOT/* $DST_ROOT/ - fi - ############################################################## if (echo $FLAGS | grep -q fstab); then echo -e "\e[36m add fstab file\e[0m"; - sudo sh -c "cat << EOF > $DST_ROOT/etc/fstab + sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/fstab ######################################## proc /proc proc defaults 0 0 -$IP_ETH0:$DST_NFS_ETH0/$RPI_SN0_BOOT /boot nfs defaults,nofail,noatime 0 2 -$IP_ETH0:$DST_NFS_ETH0/$RPI_SN0_ROOT / nfs defaults,nofail,noatime 0 1 +$IP_ETH0:$DST_NFS_ROOT / nfs defaults,nofail,noatime 0 1 +$IP_ETH0:$DST_NFS_BOOT /boot nfs defaults,nofail,noatime 0 2 EOF"; fi ############################################################## if (echo $FLAGS | grep -q wpa); then echo -e "\e[36m add wpa_supplicant template file\e[0m"; - sudo sh -c "cat << EOF > $DST_ROOT/etc/wpa_supplicant/wpa_supplicant.conf + sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/wpa_supplicant/wpa_supplicant.conf ######################################## country=DE ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev @@ -1085,7 +1182,7 @@ network={ #ssid= #psk= - # sudo iwlist wlan0 scan [essid ] + # sudo iwlist wlan0 scan [essid ] #bssid= scan_ssid=1 @@ -1094,14 +1191,14 @@ network={ EOF"; if [ -f "$SRC_BACKUP/wpa_supplicant.conf" ]; then echo -e "\e[36m add wpa_supplicant file from backup\e[0m"; - sudo rsync -xa --info=progress2 $SRC_BACKUP/wpa_supplicant.conf $DST_ROOT/etc/wpa_supplicant/ + sudo rsync -xa --info=progress2 $SRC_BACKUP/wpa_supplicant.conf $DST_CUSTOM_ROOT/etc/wpa_supplicant/ fi fi ############################################################## if (echo $FLAGS | grep -q history); then echo -e "\e[36m add .bash_history file\e[0m"; - sudo sh -c "cat << EOF > $DST_ROOT/home/pi/.bash_history + sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/home/pi/.bash_history sudo poweroff sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y --purge autoremove && sudo apt-get -y autoclean && sync && echo Done. ip route @@ -1112,111 +1209,277 @@ wpa_passphrase sudo iwlist wlan0 scan [essid ] sudo raspi-config EOF"; - sudo chown 1000:1000 $DST_ROOT/home/pi/.bash_history; + sudo chown 1000:1000 $DST_CUSTOM_ROOT/home/pi/.bash_history; fi fi + fi +} - ################################################################## - sudo cp $DST_IMG/$FILE_URL $DST_BOOT/$FILE_URL; +########################################################################## +handle_rpi_pxe_classic() { + echo -e "\e[32mhandle_rpi_pxe_classic(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + # S2 : serial number + # $3 : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) + ###################################################################### + local NAME=$1 + local SN=$2 + local FLAGS=$3 + local NAME_BOOT=$NAME-boot + local NAME_ROOT=$NAME-root + local DST_SN_BOOT=$SN-boot + local DST_SN_ROOT=$SN-root + local SRC_BOOT=$DST_NFS_ETH0/$NAME_BOOT + local SRC_ROOT=$DST_NFS_ETH0/$NAME_ROOT + local DST_NFS_BOOT=$DST_NFS_ETH0/$DST_SN_BOOT + local DST_NFS_ROOT=$DST_NFS_ETH0/$DST_SN_ROOT + local FILE_URL=$NAME.url + ###################################################################### + local DST_CUSTOM_BOOT=$DST_NFS_BOOT + local DST_CUSTOM_ROOT=$DST_NFS_ROOT + ###################################################################### + + sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; + sudo umount -f $DST_NFS_BOOT 2> /dev/null; + + sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; + sudo umount -f $DST_NFS_BOOT 2> /dev/null; + + + ###################################################################### + if (echo $FLAGS | grep -q redo) \ + || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_UPPER_BOOT/$FILE_URL 2> /dev/null; then + echo -e "\e[36m delete old boot files\e[0m"; + sudo rm -rf $DST_NFS_BOOT; + echo -e "\e[36m delete old root files\e[0m"; + sudo rm -rf $DST_NFS_ROOT; + sudo sed /etc/fstab -i -e "/$DST_SN_BOOT/d" + sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" + sudo sed /etc/exports -i -e "/$DST_SN_BOOT/d" + sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" + local FLAGS=$FLAGS,redo fi ###################################################################### - if ! grep -q "$DST_BOOT" /etc/exports; then - echo -e "\e[36m add $DST_BOOT to exports\e[0m"; - sudo sh -c "echo '$DST_BOOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + if ! [ -d "$DST_NFS_BOOT" ]; then + echo -e "\e[36m copy boot files\e[0m"; + sudo mkdir -p $DST_NFS_BOOT; + sudo rsync -xa --info=progress2 $SRC_BOOT/* $DST_NFS_BOOT/ + fi + + if ! [ -d "$DST_NFS_ROOT" ] \ + && (echo $FLAGS | grep -q root); then + echo -e "\e[36m copy root files\e[0m"; + sudo mkdir -p $DST_NFS_ROOT; + sudo rsync -xa --info=progress2 $SRC_ROOT/* $DST_NFS_ROOT/ fi - sudo exportfs *:$DST_BOOT; + + sudo cp $DST_IMG/$FILE_URL $DST_LOWER/$FILE_URL; ###################################################################### - if (echo $FLAGS | grep -q root); then - if ! grep -q "$DST_ROOT" /etc/exports; then - echo -e "\e[36m add $DST_ROOT to exports\e[0m"; - sudo sh -c "echo '$DST_ROOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; - fi - sudo exportfs *:$DST_ROOT; - else - sudo sed /etc/exports -i -e "/$NAME_ROOT/d" + if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi + + ###################################################################### + handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; + + ###################################################################### + if ! grep -q "$DST_NFS_BOOT" /etc/exports; then + echo -e "\e[36m add $DST_NFS_BOOT to exports\e[0m"; + sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; fi + sudo exportfs *:$DST_NFS_BOOT; ###################################################################### - if (echo $FLAGS | grep -q bootcode); then - if [ -f "$DST_BOOT/bootcode.bin" ]; then - echo -e "\e[36m copy bootcode.bin for RPi3 NETWORK BOOTING\e[0m"; - sudo cp $DST_BOOT/bootcode.bin $DST_TFTP_ETH0/bootcode.bin; + if (echo $FLAGS | grep -q root); then + if ! grep -q "$DST_NFS_ROOT" /etc/exports; then + echo -e "\e[36m add $DST_NFS_ROOT to exports\e[0m"; + sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; fi + sudo exportfs *:$DST_NFS_ROOT; + else + sudo sed /etc/exports -i -e "/$NAME_ROOT/d" fi ###################################################################### if ! [ -f "$DST_TFTP_ETH0/bootcode.bin" ]; then - echo -e "\e[36m download bootcode.bin for RPi3 NETWORK BOOTING\e[0m"; + echo -e "\e[36m download bootcode.bin for RPi3 network booting\e[0m"; sudo wget -O $DST_TFTP_ETH0/bootcode.bin https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; fi } +########################################################################## +handle_rpi_pxe_overlay() { + echo -e "\e[32mhandle_rpi_pxe_overlay(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + # $2 : serial number + # $3 : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) + ###################################################################### + local NAME=$1 + local SN=$2 + local FLAGS=$3 + local NAME_BOOT=$NAME-boot + local NAME_ROOT=$NAME-root + local DST_SN_BOOT=$SN-boot + local DST_SN_ROOT=$SN-root + local SRC_BOOT=$DST_NFS_ETH0/$NAME_BOOT + local SRC_ROOT=$DST_NFS_ETH0/$NAME_ROOT + local DST_NFS_BOOT=$DST_NFS_ETH0/$DST_SN_BOOT + local DST_NFS_ROOT=$DST_NFS_ETH0/$DST_SN_ROOT + local FILE_URL=$NAME.url + ###################################################################### + local DST_LOWER=/srv/_lo + local DST_LOWER_BOOT=/srv/_lo/$NAME_BOOT + local DST_LOWER_ROOT=/srv/_lo/$NAME_ROOT + local DST_UPPER_BOOT=/srv/_up/$DST_SN_BOOT + local DST_UPPER_ROOT=/srv/_up/$DST_SN_ROOT + local DST_WORK_BOOT=/srv/_wk/$DST_SN_BOOT + local DST_WORK_ROOT=/srv/_wk/$DST_SN_ROOT + ###################################################################### + local DST_CUSTOM_BOOT=$DST_NFS_BOOT + local DST_CUSTOM_ROOT=$DST_NFS_ROOT + ###################################################################### + + sudo exportfs -vu *:$DST_NFS_BOOT 2> /dev/null; + sudo umount -vf $DST_NFS_BOOT 2> /dev/null; + + sudo exportfs -vu *:$DST_NFS_ROOT 2> /dev/null; + sudo umount -vf $DST_NFS_ROOT 2> /dev/null; -###################################################################### -handle_pxe() { - echo -e "\e[32mhandle_pxe()\e[0m"; ###################################################################### - [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; - if [ -d "$SRC_TFTP_ETH0" ]; then - echo -e "\e[36m copy win-pe stuff\e[0m"; - [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxeboot.0" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/pxeboot.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -f "$DST_TFTP_ETH0/bootmgr.exe" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/bootmgr.exe $DST_TFTP_ETH0/; - [ -d "$DST_TFTP_ETH0/boot" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/boot $DST_TFTP_ETH0/; + # NOTE: this folders will maybe shared by other overlayfs as lowerdir. + if ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_LOWER/$FILE_URL 2> /dev/null; then + echo -e "\e[36m delete old lowerdir files\e[0m"; + sudo rm -rf $DST_LOWER_BOOT; + sudo rm -rf $DST_LOWER_ROOT; + local FLAGS=$FLAGS,redo fi - [ -h "$DST_TFTP_ETH0/sources" ] || sudo ln -s $DST_NFS_ETH0/$WIN_PE_X86/sources/ $DST_TFTP_ETH0/sources; - #for SRC in `find /srv/tftp/Boot -depth` - #do - # DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'` - # if [ "${SRC}" != "${DST}" ] - # then - # [ ! -e "${DST}" ] && sudo mv -T "${SRC}" "${DST}" || echo "${SRC} was not renamed" - # fi - #done + ###################################################################### + # WORKAROUND: overlayFS can't handle FAT32 file-system, + # so copy files to a lowerdir, instead of using the FAT32 partition + # NOTE: this folder will maybe shared by other overlayfs as lowerdir. + if ! [ -d "$DST_LOWER_BOOT" ]; then + echo -e "\e[36m copy boot files to lowerdir\e[0m"; + sudo mkdir -p $DST_LOWER_BOOT; + sudo rsync -xa --info=progress2 $SRC_BOOT/* $DST_LOWER_BOOT/ + fi + ###################################################################### + # WORKAROUND: overlayFS can't handle disk image mount correctly at boot time, + # so copy files to a lowerdir, instead of using disk image partition + # NOTE: this folder will maybe shared by other overlayfs as lowerdir. + if ! [ -d "$DST_LOWER_ROOT" ] \ + && (echo $FLAGS | grep -q root); then + echo -e "\e[36m copy root files to lowerdir\e[0m"; + sudo mkdir -p $DST_LOWER_ROOT; + sudo rsync -xa --info=progress2 $SRC_ROOT/* $DST_LOWER_ROOT/ + fi + ###################################################################### + sudo cp $DST_IMG/$FILE_URL $DST_LOWER/$FILE_URL; ###################################################################### - echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; - [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxelinux.0" ] || sudo ln -s /usr/lib/PXELINUX/pxelinux.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/pxelinux.0; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/ldlinux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/memdisk" ] || sudo ln -s /usr/lib/syslinux/memdisk $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_BIOS/nfs; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; - handle_pxe_menu $DST_PXE_BIOS default; + if (echo $FLAGS | grep -q redo) \ + || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_UPPER_BOOT/$FILE_URL 2> /dev/null; then + echo -e "\e[36m delete old boot files\e[0m"; + sudo rm -rf $DST_NFS_BOOT; + sudo rm -rf $DST_UPPER_BOOT; + sudo rm -rf $DST_WORK_BOOT; + echo -e "\e[36m delete old root files\e[0m"; + sudo rm -rf $DST_NFS_ROOT; + sudo rm -rf $DST_UPPER_ROOT; + sudo rm -rf $DST_WORK_ROOT; + sudo sed /etc/fstab -i -e "/$DST_SN_BOOT/d" + sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" + sudo sed /etc/exports -i -e "/$DST_SN_BOOT/d" + sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" + local FLAGS=$FLAGS,redo + fi ###################################################################### - #echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; - #[ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.0" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/syslinux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.0; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI32/nfs; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; - #handle_pxe_menu $DST_PXE_EFI32 efidefault; + if ! [ -d "$DST_NFS_BOOT" ]; then sudo mkdir -p $DST_NFS_BOOT; fi + if ! [ -d "$DST_UPPER_BOOT" ]; then sudo mkdir -p $DST_UPPER_BOOT; fi + if ! [ -d "$DST_WORK_BOOT" ]; then sudo mkdir -p $DST_WORK_BOOT; fi + ###################################################################### + if (echo $FLAGS | grep -q root); then + if ! [ -d "$DST_NFS_ROOT" ]; then sudo mkdir -p $DST_NFS_ROOT; fi + if ! [ -d "$DST_UPPER_ROOT" ]; then sudo mkdir -p $DST_UPPER_ROOT; fi + if ! [ -d "$DST_WORK_ROOT" ]; then sudo mkdir -p $DST_WORK_ROOT; fi + fi + ###################################################################### - #echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; - #[ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.0" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/syslinux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.0; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI64/nfs; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; - #handle_pxe_menu $DST_PXE_EFI64 efidefault; + if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then + echo -e "\e[36m add image-boot to fstab\e[0m"; + sudo sh -c "echo 'overlay $DST_NFS_BOOT overlay rw,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT 0 12' >> /etc/fstab"; + #sudo sh -c "echo 'overlay $DST_NFS_BOOT overlay rw,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT,redirect_dir=off,index=off 0 12' >> /etc/fstab"; + fi + + ###################################################################### + if (echo $FLAGS | grep -q root); then + if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then + echo -e "\e[36m add image-root to fstab\e[0m"; + sudo sh -c "echo 'overlay $DST_NFS_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT 0 12' >> /etc/fstab"; + #sudo sh -c "echo 'overlay $DST_NFS_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT,redirect_dir=off,index=off 0 12' >> /etc/fstab"; + fi + fi + + + ###################################################################### + if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi + + ###################################################################### + sudo mount -v $DST_NFS_BOOT; + if (echo $FLAGS | grep -q root); then sudo mount -v $DST_NFS_ROOT; fi + + ###################################################################### + handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; + + ###################################################################### + if ! grep -q "$DST_NFS_BOOT" /etc/exports; then + echo -e "\e[36m add $DST_NFS_BOOT to exports\e[0m"; + sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + fi + sudo exportfs -v *:$DST_NFS_BOOT; + + ###################################################################### + if (echo $FLAGS | grep -q root); then + if ! grep -q "$DST_NFS_ROOT" /etc/exports; then + echo -e "\e[36m add $DST_NFS_ROOT to exports\e[0m"; + sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + fi + sudo exportfs -v *:$DST_NFS_ROOT; + else + sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" + sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" + fi + + ###################################################################### + if ! [ -f "$DST_TFTP_ETH0/bootcode.bin" ]; then + echo -e "\e[36m download bootcode.bin for RPi3 network booting\e[0m"; + sudo wget -O $DST_TFTP_ETH0/bootcode.bin https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; + fi } -###################################################################### +########################################################################## +handle_rpi_pxe() { + if [ "$2" == "--------" ]; then + echo -e "\e[36m skipped: no proper serial number given.\e[0m"; + return 1; + fi + + if [ $(($KERNEL_VER < 413)) != 0 ]; then + handle_rpi_pxe_classic $1 $2 $3; + else + handle_rpi_pxe_classic $1 $2 $3; + # overlayFS is still not able to export via nfs + # handle_rpi_pxe_overlay $1 $2 $3; + fi +} + +########################################################################## handle_optional() { echo -e "\e[32mhandle_optional()\e[0m"; @@ -1231,45 +1494,39 @@ handle_optional() { ###################################################################### ## network bridge - #bridge#grep -q mod_install_server /etc/sysctrl.conf 2> /dev/null || { - #bridge#echo -e "\e[36m setup sysctrl for bridging\e[0m"; - #bridge#sudo sh -c "cat << EOF >> /etc/sysctl.conf -#bridge######################################### -#bridge### mod_install_server -#bridge#net.ipv4.ip_forward=1 -#bridge#net.ipv6.conf.all.forwarding=1 -#bridge##net.ipv6.conf.all.disable_ipv6 = 1 -#bridge#EOF"; - #bridge#} + grep -q mod_install_server /etc/sysctrl.conf 2> /dev/null || { + echo -e "\e[36m setup sysctrl for bridging\e[0m"; + sudo sh -c "cat << EOF >> /etc/sysctl.conf +######################################## +## mod_install_server +net.ipv4.ip_forward=1 +net.ipv6.conf.all.forwarding=1 +#net.ipv6.conf.all.disable_ipv6 = 1 +EOF"; + } ###################################################################### ## network bridge - #bridge#sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { - #bridge#echo -e "\e[36m setup iptables for bridging\e[0m"; - #bridge#sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE - #bridge#sudo dpkg-reconfigure iptables-persistent - #bridge#} + sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { + echo -e "\e[36m setup iptables for bridging\e[0m"; + sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE + sudo dpkg-reconfigure iptables-persistent + } } -###################################################################### -###################################################################### -###################################################################### -###################################################################### - - -###################################################################### +########################################################################## sudo mkdir -p $DST_ISO; sudo mkdir -p $DST_IMG; sudo mkdir -p $DST_TFTP_ETH0; sudo mkdir -p $DST_NFS_ETH0; -###################################################################### -handle_dnsmasq -handle_samba -handle_optional -handle_dhcpcd +########################################################################## +handle_dnsmasq; +handle_samba; +handle_optional; +handle_dhcpcd; ########################################################################## @@ -1281,55 +1538,57 @@ handle_dhcpcd # # # # # # -###################################################################### -###################################################################### +########################################################################## +########################################################################## ## comment out those entries, -## you don't want to download/mount/export/install for PXE boot -###################################################################### -###################################################################### -## handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -# handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -# handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -# handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -## handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -# handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -# handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -# handle_iso $DEFT_X64 $DEFT_X64_URL; -# handle_iso $KALI_X64 $KALI_X64_URL; -# handle_iso $PENTOO_X64 $PENTOO_X64_URL; -# handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -## handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -# handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; -handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +## you don't want to download, mount, export, install for PXE boot +########################################################################## +########################################################################## +handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +handle_iso $DEFT_X64 $DEFT_X64_URL; +handle_iso $DEFTZ_X64 $DEFTZ_X64_URL; +handle_iso $KALI_X64 $KALI_X64_URL; +handle_iso $PENTOO_X64 $PENTOO_X64_URL; +handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; +handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -## handle_iso $FEDORA_X64 $FEDORA_X64_URL; -## handle_iso $TAILS_X64 $TAILS_X64_URL; -###################################################################### -handle_pxe +handle_iso $CENTOS_X64 $CENTOS_X64_URL; +handle_iso $FEDORA_X64 $FEDORA_X64_URL; +handle_iso $TAILS_X64 $TAILS_X64_URL; +########################################################################## +handle_pxe; -###################################################################### -###################################################################### +########################################################################## +########################################################################## ## comment out those entries, -## you dont want to download/mount/export -###################################################################### -###################################################################### -#handle_zip_img $PI_CORE $PI_CORE_URL; +## you don't want to download, mount, export +########################################################################## +########################################################################## +handle_zip_img $PI_CORE $PI_CORE_URL; handle_zip_img $RPD_LITE $RPD_LITE_URL; -#handle_zip_img $RPD_FULL $RPD_FULL_URL; -###################################################################### -###################################################################### +handle_zip_img $RPD_FULL $RPD_FULL_URL; +########################################################################## +########################################################################## ## comment out those entries, -## you dont want to have as RPi3 network booting -###################################################################### -###################################################################### -#handle_network_booting $PI_CORE bootcode,config -handle_network_booting $RPD_LITE bootcode,cmdline,config,ssh,root,fstab,wpa,history -#handle_network_booting $RPD_FULL bootcode,cmdline,config,ssh,root,fstab,wpa,history +## you don't want to have as pi 3 pxe network booting +########################################################################## +########################################################################## +#handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; +#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history; +handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history; # # # # # # @@ -1341,7 +1600,7 @@ handle_network_booting $RPD_LITE bootcode,cmdline,config,ssh,root,fstab,wpa,hi ########################################################################## -###################################################################### +########################################################################## if [ -d "$SRC_ISO" ]; then echo -e "\e[32mbackup new iso images to usb-stick\e[0m"; sudo rsync -xa --info=progress2 $DST_ISO/*.iso $DST_ISO/*.url $SRC_ISO/ @@ -1351,7 +1610,7 @@ if [ -d "$SRC_IMG" ]; then echo -e "\e[32mbackup new images to usb-stick\e[0m"; sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ fi -###################################################################### +########################################################################## sync echo -e "\e[32mDone.\e[0m"; echo -e "\e[1;31mPlease reboot\e[0m"; From bc67578af8cb2df343974e8c087df8a5962cbebc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 2 Dec 2017 13:52:23 +0100 Subject: [PATCH 002/694] changed config.txt for RPi pxe boot --- install-pxe-server_pass2.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 5126574..a92e6c9 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -906,7 +906,7 @@ handle_iso() { echo -e "\e[32mhandle_iso(\e[0m$1\e[32m)\e[0m"; ###################################################################### # $1 : short name - # $2 : download ulr + # $2 : download url ###################################################################### local NAME=$1 local URL=$2 @@ -985,7 +985,7 @@ handle_zip_img() { echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; ###################################################################### # $1 : short name - # $2 : download ulr + # $2 : download url ###################################################################### local NAME=$1 local URL=$2 @@ -1133,19 +1133,25 @@ max_usb_current=1 disable_overscan=1 hdmi_force_hotplug=1 config_hdmi_boost=4 -hdmi_drive=2 -#hdmi_ignore_cec_init=1 cec_osd_name=NetBoot -######################################## -##4k@15Hz custom DMT - mode -#gpu_mem=128 +######################################### +# standard resolution +hdmi_drive=2 + +######################################### +##4k@24Hz or 25Hz custom DMT - mode +#hdmi_ignore_edid=0xa5000080 #hdmi_group=2 #hdmi_mode=87 -#hdmi_cvt 3840 2160 15 +#hdmi_pixel_freq_limit=400000000 +#hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 +##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 +#gpu_mem=128 +#framebuffer_width=3840 +#framebuffer_height=2160 #max_framebuffer_width=3840 #max_framebuffer_height=2160 -#hdmi_pixel_freq_limit=400000000 EOF"; fi @@ -1220,7 +1226,7 @@ handle_rpi_pxe_classic() { echo -e "\e[32mhandle_rpi_pxe_classic(\e[0m$1\e[32m)\e[0m"; ###################################################################### # $1 : short name - # S2 : serial number + # $2 : serial number # $3 : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) ###################################################################### local NAME=$1 From c2b3e54fc85087c1d175b7c85f16021b28383a54 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 2 Dec 2017 13:58:30 +0100 Subject: [PATCH 003/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index a92e6c9..145c753 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1133,6 +1133,8 @@ max_usb_current=1 disable_overscan=1 hdmi_force_hotplug=1 config_hdmi_boost=4 + +#hdmi_ignore_cec_init=1 cec_osd_name=NetBoot ######################################### From b63d4a7009dee739476a2c1cf64b10017a5558f1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 3 Dec 2017 09:43:38 +0100 Subject: [PATCH 004/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 145c753..45ffe30 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1142,18 +1142,25 @@ cec_osd_name=NetBoot hdmi_drive=2 ######################################### -##4k@24Hz or 25Hz custom DMT - mode -#hdmi_ignore_edid=0xa5000080 +# custom resolution +# 4k@24Hz or 25Hz custom DMT - mode +#gpu_mem=128 #hdmi_group=2 #hdmi_mode=87 #hdmi_pixel_freq_limit=400000000 -#hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 -##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 -#gpu_mem=128 -#framebuffer_width=3840 -#framebuffer_height=2160 #max_framebuffer_width=3840 #max_framebuffer_height=2160 +# +# #### implicit timing #### +# hdmi_cvt 3840 2160 24 +# #hdmi_cvt 3840 2160 25 +# +# #### explicit timing #### +# #hdmi_ignore_edid=0xa5000080 +# #hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 +# ##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 +# #framebuffer_width=3840 +# #framebuffer_height=2160 EOF"; fi From c8e51a6806d6d1a283ac7036a013b88761a899e6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Dec 2017 08:21:03 +0100 Subject: [PATCH 005/694] add: bindfs, for get overlayfs exported via nfs. add: apt-cacher-ng. chg: atp-get to apt, makes nicer visual output during installation. --- install-pxe-server_pass1.sh | 39 +++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index bf5bcf6..bff1f28 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-01 +# v2017-12-09 # # known issues: # @@ -55,17 +55,17 @@ grep -q net.ifnames /boot/cmdline.txt 2> /dev/null || { ###################################################################### sudo sync \ -&& echo -e "\e[32mupdate...\e[0m" && sudo apt-get -y update \ -&& echo -e "\e[32mupgrade...\e[0m" && sudo apt-get -y upgrade \ -&& echo -e "\e[32mautoremove...\e[0m" && sudo apt-get -y --purge autoremove \ -&& echo -e "\e[32mautoclean...\e[0m" && sudo apt-get autoclean \ +&& echo -e "\e[32mupdate...\e[0m" && sudo apt update \ +&& echo -e "\e[32mupgrade...\e[0m" && sudo apt upgrade -y \ +&& echo -e "\e[32mautoremove...\e[0m" && sudo apt autoremove -y --purge \ +&& echo -e "\e[32mautoclean...\e[0m" && sudo apt autoclean \ && sudo sync \ && echo -e "\e[32mDone.\e[0m" \ ; ###################################################################### echo -e "\e[32minstall nfs-kernel-server for pxe\e[0m"; -sudo apt-get -y install nfs-kernel-server; +sudo apt install -y nfs-kernel-server; sudo systemctl enable nfs-kernel-server.service; sudo systemctl restart nfs-kernel-server.service; @@ -77,44 +77,49 @@ sudo systemctl restart rpcbind.service; ###################################################################### echo -e "\e[32minstall dnsmasq for pxe\e[0m"; -sudo apt-get -y install dnsmasq +sudo apt install -y dnsmasq sudo systemctl enable dnsmasq.service; sudo systemctl restart dnsmasq.service; ###################################################################### echo -e "\e[32minstall samba\e[0m"; -sudo apt-get -y install samba; +sudo apt install -y samba; ###################################################################### echo -e "\e[32minstall rsync\e[0m"; -sudo apt-get -y install rsync; +sudo apt install -y rsync; ###################################################################### echo -e "\e[32minstall syslinux-common for pxe\e[0m"; -sudo apt-get -y install pxelinux syslinux-common; +sudo apt install -y pxelinux syslinux-common; ###################################################################### -#echo -e "\e[32minstall mergerfs\e[0m"; -#sudo apt-get -y install fuse mergerfs; +echo -e "\e[32minstall apt-cacher-ng\e[0m"; +sudo apt install -y apt-cacher-ng; + + +###################################################################### +echo -e "\e[32minstall bindfs\e[0m"; +sudo apt install -y fuse bindfs; ###################################################################### #bridge#echo -e "\e[32minstall network bridge\e[0m"; -#bridge#sudo apt-get -y install bridge-utils hostapd dnsmasq iptables iptables-persistent +#bridge#sudo apt install -y bridge-utils hostapd dnsmasq iptables iptables-persistent ###################################################################### echo -e "\e[32minstall network NAT\e[0m"; -sudo apt-get -y install iptables iptables-persistent +sudo apt install -y iptables iptables-persistent ###################################################################### $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { -sudo apt-get -y install chrony; +sudo apt install -y chrony; sudo systemctl enable chronyd.service; sudo systemctl restart chronyd.service; } @@ -126,10 +131,10 @@ sudo systemctl restart chronyd.service; ###################################################################### ## optional echo -e "\e[32minstall wireshark\e[0m"; -sudo apt-get -y install wireshark +sudo apt install -y wireshark sudo usermod -a -G wireshark $USER -#sudo apt-get -y --auto-remove purge avahi-daemon +#sudo apt purge -y --auto-remove avahi-daemon sudo systemctl stop avahi-daemon.service sudo systemctl disable avahi-daemon.service From 9d2d13182063c64e01ed2f7f695c71cb3b98aa11 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Dec 2017 10:37:13 +0100 Subject: [PATCH 006/694] add: bindfs, to solve several issues with overlayfs and export to nfs. add: chrony. add: bindfs option to iso handling, because of some filesystems on iso images has messed up file access permissions. --- install-pxe-server_pass2.sh | 302 +++++++++++++++++++++++------------- 1 file changed, 198 insertions(+), 104 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 45ffe30..b1dc186 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-01 +# v2017-12-09 # # known issues: # @@ -86,6 +86,7 @@ DST_PXE_EFI64=menu-efi64 KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) +FSID=10000 echo echo -e "$KERNEL_MAJOR.$KERNEL_MINOR \e[36mis kernel version\e[0m"; @@ -328,6 +329,12 @@ dhcp-option=$INTERFACE_ETH0, option:tftp-server, $IP_ETH0 #bridge#tftp-root=$DST_TFTP_BR0/, $INTERFACE_BR0 #bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, $IP_BR0 +# Time Server +dhcp-option=$INTERFACE_ETH0, option:nfs-server, $IP_ETH0 +dhcp-option=$INTERFACE_ETH0, option:4, $IP_ETH0 +dhcp-option=$INTERFACE_ETH1, option:nfs-server, $IP_ETH1 +dhcp-option=$INTERFACE_ETH1, option:4, $IP_ETH1 + # DHCP # do not give IPs that are in pool of DSL routers DHCP dhcp-range=$INTERFACE_ETH0, $IP_ETH0_START, $IP_ETH0_END, 24h @@ -907,6 +914,7 @@ handle_iso() { ###################################################################### # $1 : short name # $2 : download url + # $3 : optional bindfs ###################################################################### local NAME=$1 local URL=$2 @@ -936,19 +944,19 @@ handle_iso() { && grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ && ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ then - echo -e "\e[36m copy iso from usb-stick\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_ISO $DST_ISO; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + echo -e "\e[36m copy iso from usb-stick\e[0m"; + sudo rm -f $DST_ISO/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_ISO $DST_ISO; + sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; fi if ! [ -f "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ then - echo -e "\e[36m download iso image\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rm -f $DST_ISO/$FILE_ISO; - sudo wget -O $DST_ISO/$FILE_ISO $URL; + echo -e "\e[36m download iso image\e[0m"; + sudo rm -f $DST_ISO/$FILE_URL; + sudo rm -f $DST_ISO/$FILE_ISO; + sudo wget -O $DST_ISO/$FILE_ISO $URL; sudo sh -c "echo '$URL' > $DST_ISO/$FILE_URL"; sudo touch -r $DST_ISO/$FILE_ISO $DST_ISO/$FILE_URL; @@ -961,14 +969,27 @@ handle_iso() { sudo mkdir -p $DST_NFS_ETH0/$NAME; fi + if ! [ -d "$DST_NFS_ETH0/$NAME-original" ]; then + if grep -q "$3" == "bindfs"; then + echo -e "\e[36m create nfs folder\e[0m"; + sudo mkdir -p $DST_NFS_ETH0/$NAME-original; + fi + fi + if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; + if grep -q "$3" == "bindfs"; then + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME-original auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; + sudo sh -c "echo '$DST_NFS_ETH0/$NAME-original $DST_NFS_ETH0/$NAME bindfs ro,auto,force-user=root,force-group=root,parms=a+rX 0 11' >> /etc/fstab"; + else + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; + fi fi if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then echo -e "\e[36m add nfs folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; + FSID=$(($FSID + 1)) + sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi sudo mount $DST_NFS_ETH0/$NAME; @@ -1010,42 +1031,42 @@ handle_zip_img() { sudo umount -f $DST_NFS_ROOT 2> /dev/null; if [ "$URL" == "" ]; then - if ! [ -f "$DST_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_URL" ]; \ - then - echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f $FILE_IMG/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; - fi + if ! [ -f "$DST_IMG/$FILE_IMG" ] \ + && [ -f "$SRC_IMG/$FILE_IMG" ] \ + && [ -f "$SRC_IMG/$FILE_URL" ]; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f $FILE_IMG/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + fi else - if [ -f "$SRC_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_URL" ] \ - && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ - && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ - then - echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f $FILE_IMG/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; - fi - - if ! [ -f "$DST_IMG/$FILE_IMG" ] \ - || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ - then - echo -e "\e[36m download image\e[0m"; - sudo rm -f $DST_IMG/$FILE_IMG; - sudo rm -f $DST_IMG/$FILE_URL; - sudo wget -O $DST_IMG/$RAW_FILENAME_ZIP $URL; - echo -e "\e[36m extract image\e[0m"; - sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG; - sudo rm -f $DST_IMG/$RAW_FILENAME_ZIP; - sudo mv $DST_IMG/$RAW_FILENAME_IMG $DST_IMG/$FILE_IMG; + if [ -f "$SRC_IMG/$FILE_IMG" ] \ + && [ -f "$SRC_IMG/$FILE_URL" ] \ + && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ + && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f $FILE_IMG/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + fi + + if ! [ -f "$DST_IMG/$FILE_IMG" ] \ + || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ + then + echo -e "\e[36m download image\e[0m"; + sudo rm -f $DST_IMG/$FILE_IMG; + sudo rm -f $DST_IMG/$FILE_URL; + sudo wget -O $DST_IMG/$RAW_FILENAME_ZIP $URL; + echo -e "\e[36m extract image\e[0m"; + sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG; + sudo rm -f $DST_IMG/$RAW_FILENAME_ZIP; + sudo mv $DST_IMG/$RAW_FILENAME_IMG $DST_IMG/$FILE_IMG; sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; sudo touch -r $DST_IMG/$FILE_IMG $DST_IMG/$FILE_URL; - fi + fi fi if [ -f "$DST_IMG/$FILE_IMG" ]; then @@ -1060,34 +1081,36 @@ handle_zip_img() { ## boot if ! [ -d "$DST_NFS_BOOT" ]; then - echo -e "\e[36m create image-boot folder\e[0m"; - sudo mkdir -p $DST_NFS_BOOT; + echo -e "\e[36m create image-boot folder\e[0m"; + sudo mkdir -p $DST_NFS_BOOT; fi if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then - echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_BOOT auto ro,nofail,auto,loop,offset=$OFFSET_BOOT,sizelimit=$SIZE_BOOT 0 11' >> /etc/fstab"; + echo -e "\e[36m add image-boot to fstab\e[0m"; + sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_BOOT auto ro,nofail,auto,loop,offset=$OFFSET_BOOT,sizelimit=$SIZE_BOOT 0 11' >> /etc/fstab"; fi if ! grep -q "$DST_NFS_BOOT" /etc/exports; then - echo -e "\e[36m add image-boot folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_BOOT *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; + echo -e "\e[36m add image-boot folder to exports\e[0m"; + FSID=$(($FSID + 1)) + sudo sh -c "echo '$DST_NFS_BOOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi ## root if ! [ -d "$DST_NFS_ROOT" ]; then - echo -e "\e[36m create image-root folder\e[0m"; - sudo mkdir -p $DST_NFS_ROOT; + echo -e "\e[36m create image-root folder\e[0m"; + sudo mkdir -p $DST_NFS_ROOT; fi if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then - echo -e "\e[36m add image-root to fstab\e[0m"; + echo -e "\e[36m add image-root to fstab\e[0m"; sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_ROOT auto ro,nofail,auto,loop,offset=$OFFSET_ROOT,sizelimit=$SIZE_ROOT 0 11' >> /etc/fstab"; fi if ! grep -q "$DST_NFS_ROOT" /etc/exports; then - echo -e "\e[36m add image-root folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ROOT *(ro,async,no_subtree_check,root_squash,mp)' >> /etc/exports"; + echo -e "\e[36m add image-root folder to exports\e[0m"; + FSID=$(($FSID + 1)) + sudo sh -c "echo '$DST_NFS_ROOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi sudo mount $DST_NFS_BOOT; @@ -1226,6 +1249,17 @@ sudo raspi-config EOF"; sudo chown 1000:1000 $DST_CUSTOM_ROOT/home/pi/.bash_history; fi + + ################################################################## + if (echo $FLAGS | grep -q apt); then + ############################################################## + if [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then + echo -e "\e[36m add apt proxy file\e[0m"; + sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy +Acquire::http::Proxy "http://$IP_ETH0:3142"; +EOF"; + fi + fi fi } @@ -1344,13 +1378,14 @@ handle_rpi_pxe_overlay() { local DST_NFS_ROOT=$DST_NFS_ETH0/$DST_SN_ROOT local FILE_URL=$NAME.url ###################################################################### - local DST_LOWER=/srv/_lo local DST_LOWER_BOOT=/srv/_lo/$NAME_BOOT - local DST_LOWER_ROOT=/srv/_lo/$NAME_ROOT + local DST_LOWER_ROOT=$SRC_ROOT local DST_UPPER_BOOT=/srv/_up/$DST_SN_BOOT local DST_UPPER_ROOT=/srv/_up/$DST_SN_ROOT local DST_WORK_BOOT=/srv/_wk/$DST_SN_BOOT local DST_WORK_ROOT=/srv/_wk/$DST_SN_ROOT + local DST_MERGED_BOOT=/srv/_mg/$DST_SN_BOOT + local DST_MERGED_ROOT=/srv/_mg/$DST_SN_ROOT ###################################################################### local DST_CUSTOM_BOOT=$DST_NFS_BOOT local DST_CUSTOM_ROOT=$DST_NFS_ROOT @@ -1358,40 +1393,12 @@ handle_rpi_pxe_overlay() { sudo exportfs -vu *:$DST_NFS_BOOT 2> /dev/null; sudo umount -vf $DST_NFS_BOOT 2> /dev/null; + sudo umount -vf $DST_MERGED_BOOT 2> /dev/null; + sudo umount -vf $DST_LOWER_BOOT 2> /dev/null; sudo exportfs -vu *:$DST_NFS_ROOT 2> /dev/null; sudo umount -vf $DST_NFS_ROOT 2> /dev/null; - - - ###################################################################### - # NOTE: this folders will maybe shared by other overlayfs as lowerdir. - if ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_LOWER/$FILE_URL 2> /dev/null; then - echo -e "\e[36m delete old lowerdir files\e[0m"; - sudo rm -rf $DST_LOWER_BOOT; - sudo rm -rf $DST_LOWER_ROOT; - local FLAGS=$FLAGS,redo - fi - ###################################################################### - # WORKAROUND: overlayFS can't handle FAT32 file-system, - # so copy files to a lowerdir, instead of using the FAT32 partition - # NOTE: this folder will maybe shared by other overlayfs as lowerdir. - if ! [ -d "$DST_LOWER_BOOT" ]; then - echo -e "\e[36m copy boot files to lowerdir\e[0m"; - sudo mkdir -p $DST_LOWER_BOOT; - sudo rsync -xa --info=progress2 $SRC_BOOT/* $DST_LOWER_BOOT/ - fi - ###################################################################### - # WORKAROUND: overlayFS can't handle disk image mount correctly at boot time, - # so copy files to a lowerdir, instead of using disk image partition - # NOTE: this folder will maybe shared by other overlayfs as lowerdir. - if ! [ -d "$DST_LOWER_ROOT" ] \ - && (echo $FLAGS | grep -q root); then - echo -e "\e[36m copy root files to lowerdir\e[0m"; - sudo mkdir -p $DST_LOWER_ROOT; - sudo rsync -xa --info=progress2 $SRC_ROOT/* $DST_LOWER_ROOT/ - fi - ###################################################################### - sudo cp $DST_IMG/$FILE_URL $DST_LOWER/$FILE_URL; + sudo umount -vf $DST_MERGED_ROOT 2> /dev/null; ###################################################################### @@ -1401,10 +1408,13 @@ handle_rpi_pxe_overlay() { sudo rm -rf $DST_NFS_BOOT; sudo rm -rf $DST_UPPER_BOOT; sudo rm -rf $DST_WORK_BOOT; + sudo rm -rf $DST_MERGED_BOOT; + sudo rm -rf $DST_LOWER_BOOT; echo -e "\e[36m delete old root files\e[0m"; sudo rm -rf $DST_NFS_ROOT; sudo rm -rf $DST_UPPER_ROOT; sudo rm -rf $DST_WORK_ROOT; + sudo rm -rf $DST_MERGED_BOOT; sudo sed /etc/fstab -i -e "/$DST_SN_BOOT/d" sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" sudo sed /etc/exports -i -e "/$DST_SN_BOOT/d" @@ -1416,27 +1426,45 @@ handle_rpi_pxe_overlay() { if ! [ -d "$DST_NFS_BOOT" ]; then sudo mkdir -p $DST_NFS_BOOT; fi if ! [ -d "$DST_UPPER_BOOT" ]; then sudo mkdir -p $DST_UPPER_BOOT; fi if ! [ -d "$DST_WORK_BOOT" ]; then sudo mkdir -p $DST_WORK_BOOT; fi + if ! [ -d "$DST_MERGED_BOOT" ]; then sudo mkdir -p $DST_MERGED_BOOT; fi + if ! [ -d "$DST_LOWER_BOOT" ]; then sudo mkdir -p $DST_LOWER_BOOT; fi ###################################################################### if (echo $FLAGS | grep -q root); then if ! [ -d "$DST_NFS_ROOT" ]; then sudo mkdir -p $DST_NFS_ROOT; fi if ! [ -d "$DST_UPPER_ROOT" ]; then sudo mkdir -p $DST_UPPER_ROOT; fi if ! [ -d "$DST_WORK_ROOT" ]; then sudo mkdir -p $DST_WORK_ROOT; fi + if ! [ -d "$DST_MERGED_ROOT" ]; then sudo mkdir -p $DST_MERGED_ROOT; fi fi + ###################################################################### + if ! [ -f "/etc/mount-delayed.sh" ]; then sudo touch /etc/mount-delayed.sh; sudo chmod 0755 /etc/mount-delayed.sh; fi + if ! grep -q "mount-delayed.sh" /etc/rc.local; then + sudo sed /etc/rc.local -i -e 's/^exit 0$/\########################################\n## workaround\n/etc/mount-delayed.sh;\n\nexit 0/' + fi + sudo sed /etc/mount-delayed.sh -i -e "/$DST_SN_BOOT/d" + sudo sh -c "echo 'mount $DST_LOWER_BOOT' >> /etc/mount-delayed.sh"; + sudo sh -c "echo 'mount $DST_MERGED_BOOT' >> /etc/mount-delayed.sh"; + sudo sh -c "echo 'mount $DST_NFS_BOOT' >> /etc/mount-delayed.sh"; + sudo sed /etc/mount-delayed.sh -i -e "/$DST_SN_ROOT/d" + if (echo $FLAGS | grep -q root); then + sudo sh -c "echo 'mount $DST_MERGED_ROOT' >> /etc/mount-delayed.sh"; + sudo sh -c "echo 'mount $DST_NFS_ROOT' >> /etc/mount-delayed.sh"; + fi ###################################################################### if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo 'overlay $DST_NFS_BOOT overlay rw,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT 0 12' >> /etc/fstab"; - #sudo sh -c "echo 'overlay $DST_NFS_BOOT overlay rw,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT,redirect_dir=off,index=off 0 12' >> /etc/fstab"; + sudo sh -c "echo '$SRC_BOOT $DST_LOWER_BOOT bindfs ro,noauto 0 12' >> /etc/fstab"; + sudo sh -c "echo 'overlay $DST_MERGED_BOOT overlay rw,noauto,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT 0 13' >> /etc/fstab"; + sudo sh -c "echo '$DST_MERGED_BOOT $DST_NFS_BOOT bindfs rw,noauto 0 14' >> /etc/fstab"; fi ###################################################################### if (echo $FLAGS | grep -q root); then if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then echo -e "\e[36m add image-root to fstab\e[0m"; - sudo sh -c "echo 'overlay $DST_NFS_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT 0 12' >> /etc/fstab"; - #sudo sh -c "echo 'overlay $DST_NFS_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT,redirect_dir=off,index=off 0 12' >> /etc/fstab"; + sudo sh -c "echo 'overlay $DST_MERGED_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT 0 13' >> /etc/fstab"; + sudo sh -c "echo '$DST_MERGED_ROOT $DST_NFS_ROOT bindfs rw,noauto 0 14' >> /etc/fstab"; fi fi @@ -1445,8 +1473,13 @@ handle_rpi_pxe_overlay() { if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi ###################################################################### + sudo mount -v $DST_LOWER_BOOT; + sudo mount -v $DST_MERGED_BOOT; sudo mount -v $DST_NFS_BOOT; - if (echo $FLAGS | grep -q root); then sudo mount -v $DST_NFS_ROOT; fi + if (echo $FLAGS | grep -q root); then + sudo mount -v $DST_MERGED_ROOT; + sudo mount -v $DST_NFS_ROOT; + fi ###################################################################### handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; @@ -1486,11 +1519,15 @@ handle_rpi_pxe() { fi if [ $(($KERNEL_VER < 413)) != 0 ]; then - handle_rpi_pxe_classic $1 $2 $3; + # handle_rpi_pxe_classic $1 $2 $3; + # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy + handle_rpi_pxe_overlay $1 $2 $3; else - handle_rpi_pxe_classic $1 $2 $3; # overlayFS is still not able to export via nfs - # handle_rpi_pxe_overlay $1 $2 $3; + #handle_rpi_pxe_classic $1 $2 $3; + + # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy + handle_rpi_pxe_overlay $1 $2 $3; fi } @@ -1508,26 +1545,83 @@ handle_optional() { ###################################################################### - ## network bridge + ## network nat grep -q mod_install_server /etc/sysctrl.conf 2> /dev/null || { - echo -e "\e[36m setup sysctrl for bridging\e[0m"; + echo -e "\e[36m setup sysctrl for nat\e[0m"; sudo sh -c "cat << EOF >> /etc/sysctl.conf ######################################## ## mod_install_server net.ipv4.ip_forward=1 -net.ipv6.conf.all.forwarding=1 -#net.ipv6.conf.all.disable_ipv6 = 1 +#net.ipv6.conf.all.forwarding=1 +net.ipv6.conf.all.disable_ipv6 = 1 EOF"; } ###################################################################### - ## network bridge + ## network nat sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { - echo -e "\e[36m setup iptables for bridging\e[0m"; + echo -e "\e[36m setup iptables for nat\e[0m"; sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE sudo dpkg-reconfigure iptables-persistent } + + + ###################################################################### + ## chrony + grep -q mod_install_server /etc/chrony/chrony.conf 2> /dev/null || { + echo -e "\e[36m setup chrony\e[0m"; + sudo sh -c "cat << EOF > /etc/chrony/chrony.conf +######################################## +## mod_install_server + +# Welcome to the chrony configuration file. See chrony.conf(5) for more +# information about usuable directives. +server ptbtime1.ptb.de iburst +server ptbtime2.ptb.de iburst +server ptbtime3.ptb.de iburst +server ntp1.oma.be iburst +server ntp2.oma.be iburst +server ntp.certum.pl iburst +server ntp1.sp.se iburst +server ntp2.sp.se iburst + +server char-ntp-pool.charite.de +server isis.uni-paderborn.de + +pool de.pool.ntp.org iburst + +# This directive specify the location of the file containing ID/key pairs for +# NTP authentication. +keyfile /etc/chrony/chrony.keys + +# This directive specify the file into which chronyd will store the rate +# information. +driftfile /var/lib/chrony/chrony.drift + +# Uncomment the following line to turn logging on. +#log tracking measurements statistics + +# Log files location. +logdir /var/log/chrony + +# Stop bad estimates upsetting machine clock. +maxupdateskew 100.0 + +# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the +# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive. +hwclockfile /etc/adjtime + +# This directive enables kernel synchronisation (every 11 minutes) of the +# real-time clock. Note that it can’t be used along with the 'rtcfile' directive. +rtcsync + +# Step the system clock instead of slewing it if the adjustment is larger than +# one second, but only in the first three clock updates. +makestep 1 3 +EOF"; + } + } @@ -1569,7 +1663,7 @@ handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $DEFT_X64 $DEFT_X64_URL; -handle_iso $DEFTZ_X64 $DEFTZ_X64_URL; +handle_iso $DEFTZ_X64 $DEFTZ_X64_URL bindfs; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL; handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; @@ -1602,8 +1696,8 @@ handle_zip_img $RPD_FULL $RPD_FULL_URL; ########################################################################## ########################################################################## #handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; -#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history; -handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history; +#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; # # # # # # From 8d7824d3b053dc7178f58498f07a7fc54dafe080 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 00:22:53 +0100 Subject: [PATCH 007/694] fixed some syntax errors --- install-pxe-server_pass2.sh | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b1dc186..f46c37c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-09 +# v2017-12-10 # # known issues: # @@ -330,10 +330,8 @@ dhcp-option=$INTERFACE_ETH0, option:tftp-server, $IP_ETH0 #bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, $IP_BR0 # Time Server -dhcp-option=$INTERFACE_ETH0, option:nfs-server, $IP_ETH0 -dhcp-option=$INTERFACE_ETH0, option:4, $IP_ETH0 -dhcp-option=$INTERFACE_ETH1, option:nfs-server, $IP_ETH1 -dhcp-option=$INTERFACE_ETH1, option:4, $IP_ETH1 +dhcp-option=$INTERFACE_ETH0, option:ntp-server, $IP_ETH0 +dhcp-option=$INTERFACE_ETH1, option:ntp-server, $IP_ETH1 # DHCP # do not give IPs that are in pool of DSL routers DHCP @@ -970,7 +968,7 @@ handle_iso() { fi if ! [ -d "$DST_NFS_ETH0/$NAME-original" ]; then - if grep -q "$3" == "bindfs"; then + if [ "$3" == "bindfs" ]; then echo -e "\e[36m create nfs folder\e[0m"; sudo mkdir -p $DST_NFS_ETH0/$NAME-original; fi @@ -978,7 +976,7 @@ handle_iso() { if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; - if grep -q "$3" == "bindfs"; then + if [ "$3" == "bindfs" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME-original auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_NFS_ETH0/$NAME-original $DST_NFS_ETH0/$NAME bindfs ro,auto,force-user=root,force-group=root,parms=a+rX 0 11' >> /etc/fstab"; else @@ -1250,16 +1248,16 @@ EOF"; sudo chown 1000:1000 $DST_CUSTOM_ROOT/home/pi/.bash_history; fi - ################################################################## - if (echo $FLAGS | grep -q apt); then - ############################################################## - if [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then - echo -e "\e[36m add apt proxy file\e[0m"; - sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy -Acquire::http::Proxy "http://$IP_ETH0:3142"; + ################################################################## + if (echo $FLAGS | grep -q apt); then + ############################################################## + if [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then + echo -e "\e[36m add apt proxy file\e[0m"; + sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy +Acquire::http::Proxy \"http://$IP_ETH0:3142\"; EOF"; + fi fi - fi fi } From e9842f1ac4fd4f94e9d177b26ba5d33357caffe7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 00:57:12 +0100 Subject: [PATCH 008/694] fixed some more syntax errors --- install-pxe-server_pass2.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index f46c37c..120bc45 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -925,6 +925,7 @@ handle_iso() { sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + if [ "$3" == "bindfs" ]; then sudo umount -f $DST_NFS_ETH0/$NAME-original 2> /dev/null; fi if [ "$URL" == "" ]; then if ! [ -f "$DST_ISO/$FILE_ISO" ] \ @@ -978,7 +979,7 @@ handle_iso() { echo -e "\e[36m add iso image to fstab\e[0m"; if [ "$3" == "bindfs" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME-original auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; - sudo sh -c "echo '$DST_NFS_ETH0/$NAME-original $DST_NFS_ETH0/$NAME bindfs ro,auto,force-user=root,force-group=root,parms=a+rX 0 11' >> /etc/fstab"; + sudo sh -c "echo '$DST_NFS_ETH0/$NAME-original $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; else sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; fi @@ -990,6 +991,7 @@ handle_iso() { sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi + if [ "$3" == "bindfs" ]; then sudo mount $DST_NFS_ETH0/$NAME-original; fi sudo mount $DST_NFS_ETH0/$NAME; sudo exportfs *:$DST_NFS_ETH0/$NAME; else @@ -1452,9 +1454,9 @@ handle_rpi_pxe_overlay() { ###################################################################### if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo '$SRC_BOOT $DST_LOWER_BOOT bindfs ro,noauto 0 12' >> /etc/fstab"; + sudo sh -c "echo '$SRC_BOOT $DST_LOWER_BOOT fuse.bindfs ro,noauto 0 12' >> /etc/fstab"; sudo sh -c "echo 'overlay $DST_MERGED_BOOT overlay rw,noauto,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT 0 13' >> /etc/fstab"; - sudo sh -c "echo '$DST_MERGED_BOOT $DST_NFS_BOOT bindfs rw,noauto 0 14' >> /etc/fstab"; + sudo sh -c "echo '$DST_MERGED_BOOT $DST_NFS_BOOT fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; fi ###################################################################### @@ -1462,7 +1464,7 @@ handle_rpi_pxe_overlay() { if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then echo -e "\e[36m add image-root to fstab\e[0m"; sudo sh -c "echo 'overlay $DST_MERGED_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT 0 13' >> /etc/fstab"; - sudo sh -c "echo '$DST_MERGED_ROOT $DST_NFS_ROOT bindfs rw,noauto 0 14' >> /etc/fstab"; + sudo sh -c "echo '$DST_MERGED_ROOT $DST_NFS_ROOT fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; fi fi From d6e941eea4810a5bd7fa1ac4aa92ff306c30f223 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 02:28:18 +0100 Subject: [PATCH 009/694] fixed forgotten fsid --- install-pxe-server_pass2.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 120bc45..619ad03 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -86,9 +86,13 @@ DST_PXE_EFI64=menu-efi64 KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) +FSID=$(cat ~/.config/fsid) +[ "$FSID" == "" ] && { FSID=10000 +} echo +echo -e "$FSID \e[36mfsid\e[0m"; echo -e "$KERNEL_MAJOR.$KERNEL_MINOR \e[36mis kernel version\e[0m"; echo -e "$INTERFACE_ETH0 \e[36mis used as primary networkadapter for PXE\e[0m"; echo -e "$IP_ETH0 \e[36mis used as primary IP address for PXE\e[0m"; @@ -1439,7 +1443,7 @@ handle_rpi_pxe_overlay() { ###################################################################### if ! [ -f "/etc/mount-delayed.sh" ]; then sudo touch /etc/mount-delayed.sh; sudo chmod 0755 /etc/mount-delayed.sh; fi if ! grep -q "mount-delayed.sh" /etc/rc.local; then - sudo sed /etc/rc.local -i -e 's/^exit 0$/\########################################\n## workaround\n/etc/mount-delayed.sh;\n\nexit 0/' + sudo sed /etc/rc.local -i -e "s/^exit 0$/\########################################\n## workaround\n\/etc\/mount-delayed.sh;\n\nexit 0/" fi sudo sed /etc/mount-delayed.sh -i -e "/$DST_SN_BOOT/d" sudo sh -c "echo 'mount $DST_LOWER_BOOT' >> /etc/mount-delayed.sh"; @@ -1487,7 +1491,8 @@ handle_rpi_pxe_overlay() { ###################################################################### if ! grep -q "$DST_NFS_BOOT" /etc/exports; then echo -e "\e[36m add $DST_NFS_BOOT to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + FSID=$(($FSID + 1)) + sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi sudo exportfs -v *:$DST_NFS_BOOT; @@ -1495,7 +1500,8 @@ handle_rpi_pxe_overlay() { if (echo $FLAGS | grep -q root); then if ! grep -q "$DST_NFS_ROOT" /etc/exports; then echo -e "\e[36m add $DST_NFS_ROOT to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + FSID=$(($FSID + 1)) + sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi sudo exportfs -v *:$DST_NFS_ROOT; else @@ -1720,6 +1726,7 @@ if [ -d "$SRC_IMG" ]; then sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ fi ########################################################################## +echo $FSID > ~/.config/fsid sync echo -e "\e[32mDone.\e[0m"; echo -e "\e[1;31mPlease reboot\e[0m"; From 9dea9bade61f556a0759cad33ad4ba24b0b2d1df Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 02:40:21 +0100 Subject: [PATCH 010/694] few more fixes --- install-pxe-server_pass2.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 619ad03..8016785 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1486,6 +1486,7 @@ handle_rpi_pxe_overlay() { fi ###################################################################### + sudo cp $DST_IMG/$FILE_URL $DST_CUSTOM_BOOT/$FILE_URL; handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; ###################################################################### @@ -1552,7 +1553,7 @@ handle_optional() { ###################################################################### ## network nat - grep -q mod_install_server /etc/sysctrl.conf 2> /dev/null || { + grep -q mod_install_server /etc/sysctl.conf 2> /dev/null || { echo -e "\e[36m setup sysctrl for nat\e[0m"; sudo sh -c "cat << EOF >> /etc/sysctl.conf ######################################## From c94fe7f3190c094be0e3c32688026ea2f850ad48 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 10:32:12 +0100 Subject: [PATCH 011/694] del: verbose output --- install-pxe-server_pass2.sh | 51 +++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8016785..aec4949 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1205,9 +1205,10 @@ EOF"; sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/fstab ######################################## proc /proc proc defaults 0 0 -$IP_ETH0:$DST_NFS_ROOT / nfs defaults,nofail,noatime 0 1 -$IP_ETH0:$DST_NFS_BOOT /boot nfs defaults,nofail,noatime 0 2 +$IP_ETH0:$DST_NFS_ROOT / nfs defaults,noatime 0 1 +$IP_ETH0:$DST_NFS_BOOT /boot nfs defaults,noatime 0 2 EOF"; + sudo rm $DST_CUSTOM_ROOT/etc/init.d/resize2fs_once; fi ############################################################## @@ -1242,7 +1243,8 @@ EOF"; echo -e "\e[36m add .bash_history file\e[0m"; sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/home/pi/.bash_history sudo poweroff -sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y --purge autoremove && sudo apt-get -y autoclean && sync && echo Done. +sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y --purge && sudo apt autoclean -y && sync && echo Done. +sudo nano /etc/resolv.conf ip route sudo ip route del default dev eth0 sudo reboot @@ -1257,7 +1259,7 @@ EOF"; ################################################################## if (echo $FLAGS | grep -q apt); then ############################################################## - if [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then + if ! [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then echo -e "\e[36m add apt proxy file\e[0m"; sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy Acquire::http::Proxy \"http://$IP_ETH0:3142\"; @@ -1302,7 +1304,7 @@ handle_rpi_pxe_classic() { ###################################################################### if (echo $FLAGS | grep -q redo) \ - || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_UPPER_BOOT/$FILE_URL 2> /dev/null; then + || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_NFS_BOOT/$FILE_URL 2> /dev/null; then echo -e "\e[36m delete old boot files\e[0m"; sudo rm -rf $DST_NFS_BOOT; echo -e "\e[36m delete old root files\e[0m"; @@ -1328,12 +1330,11 @@ handle_rpi_pxe_classic() { sudo rsync -xa --info=progress2 $SRC_ROOT/* $DST_NFS_ROOT/ fi - sudo cp $DST_IMG/$FILE_URL $DST_LOWER/$FILE_URL; - ###################################################################### if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi ###################################################################### + sudo cp $DST_IMG/$FILE_URL $DST_CUSTOM_BOOT/$FILE_URL; handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; ###################################################################### @@ -1395,14 +1396,14 @@ handle_rpi_pxe_overlay() { local DST_CUSTOM_ROOT=$DST_NFS_ROOT ###################################################################### - sudo exportfs -vu *:$DST_NFS_BOOT 2> /dev/null; - sudo umount -vf $DST_NFS_BOOT 2> /dev/null; - sudo umount -vf $DST_MERGED_BOOT 2> /dev/null; - sudo umount -vf $DST_LOWER_BOOT 2> /dev/null; + sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; + sudo umount -f $DST_NFS_BOOT 2> /dev/null; + sudo umount -f $DST_MERGED_BOOT 2> /dev/null; + sudo umount -f $DST_LOWER_BOOT 2> /dev/null; - sudo exportfs -vu *:$DST_NFS_ROOT 2> /dev/null; - sudo umount -vf $DST_NFS_ROOT 2> /dev/null; - sudo umount -vf $DST_MERGED_ROOT 2> /dev/null; + sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; + sudo umount -f $DST_NFS_ROOT 2> /dev/null; + sudo umount -f $DST_MERGED_ROOT 2> /dev/null; ###################################################################### @@ -1474,19 +1475,19 @@ handle_rpi_pxe_overlay() { ###################################################################### - if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi - - ###################################################################### - sudo mount -v $DST_LOWER_BOOT; - sudo mount -v $DST_MERGED_BOOT; - sudo mount -v $DST_NFS_BOOT; + sudo mount $DST_LOWER_BOOT; + sudo mount $DST_MERGED_BOOT; + sudo mount $DST_NFS_BOOT; if (echo $FLAGS | grep -q root); then - sudo mount -v $DST_MERGED_ROOT; - sudo mount -v $DST_NFS_ROOT; + sudo mount $DST_MERGED_ROOT; + sudo mount $DST_NFS_ROOT; fi ###################################################################### - sudo cp $DST_IMG/$FILE_URL $DST_CUSTOM_BOOT/$FILE_URL; + if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi + + ###################################################################### + sudo cp $DST_IMG/$FILE_URL $DST_CUSTOM_BOOT/$FILE_URL; handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; ###################################################################### @@ -1495,7 +1496,7 @@ handle_rpi_pxe_overlay() { FSID=$(($FSID + 1)) sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi - sudo exportfs -v *:$DST_NFS_BOOT; + sudo exportfs *:$DST_NFS_BOOT; ###################################################################### if (echo $FLAGS | grep -q root); then @@ -1504,7 +1505,7 @@ handle_rpi_pxe_overlay() { FSID=$(($FSID + 1)) sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$FSID)' >> /etc/exports"; fi - sudo exportfs -v *:$DST_NFS_ROOT; + sudo exportfs *:$DST_NFS_ROOT; else sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" From d2945f7c76f0899b54f5838d435157f930bf9ede Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 10:40:04 +0100 Subject: [PATCH 012/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 51 +++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index bff1f28..eda03c6 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-09 +# v2017-12-10 # # known issues: # @@ -172,32 +172,45 @@ sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts ## optional grep -q mod_install_server /boot/config.txt 2> /dev/null || { echo -e "\e[32msetup /boot/config.txt\e[0m"; -sudo sed /boot/config.txt -i -e 's/^max_usb_current=/\#max_usb_current=/g' -sudo sed /boot/config.txt -i -e 's/^force_turbo=/\#force_turbo=/g' -sudo sed /boot/config.txt -i -e 's/^disable_overscan=/\#disable_overscan=/g' -sudo sed /boot/config.txt -i -e 's/^hdmi_force_hotplug=/\#hdmi_force_hotplug=/g' -sudo sed /boot/config.txt -i -e 's/^config_hdmi_boost=/\#config_hdmi_boost=/g' -sudo sed /boot/config.txt -i -e 's/^hdmi_drive=/\#hdmi_drive=/g' -sudo sed /boot/config.txt -i -e 's/^cec_osd_name=/\#cec_osd_name=/g' sudo sh -c "echo '######################################## ## mod_install_server -[pi2] -total_mem=1024 +dtparam=audio=on -[pi3] -total_mem=1024 - -[all] max_usb_current=1 -force_turbo=1 +#force_turbo=1 disable_overscan=1 -config_hdmi_boost=4 hdmi_force_hotplug=1 -hdmi_drive=2 -hdmi_ignore_cec_init=1 +config_hdmi_boost=4 + +#hdmi_ignore_cec_init=1 cec_osd_name=PXE-Server -' >> /boot/config.txt" + +######################################### +# standard resolution +hdmi_drive=2 + +######################################### +# custom resolution +# 4k@24Hz or 25Hz custom DMT - mode +#gpu_mem=128 +#hdmi_group=2 +#hdmi_mode=87 +#hdmi_pixel_freq_limit=400000000 +#max_framebuffer_width=3840 +#max_framebuffer_height=2160 +# +# #### implicit timing #### +# hdmi_cvt 3840 2160 24 +# #hdmi_cvt 3840 2160 25 +# +# #### explicit timing #### +# #hdmi_ignore_edid=0xa5000080 +# #hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 +# ##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 +# #framebuffer_width=3840 +# #framebuffer_height=2160 +' > /boot/config.txt" } From 8d0251194f0c8946565466387950a2d3c0992b87 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 13:18:00 +0100 Subject: [PATCH 013/694] limit samba to specific network interface only --- install-pxe-server_pass2.sh | 196 ++++++++++++++++++++++++++++++++++-- 1 file changed, 190 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index aec4949..cbe2ba5 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -316,7 +316,7 @@ handle_dnsmasq() { ## mod_install_server log-dhcp -log-queries +#log-queries # interface selection interface=$INTERFACE_ETH0 @@ -383,17 +383,201 @@ handle_samba() { ###################################################################### grep -q mod_install_server /etc/samba/smb.conf 2> /dev/null || ( \ echo -e "\e[36m setup samba\e[0m"; - sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; - sudo sh -c "cat << EOF >> /etc/samba/smb.conf + #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; + sudo sh -c "cat << EOF > /etc/samba/smb.conf +# +# Sample configuration file for the Samba suite for Debian GNU/Linux. +# +# +# This is the main Samba configuration file. You should read the +# smb.conf(5) manual page in order to understand the options listed +# here. Samba has a huge number of configurable options most of which +# are not shown in this example +# +# Some options that are often worth tuning have been included as +# commented-out examples in this file. +# - When such options are commented with ';', the proposed setting +# differs from the default Samba behaviour +# - When commented with '#', the proposed setting is the default +# behaviour of Samba but the option is considered important +# enough to be mentioned here +# +# NOTE: Whenever you modify this file you should run the command +# 'testparm' to check that you have not made any basic syntactic +# errors. + +#======================= Global Settings ======================= + +[global] + +## Browsing/Identification ### + +# Change this to the workgroup/NT-domain name your Samba server will part of + workgroup = WORKGROUP + +# Windows Internet Name Serving Support Section: +# WINS Support - Tells the NMBD component of Samba to enable its WINS Server +# wins support = no + +# WINS Server - Tells the NMBD components of Samba to be a WINS Client +# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both +; wins server = w.x.y.z + +# This will prevent nmbd to search for NetBIOS names through DNS. +dns proxy = yes +enhanced browsing = no + +#### Networking #### + +# The specific set of interfaces / networks to bind to +# This can be either the interface name or an IP address/netmask; +# interface names are normally preferred +interfaces = $IP_ETH0_0/24 $INTERFACE_ETH0 + +# Only bind to the named interfaces and/or networks; you must use the +# 'interfaces' option above to use this. +# It is recommended that you enable this feature if your Samba machine is +# not protected by a firewall or is a firewall itself. However, this +# option cannot handle dynamic or non-broadcast interfaces correctly. +bind interfaces only = yes + + +#### Debugging/Accounting #### + +# This tells Samba to use a separate log file for each machine +# that connects + log file = /var/log/samba/log.%m + +# Cap the size of the individual log files (in KiB). + max log size = 1000 + +# If you want Samba to only log through syslog then set the following +# parameter to 'yes'. +# syslog only = no + +# We want Samba to log a minimum amount of information to syslog. Everything +# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log +# through syslog you should set the following parameter to something higher. + syslog = 0 + +# Do something sensible when Samba crashes: mail the admin a backtrace + panic action = /usr/share/samba/panic-action %d + +####### Authentication ####### + +# Server role. Defines in which mode Samba will operate. Possible +# values are 'standalone server', 'member server', 'classic primary +# domain controller', 'classic backup domain controller', 'active +# directory domain controller'. +# +# Most people will want 'standalone sever' or 'member server'. +# Running as 'active directory domain controller' will require first +# running 'samba-tool domain provision' to wipe databases and create a +# new domain. + server role = standalone server + +# If you are using encrypted passwords, Samba will need to know what +# password database type you are using. + passdb backend = tdbsam + + obey pam restrictions = yes + +# This boolean parameter controls whether Samba attempts to sync the Unix +# password with the SMB password when the encrypted SMB password in the +# passdb is changed. + unix password sync = yes + +# For Unix password sync to work on a Debian GNU/Linux system, the following +# parameters must be set (thanks to Ian Kahan < for +# sending the correct chat script for the passwd program in Debian Sarge). + passwd program = /usr/bin/passwd %u + passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . + +# This boolean controls whether PAM will be used for password changes +# when requested by an SMB client instead of the program listed in +# 'passwd program'. The default is 'no'. + pam password change = yes + +# This option controls how unsuccessful authentication attempts are mapped +# to anonymous connections + map to guest = bad user + +########## Domains ########### + +# +# The following settings only takes effect if 'server role = primary +# classic domain controller', 'server role = backup domain controller' +# or 'domain logons' is set +# + +# It specifies the location of the user's +# profile directory from the client point of view) The following +# required a [profiles] share to be setup on the samba server (see +# below) +; logon path = \\%N\profiles\%U +# Another common choice is storing the profile in the user's home directory +# (this is Samba's default) +# logon path = \\%N\%U\profile + +# The following setting only takes effect if 'domain logons' is set +# It specifies the location of a user's home directory (from the client +# point of view) +; logon drive = H: +# logon home = \\%N\%U + +# The following setting only takes effect if 'domain logons' is set +# It specifies the script to run during logon. The script must be stored +# in the [netlogon] share +# NOTE: Must be store in 'DOS' file format convention +; logon script = logon.cmd + +# This allows Unix users to be created on the domain controller via the SAMR +# RPC pipe. The example command creates a user account with a disabled Unix +# password; please adapt to your needs +; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos '' %u + +# This allows machine accounts to be created on the domain controller via the +# SAMR RPC pipe. +# The following assumes a 'machines' group exists on the system +; add machine script = /usr/sbin/useradd -g machines -c '%u machine account' -d /var/lib/samba -s /bin/false %u + +# This allows Unix groups to be created on the domain controller via the SAMR +# RPC pipe. +; add group script = /usr/sbin/addgroup --force-badname %g + +############ Misc ############ + +# Using the following line enables you to customise your configuration +# on a per machine basis. The %m gets replaced with the netbios name +# of the machine that is connecting +; include = /home/samba/etc/smb.conf.%m + +# Some defaults for winbind (make sure you're not using the ranges +# for something else.) +; idmap uid = 10000-20000 +; idmap gid = 10000-20000 +; template shell = /bin/bash + +# Setup usershare options to enable non-root users to share folders +# with the net usershare command. + +# Maximum number of usershare. 0 (default) means that usershare is disabled. +; usershare max shares = 100 + +# Allow users who've been granted usershare privileges to create +# public shares, not just authenticated ones + usershare allow guests = yes + +#======================= Share Definitions ======================= ######################################## ## mod_install_server [srv] - path = $DST_ROOT/ + path = $DST_ROOT comment = /srv folder of pxe-server guest ok = yes guest only = yes - browseable = yes + browseable = no read only = no create mask = 0644 directory mask = 0755 @@ -408,7 +592,7 @@ handle_samba() { comment = /media folder of pxe-server guest ok = yes guest only = yes - browseable = yes + browseable = no read only = no create mask = 0644 directory mask = 0755 From ea4d090c2851e26abb9e1b18389409b53993e309 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 14:11:28 +0100 Subject: [PATCH 014/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index eda03c6..7d754bc 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -41,25 +41,36 @@ sudo mount -a; ###################################################################### grep -q max_loop /boot/cmdline.txt 2> /dev/null || { - echo -e "\e[32msetup cmdline.txt for more loop devices\e[0m"; - sudo sed -i '1 s/$/ max_loop=64/' /boot/cmdline.txt; + echo -e "\e[32msetup cmdline.txt for more loop devices\e[0m"; + sudo sed -i '1 s/$/ max_loop=64/' /boot/cmdline.txt; } - ###################################################################### grep -q net.ifnames /boot/cmdline.txt 2> /dev/null || { - echo -e "\e[32msetup cmdline.txt for old style network interface names\e[0m"; - sudo sed -i '1 s/$/ net.ifnames=0/' /boot/cmdline.txt; + echo -e "\e[32msetup cmdline.txt for old style network interface names\e[0m"; + sudo sed -i '1 s/$/ net.ifnames=0/' /boot/cmdline.txt; +} + +###################################################################### +grep -q quiet /boot/cmdline.txt 2> /dev/null && { + echo -e "\e[32msetup cmdline.txt for more boot output\e[0m"; + sudo sed -i '1 s/ quiet//' /boot/cmdline.txt; +} + +###################################################################### +grep -q splash /boot/cmdline.txt 2> /dev/null && { + echo -e "\e[32msetup cmdline.txt for no splash screen\e[0m"; + sudo sed -i '1 s/ splash//' /boot/cmdline.txt; } ###################################################################### -sudo sync \ +echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mupdate...\e[0m" && sudo apt update \ && echo -e "\e[32mupgrade...\e[0m" && sudo apt upgrade -y \ && echo -e "\e[32mautoremove...\e[0m" && sudo apt autoremove -y --purge \ && echo -e "\e[32mautoclean...\e[0m" && sudo apt autoclean \ -&& sudo sync \ +&& echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mDone.\e[0m" \ ; From f01cf478a28429fef854cea2735e1340a34db8c4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 14:20:49 +0100 Subject: [PATCH 015/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 7d754bc..9f03aba 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -247,6 +247,8 @@ sudo touch /etc/ssh/mod_install_server sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ sudo chmod 0600 /etc/ssh/*key sudo ssh-keygen -A +sudo systemctl disable regenerate_ssh_host_keys.service +# sudo rm -f /etc/systemd/system/multi-user.target.wants/regenerate_ssh_host_keys.service } From dd07f9f56c8afcfddc2e00df58262313b6e4303e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 14:59:51 +0100 Subject: [PATCH 016/694] replaces FSID to $(uuid) --- install-pxe-server_pass2.sh | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index cbe2ba5..aba4d9e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -86,13 +86,8 @@ DST_PXE_EFI64=menu-efi64 KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) -FSID=$(cat ~/.config/fsid) -[ "$FSID" == "" ] && { -FSID=10000 -} echo -echo -e "$FSID \e[36mfsid\e[0m"; echo -e "$KERNEL_MAJOR.$KERNEL_MINOR \e[36mis kernel version\e[0m"; echo -e "$INTERFACE_ETH0 \e[36mis used as primary networkadapter for PXE\e[0m"; echo -e "$IP_ETH0 \e[36mis used as primary IP address for PXE\e[0m"; @@ -1175,8 +1170,7 @@ handle_iso() { if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then echo -e "\e[36m add nfs folder to exports\e[0m"; - FSID=$(($FSID + 1)) - sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi if [ "$3" == "bindfs" ]; then sudo mount $DST_NFS_ETH0/$NAME-original; fi @@ -1280,8 +1274,7 @@ handle_zip_img() { if ! grep -q "$DST_NFS_BOOT" /etc/exports; then echo -e "\e[36m add image-boot folder to exports\e[0m"; - FSID=$(($FSID + 1)) - sudo sh -c "echo '$DST_NFS_BOOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_BOOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi ## root @@ -1297,8 +1290,7 @@ handle_zip_img() { if ! grep -q "$DST_NFS_ROOT" /etc/exports; then echo -e "\e[36m add image-root folder to exports\e[0m"; - FSID=$(($FSID + 1)) - sudo sh -c "echo '$DST_NFS_ROOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$FSID)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_ROOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi sudo mount $DST_NFS_BOOT; @@ -1677,8 +1669,7 @@ handle_rpi_pxe_overlay() { ###################################################################### if ! grep -q "$DST_NFS_BOOT" /etc/exports; then echo -e "\e[36m add $DST_NFS_BOOT to exports\e[0m"; - FSID=$(($FSID + 1)) - sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$FSID)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi sudo exportfs *:$DST_NFS_BOOT; @@ -1686,8 +1677,7 @@ handle_rpi_pxe_overlay() { if (echo $FLAGS | grep -q root); then if ! grep -q "$DST_NFS_ROOT" /etc/exports; then echo -e "\e[36m add $DST_NFS_ROOT to exports\e[0m"; - FSID=$(($FSID + 1)) - sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$FSID)' >> /etc/exports"; + sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi sudo exportfs *:$DST_NFS_ROOT; else @@ -1912,7 +1902,6 @@ if [ -d "$SRC_IMG" ]; then sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ fi ########################################################################## -echo $FSID > ~/.config/fsid sync echo -e "\e[32mDone.\e[0m"; echo -e "\e[1;31mPlease reboot\e[0m"; From 1972fb4f52230b9f66f483ea943be5009233617f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 15:19:48 +0100 Subject: [PATCH 017/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index aba4d9e..dfbb044 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1101,6 +1101,7 @@ handle_iso() { local URL=$2 local FILE_URL=$NAME.url local FILE_ISO=$NAME.iso + local DST_ORIGINAL=/srv/tmp/original/$NAME ###################################################################### if ! [ -d "$DST_ISO/" ]; then sudo mkdir -p $DST_ISO/; fi @@ -1108,7 +1109,7 @@ handle_iso() { sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; - if [ "$3" == "bindfs" ]; then sudo umount -f $DST_NFS_ETH0/$NAME-original 2> /dev/null; fi + if [ "$3" == "bindfs" ]; then sudo umount -f $DST_ORIGINAL 2> /dev/null; fi if [ "$URL" == "" ]; then if ! [ -f "$DST_ISO/$FILE_ISO" ] \ @@ -1151,18 +1152,18 @@ handle_iso() { sudo mkdir -p $DST_NFS_ETH0/$NAME; fi - if ! [ -d "$DST_NFS_ETH0/$NAME-original" ]; then + if ! [ -d "$DST_ORIGINAL" ]; then if [ "$3" == "bindfs" ]; then echo -e "\e[36m create nfs folder\e[0m"; - sudo mkdir -p $DST_NFS_ETH0/$NAME-original; + sudo mkdir -p $DST_ORIGINAL; fi fi if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; if [ "$3" == "bindfs" ]; then - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME-original auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; - sudo sh -c "echo '$DST_NFS_ETH0/$NAME-original $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; + sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; else sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; fi @@ -1173,7 +1174,7 @@ handle_iso() { sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - if [ "$3" == "bindfs" ]; then sudo mount $DST_NFS_ETH0/$NAME-original; fi + if [ "$3" == "bindfs" ]; then sudo mount $DST_ORIGINAL; fi sudo mount $DST_NFS_ETH0/$NAME; sudo exportfs *:$DST_NFS_ETH0/$NAME; else @@ -1559,14 +1560,14 @@ handle_rpi_pxe_overlay() { local DST_NFS_ROOT=$DST_NFS_ETH0/$DST_SN_ROOT local FILE_URL=$NAME.url ###################################################################### - local DST_LOWER_BOOT=/srv/_lo/$NAME_BOOT + local DST_LOWER_BOOT=/srv/tmp/lower/$NAME_BOOT local DST_LOWER_ROOT=$SRC_ROOT - local DST_UPPER_BOOT=/srv/_up/$DST_SN_BOOT - local DST_UPPER_ROOT=/srv/_up/$DST_SN_ROOT - local DST_WORK_BOOT=/srv/_wk/$DST_SN_BOOT - local DST_WORK_ROOT=/srv/_wk/$DST_SN_ROOT - local DST_MERGED_BOOT=/srv/_mg/$DST_SN_BOOT - local DST_MERGED_ROOT=/srv/_mg/$DST_SN_ROOT + local DST_UPPER_BOOT=/srv/tmp/upper/$DST_SN_BOOT + local DST_UPPER_ROOT=/srv/tmp/upper/$DST_SN_ROOT + local DST_WORK_BOOT=/srv/tmp/work/$DST_SN_BOOT + local DST_WORK_ROOT=/srv/tmp/work/$DST_SN_ROOT + local DST_MERGED_BOOT=/srv/tmp/merged/$DST_SN_BOOT + local DST_MERGED_ROOT=/srv/tmp/merged/$DST_SN_ROOT ###################################################################### local DST_CUSTOM_BOOT=$DST_NFS_BOOT local DST_CUSTOM_ROOT=$DST_NFS_ROOT From 2bc4847d91d11a0aa59ce3bfbda355d7e10ae0fc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Dec 2017 19:48:15 +0100 Subject: [PATCH 018/694] simplify some dnsmasq IP addressen to 0.0.0.0 --- install-pxe-server_pass2.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index dfbb044..8132d2e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -322,15 +322,19 @@ interface=$INTERFACE_ETH1 enable-tftp tftp-lowercase tftp-root=$DST_TFTP_ETH0/, $INTERFACE_ETH0 -dhcp-option=$INTERFACE_ETH0, option:tftp-server, $IP_ETH0 +dhcp-option=$INTERFACE_ETH0, option:tftp-server, 0.0.0.0 #nat#tftp-root=$DST_TFTP_ETH1/, $INTERFACE_ETH1 -#nat#dhcp-option=$INTERFACE_ETH1, option:tftp-server, $IP_ETH1 +#nat#dhcp-option=$INTERFACE_ETH1, option:tftp-server, 0.0.0.0 #bridge#tftp-root=$DST_TFTP_BR0/, $INTERFACE_BR0 -#bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, $IP_BR0 +#bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, 0.0.0.0 + +# +dhcp-option=eth1, option:nis-domain, test-nis +dhcp-option=eth1, option:domain-name, test-domain.local # Time Server -dhcp-option=$INTERFACE_ETH0, option:ntp-server, $IP_ETH0 -dhcp-option=$INTERFACE_ETH1, option:ntp-server, $IP_ETH1 +dhcp-option=$INTERFACE_ETH0, option:ntp-server, 0.0.0.0 +dhcp-option=$INTERFACE_ETH1, option:ntp-server, 0.0.0.0 # DHCP # do not give IPs that are in pool of DSL routers DHCP From 934e6302db366495787f1c2f1869fc374c6e777c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 11 Dec 2017 16:39:22 +0100 Subject: [PATCH 019/694] add: mount scenarios --- README.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 70 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2b377af..8d6eb59 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you dont want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the scripts. ### software: -- **Raspbian Stretch** or **Raspbina Stretch Lite** (2017-08-16), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspbian Stretch** or **Raspbina Stretch Lite** (2017-11-29), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2017-08-16, +- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2017-11-29, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (41GB when you use unmodified script), - and you have plugged an USB-memory-stick that has the has a label **PXE-Server** @@ -113,8 +113,74 @@ pxe menu entries to file structure on disk. what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
the root for NFS are defined in `/etc/exports`. - - +## mount scenarios for pxe boot: +### direct readonly mounting content of ISO: +e.g. ubuntu-lts-x64 iso image
+no problems. pxe boot job can access to required content. +``` +╔═════════════╗ +║iso-file ║ +║ ║ +║ ┌───────────╨─┐ +║ │mount loop │ +║ │ │ +║ │ ├───┤nfs* +║ │ │ +║ └───────────╥─┘ +╚═════════════╝ +``` +### readonly mounting content of ISO and modify users, and permissions by bindfs: +e.g. deftz-x64 iso image
+the pxe boot job can not access to the file vmlinuz because of too restictive file permissions on file system.
+mounting by bindfs with some parameters will map users, groups and permissions, so that the pxe boot job can access all the required files. +``` +╔═════════════╗ +║iso-file ║ +║ ║ +║ ┌───────────╨─┐ ┌─────────────┐ +║ │mount loop │ │mount bindfs │ +║ │ pxe can't │ │ prepare to │ +║ │ access ├─┼ pxe ├───┤nfs* +║ └───────────╥─┘ └─────────────┘ +╚═════════════╝ +``` +### mounting content of disk image and make content read/writalbe by overlayfs: +e.g. rpi-raspbian-full
+this disk image contains two partitions. the first is the boot partition and the second is the root parition. +to make the images read/writable, there is an overlayfs putted on top.
+(lowerdir is the readonly source, upperdir is the writable difference, workdir is an temporarily workfolder for internal use. the mergeddir is the sum of lower + upper. write access happens only on the upperdir with white-out and write-on-modify capability)
+but unfortunately overlayfs can't get exported directly for nfs. so putting a bindfs on top of the overlayfs makes it possible to get exported for nfs.
+and another issue is, overlayfs can't handle **vfat** partitions as source (lowerdir). putting bindfs between makes overlayfs happy. +``` +╔═════════════╗ +║img-file ║ +║ ║ +║ ┌───────────╨─┐ ┌─────────────┐ ┌─────────────────┐ ┌─────────────┐ +║ │mount loop │ │mount bindfs │ │mount overlayfs │ │mount bindfs │ +║ │ vfat │ │ prepare to │ ├───────┐ ┌───────┴─┐ │ prepage to │ +║ │ boot ├─┼ overlayfs ├─┼ lower │ │merged ├─┼ export nfs ├───┤nfs* +║ │ │ └─────────────┘ ├───────┘ └───────┬─┘ └─────────────┘ +║ │ │ │ ┌───────┴─┐ +║ │ vfat │ │ │upper ├─┤diff* +║ │ can't be │ │can't be └───────┬─┘ +║ │ handled │ │handled ┌───────┴─┐ +║ │ by │ │by │work ├─┤tmp* +║ │ overlayfs │ │exportfs └───────┬─┘ +║ └───────────╥─┘ └─────────────────┘ +║ ┌───────────╨─┐ ┌─────────────────┐ ┌─────────────┐ +║ │mount loop │ │mount overlayfs │ │mount bindfs │ +║ │ ext4 │ ├───────┐ ┌───────┴─┐ │ prepare to │ +║ │ root ├─────────────────┼ lower │ │merged ├─┼ export nfs ├───┤nfs* +║ │ │ ├───────┘ └───────┬─┘ └─────────────┘ +║ │ │ │ ┌───────┴─┐ +║ │ │ │ │upper ├─┤diff* +║ │ │ │can't be └───────┬─┘ +║ │ │ │handled ┌───────┴─┐ +║ │ │ │by │work ├─┤tmp* +║ │ │ │exportfs └───────┬─┘ +║ └───────────╥─┘ └─────────────────┘ +╚═════════════╝ +``` ## note: the script will copy/download/mount following ISOs: ``` From 4107192430c0abd6f1f5aaf3fdb20f03b903c2f2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 11 Dec 2017 18:53:55 +0100 Subject: [PATCH 020/694] updated url: debian --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8132d2e..de56d27 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-10 +# v2017-12-11 # # known issues: # @@ -133,10 +133,10 @@ UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.2.0-amd64-lxde.iso +DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.3.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.2.0-i386-lxde.iso +DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.3.0-i386-lxde.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=http://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From 32394c0a3de8609f0c2d0a2cecb8dfc2bb903e3b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 15 Dec 2017 21:37:18 +0100 Subject: [PATCH 021/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 9f03aba..fa84273 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-10 +# v2017-12-15 # # known issues: # @@ -142,7 +142,7 @@ sudo systemctl restart chronyd.service; ###################################################################### ## optional echo -e "\e[32minstall wireshark\e[0m"; -sudo apt install -y wireshark +sudo apt install -y wireshark tshark xterm sudo usermod -a -G wireshark $USER #sudo apt purge -y --auto-remove avahi-daemon From 1e7ec029cb8085fa828cafc27467814dc6ebade7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 15 Dec 2017 23:19:17 +0100 Subject: [PATCH 022/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 44 ++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index fa84273..20efe19 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -142,9 +142,13 @@ sudo systemctl restart chronyd.service; ###################################################################### ## optional echo -e "\e[32minstall wireshark\e[0m"; -sudo apt install -y wireshark tshark xterm +sudo apt install -y wireshark tshark sudo usermod -a -G wireshark $USER +echo -e "\e[32minstall other useful stuff\e[0m"; +sudo apt install -y xterm transmission-gtk + +echo -e "\e[32mreduce annoying networktraffic\e[0m"; #sudo apt purge -y --auto-remove avahi-daemon sudo systemctl stop avahi-daemon.service sudo systemctl disable avahi-daemon.service @@ -194,33 +198,33 @@ disable_overscan=1 hdmi_force_hotplug=1 config_hdmi_boost=4 -#hdmi_ignore_cec_init=1 +hdmi_ignore_cec_init=1 cec_osd_name=PXE-Server ######################################### # standard resolution -hdmi_drive=2 +#hdmi_drive=2 ######################################### # custom resolution # 4k@24Hz or 25Hz custom DMT - mode -#gpu_mem=128 -#hdmi_group=2 -#hdmi_mode=87 -#hdmi_pixel_freq_limit=400000000 -#max_framebuffer_width=3840 -#max_framebuffer_height=2160 -# -# #### implicit timing #### -# hdmi_cvt 3840 2160 24 -# #hdmi_cvt 3840 2160 25 -# -# #### explicit timing #### -# #hdmi_ignore_edid=0xa5000080 -# #hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 -# ##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 -# #framebuffer_width=3840 -# #framebuffer_height=2160 +gpu_mem=128 +hdmi_group=2 +hdmi_mode=87 +hdmi_pixel_freq_limit=400000000 +max_framebuffer_width=3840 +max_framebuffer_height=2160 + + #### implicit timing #### + #hdmi_cvt 3840 2160 24 + ##hdmi_cvt 3840 2160 25 + + #### explicit timing #### + #hdmi_ignore_edid=0xa5000080 + hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 + ##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 + #framebuffer_width=3840 + #framebuffer_height=2160 ' > /boot/config.txt" } From a67fc90d82724529a5aef6d79e05365babf4b66b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 18 Dec 2017 14:07:59 +0100 Subject: [PATCH 023/694] add: debconf-utils --- install-pxe-server_pass1.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 20efe19..6613bea 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-15 +# v2017-12-18 # # known issues: # @@ -74,12 +74,19 @@ echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mDone.\e[0m" \ ; + +###################################################################### +echo -e "\e[32minstall debconf-utils\e[0m"; +sudo apt install -y debconf-utils; + + ###################################################################### echo -e "\e[32minstall nfs-kernel-server for pxe\e[0m"; sudo apt install -y nfs-kernel-server; sudo systemctl enable nfs-kernel-server.service; sudo systemctl restart nfs-kernel-server.service; + ###################################################################### echo -e "\e[32menable port mapping\e[0m"; sudo systemctl enable rpcbind.service; @@ -124,12 +131,15 @@ sudo apt install -y fuse bindfs; ###################################################################### -echo -e "\e[32minstall network NAT\e[0m"; +echo -e "\e[32minstall iptables for network address translation (NAT)\e[0m"; +echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | sudo debconf-set-selections; +echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | sudo debconf-set-selections; sudo apt install -y iptables iptables-persistent ###################################################################### $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { +echo -e "\e[32minstall chrony as ntp client and ntp server\e[0m"; sudo apt install -y chrony; sudo systemctl enable chronyd.service; sudo systemctl restart chronyd.service; @@ -142,6 +152,7 @@ sudo systemctl restart chronyd.service; ###################################################################### ## optional echo -e "\e[32minstall wireshark\e[0m"; +echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; sudo apt install -y wireshark tshark sudo usermod -a -G wireshark $USER From b63791012dc4bf59bac4fd56cbafb47992ae8ec3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 18 Dec 2017 15:10:30 +0100 Subject: [PATCH 024/694] avoid showing answered questions: --unseen-only --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index de56d27..4795a99 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-11 +# v2017-12-18 # # known issues: # @@ -1750,7 +1750,7 @@ EOF"; sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { echo -e "\e[36m setup iptables for nat\e[0m"; sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE - sudo dpkg-reconfigure iptables-persistent + sudo dpkg-reconfigure --unseen-only iptables-persistent } From a0ce753a81bccfca05d24c5b86afeec5e3401d0f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 20 Dec 2017 08:53:46 +0100 Subject: [PATCH 025/694] removed comments from some conf files --- install-pxe-server_pass2.sh | 181 +----------------------------------- 1 file changed, 5 insertions(+), 176 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4795a99..1bb6e9a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-18 +# v2017-12-20 # # known issues: # @@ -384,193 +384,43 @@ handle_samba() { echo -e "\e[36m setup samba\e[0m"; #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; sudo sh -c "cat << EOF > /etc/samba/smb.conf -# -# Sample configuration file for the Samba suite for Debian GNU/Linux. -# -# -# This is the main Samba configuration file. You should read the -# smb.conf(5) manual page in order to understand the options listed -# here. Samba has a huge number of configurable options most of which -# are not shown in this example -# -# Some options that are often worth tuning have been included as -# commented-out examples in this file. -# - When such options are commented with ';', the proposed setting -# differs from the default Samba behaviour -# - When commented with '#', the proposed setting is the default -# behaviour of Samba but the option is considered important -# enough to be mentioned here -# -# NOTE: Whenever you modify this file you should run the command -# 'testparm' to check that you have not made any basic syntactic -# errors. +######################################## +## mod_install_server #======================= Global Settings ======================= - [global] ## Browsing/Identification ### - -# Change this to the workgroup/NT-domain name your Samba server will part of workgroup = WORKGROUP - -# Windows Internet Name Serving Support Section: -# WINS Support - Tells the NMBD component of Samba to enable its WINS Server -# wins support = no - -# WINS Server - Tells the NMBD components of Samba to be a WINS Client -# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both -; wins server = w.x.y.z - -# This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = yes enhanced browsing = no #### Networking #### - -# The specific set of interfaces / networks to bind to -# This can be either the interface name or an IP address/netmask; -# interface names are normally preferred interfaces = $IP_ETH0_0/24 $INTERFACE_ETH0 - -# Only bind to the named interfaces and/or networks; you must use the -# 'interfaces' option above to use this. -# It is recommended that you enable this feature if your Samba machine is -# not protected by a firewall or is a firewall itself. However, this -# option cannot handle dynamic or non-broadcast interfaces correctly. bind interfaces only = yes - #### Debugging/Accounting #### - -# This tells Samba to use a separate log file for each machine -# that connects log file = /var/log/samba/log.%m - -# Cap the size of the individual log files (in KiB). max log size = 1000 - -# If you want Samba to only log through syslog then set the following -# parameter to 'yes'. -# syslog only = no - -# We want Samba to log a minimum amount of information to syslog. Everything -# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log -# through syslog you should set the following parameter to something higher. syslog = 0 - -# Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ####### Authentication ####### - -# Server role. Defines in which mode Samba will operate. Possible -# values are 'standalone server', 'member server', 'classic primary -# domain controller', 'classic backup domain controller', 'active -# directory domain controller'. -# -# Most people will want 'standalone sever' or 'member server'. -# Running as 'active directory domain controller' will require first -# running 'samba-tool domain provision' to wipe databases and create a -# new domain. server role = standalone server - -# If you are using encrypted passwords, Samba will need to know what -# password database type you are using. passdb backend = tdbsam - obey pam restrictions = yes - -# This boolean parameter controls whether Samba attempts to sync the Unix -# password with the SMB password when the encrypted SMB password in the -# passdb is changed. unix password sync = yes - -# For Unix password sync to work on a Debian GNU/Linux system, the following -# parameters must be set (thanks to Ian Kahan < for -# sending the correct chat script for the passwd program in Debian Sarge). passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . - -# This boolean controls whether PAM will be used for password changes -# when requested by an SMB client instead of the program listed in -# 'passwd program'. The default is 'no'. pam password change = yes - -# This option controls how unsuccessful authentication attempts are mapped -# to anonymous connections map to guest = bad user ########## Domains ########### -# -# The following settings only takes effect if 'server role = primary -# classic domain controller', 'server role = backup domain controller' -# or 'domain logons' is set -# - -# It specifies the location of the user's -# profile directory from the client point of view) The following -# required a [profiles] share to be setup on the samba server (see -# below) -; logon path = \\%N\profiles\%U -# Another common choice is storing the profile in the user's home directory -# (this is Samba's default) -# logon path = \\%N\%U\profile - -# The following setting only takes effect if 'domain logons' is set -# It specifies the location of a user's home directory (from the client -# point of view) -; logon drive = H: -# logon home = \\%N\%U - -# The following setting only takes effect if 'domain logons' is set -# It specifies the script to run during logon. The script must be stored -# in the [netlogon] share -# NOTE: Must be store in 'DOS' file format convention -; logon script = logon.cmd - -# This allows Unix users to be created on the domain controller via the SAMR -# RPC pipe. The example command creates a user account with a disabled Unix -# password; please adapt to your needs -; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos '' %u - -# This allows machine accounts to be created on the domain controller via the -# SAMR RPC pipe. -# The following assumes a 'machines' group exists on the system -; add machine script = /usr/sbin/useradd -g machines -c '%u machine account' -d /var/lib/samba -s /bin/false %u - -# This allows Unix groups to be created on the domain controller via the SAMR -# RPC pipe. -; add group script = /usr/sbin/addgroup --force-badname %g - ############ Misc ############ - -# Using the following line enables you to customise your configuration -# on a per machine basis. The %m gets replaced with the netbios name -# of the machine that is connecting -; include = /home/samba/etc/smb.conf.%m - -# Some defaults for winbind (make sure you're not using the ranges -# for something else.) -; idmap uid = 10000-20000 -; idmap gid = 10000-20000 -; template shell = /bin/bash - -# Setup usershare options to enable non-root users to share folders -# with the net usershare command. - -# Maximum number of usershare. 0 (default) means that usershare is disabled. -; usershare max shares = 100 - -# Allow users who've been granted usershare privileges to create -# public shares, not just authenticated ones usershare allow guests = yes #======================= Share Definitions ======================= -######################################## -## mod_install_server - [srv] path = $DST_ROOT comment = /srv folder of pxe-server @@ -1761,9 +1611,9 @@ EOF"; sudo sh -c "cat << EOF > /etc/chrony/chrony.conf ######################################## ## mod_install_server +allow -# Welcome to the chrony configuration file. See chrony.conf(5) for more -# information about usuable directives. +#server stratum1 iburst minpoll 5 maxpoll 5 server ptbtime1.ptb.de iburst server ptbtime2.ptb.de iburst server ptbtime3.ptb.de iburst @@ -1778,33 +1628,12 @@ server isis.uni-paderborn.de pool de.pool.ntp.org iburst -# This directive specify the location of the file containing ID/key pairs for -# NTP authentication. keyfile /etc/chrony/chrony.keys - -# This directive specify the file into which chronyd will store the rate -# information. driftfile /var/lib/chrony/chrony.drift - -# Uncomment the following line to turn logging on. -#log tracking measurements statistics - -# Log files location. logdir /var/log/chrony - -# Stop bad estimates upsetting machine clock. maxupdateskew 100.0 - -# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the -# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive. hwclockfile /etc/adjtime - -# This directive enables kernel synchronisation (every 11 minutes) of the -# real-time clock. Note that it can’t be used along with the 'rtcfile' directive. rtcsync - -# Step the system clock instead of slewing it if the adjustment is larger than -# one second, but only in the first three clock updates. makestep 1 3 EOF"; } From 81722f48bd1b2876ed1b3ea472d1e43b4eb48777 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 22 Dec 2017 23:23:08 +0100 Subject: [PATCH 026/694] removed unknown parameters --- install-pxe-server_pass2.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1bb6e9a..0e066e0 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -430,8 +430,6 @@ bind interfaces only = yes read only = no create mask = 0644 directory mask = 0755 - force create mask = 0644 - force directory mask = 0755 force user = root force group = root hide dot files = no @@ -445,8 +443,6 @@ bind interfaces only = yes read only = no create mask = 0644 directory mask = 0755 - force create mask = 0644 - force directory mask = 0755 force user = root force group = root hide dot files = no From a183eb6dfe0092a96e56bc4754141d7e2c41d859 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 22 Dec 2017 23:44:22 +0100 Subject: [PATCH 027/694] previous unknown parameter was only a typo --- install-pxe-server_pass2.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 0e066e0..fb15a51 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -430,6 +430,8 @@ bind interfaces only = yes read only = no create mask = 0644 directory mask = 0755 + force create mode = 0644 + force directory mode = 0755 force user = root force group = root hide dot files = no @@ -443,6 +445,8 @@ bind interfaces only = yes read only = no create mask = 0644 directory mask = 0755 + force create mode = 0644 + force directory mode = 0755 force user = root force group = root hide dot files = no From c461b9aa4cecaffb5f62f258da8ba7955dd6fe7f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 23 Dec 2017 20:56:57 +0100 Subject: [PATCH 028/694] CVE-2017-14746 --- install-pxe-server_pass2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index fb15a51..2b8b68e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -420,6 +420,9 @@ bind interfaces only = yes ############ Misc ############ usershare allow guests = yes +# https://www.samba.org/samba/security/CVE-2017-14746.html +server min protocol = SMB2 + #======================= Share Definitions ======================= [srv] path = $DST_ROOT From 554f1619db7a2dbef9fd7f3f5a0338198e7ef39b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 24 Dec 2017 07:33:51 +0100 Subject: [PATCH 029/694] fixed debian pxe menu entry --- install-pxe-server_pass2.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 2b8b68e..54e7eaf 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -617,13 +617,13 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-4.9.0-3-amd64" ]; then + && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-4.9.0-4-amd64" ]; then echo -e "\e[36m add $DEBIAN_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Debian x64 - KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-4.9.0-3-amd64 - APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-4.9.0-3-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-4.9.0-4-amd64 + APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-4.9.0-4-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Debian x64 Live LXDE User: user, Password: live @@ -632,13 +632,13 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-4.9.0-3-686" ]; then + && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-4.9.0-4-686" ]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Debian x86 - KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-4.9.0-3-686 - APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-4.9.0-3-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-4.9.0-4-686 + APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-4.9.0-4-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Debian x86 Live LXDE User: user, Password: live From 1dae545011696e13a1d691642af547a4840f7922 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 24 Dec 2017 07:39:31 +0100 Subject: [PATCH 030/694] add: DEBIAN_KVER --- install-pxe-server_pass2.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 54e7eaf..c4af364 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-20 +# v2017-12-24 # # known issues: # @@ -134,7 +134,7 @@ UBUNTU_NONPAE_URL= DEBIAN_X64=debian-x64 DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.3.0-amd64-lxde.iso - +DEBIAN_KVER=4.9.0-4 DEBIAN_X86=debian-x86 DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.3.0-i386-lxde.iso @@ -617,13 +617,13 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-4.9.0-4-amd64" ]; then + && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then echo -e "\e[36m add $DEBIAN_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Debian x64 - KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-4.9.0-4-amd64 - APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-4.9.0-4-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 + APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Debian x64 Live LXDE User: user, Password: live @@ -632,13 +632,13 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-4.9.0-4-686" ]; then + && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Debian x86 - KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-4.9.0-4-686 - APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-4.9.0-4-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 + APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Debian x86 Live LXDE User: user, Password: live From 388499156a861cf7abb84ec4a068cef291800593 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 12:17:20 +0100 Subject: [PATCH 031/694] wlan0 part1 --- install-pxe-server_pass2.sh | 45 ++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index c4af364..ca5b449 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -21,7 +21,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-24 +# v2017-12-27 # # known issues: # @@ -48,6 +48,7 @@ RPI_SN3=-------- ########################################################################## INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) INTERFACE_ETH1=eth1 +INTERFACE_WLAN0=wlan0 ########################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') @@ -60,9 +61,14 @@ IP_ETH0_MASK=255.255.255.0 ########################################################################## IP_ETH1=192.168.250.1 IP_ETH1_START=192.168.250.100 -IP_ETH1_END=192.168.250.100 +IP_ETH1_END=192.168.250.110 IP_ETH1_MASK=255.255.255.0 ########################################################################## +IP_WLAN0=192.168.251.1 +IP_WLAN0_START=192.168.251.100 +IP_WLAN0_END=192.168.251.110 +IP_WLAN0_MASK=255.255.255.0 +########################################################################## ISO=/iso IMG=/img TFTP_ETH0=/tftp @@ -316,31 +322,43 @@ log-dhcp # interface selection interface=$INTERFACE_ETH0 interface=$INTERFACE_ETH1 -#bridge#interface=$INTERFACE_BR0 +interface=$INTERFACE_WLAN0 + +# +bind-interfaces +domain-needed +bogus-priv # TFTP_ETH0 (enabled) enable-tftp tftp-lowercase tftp-root=$DST_TFTP_ETH0/, $INTERFACE_ETH0 dhcp-option=$INTERFACE_ETH0, option:tftp-server, 0.0.0.0 -#nat#tftp-root=$DST_TFTP_ETH1/, $INTERFACE_ETH1 -#nat#dhcp-option=$INTERFACE_ETH1, option:tftp-server, 0.0.0.0 -#bridge#tftp-root=$DST_TFTP_BR0/, $INTERFACE_BR0 -#bridge#dhcp-option=$INTERFACE_BR0, option:tftp-server, 0.0.0.0 # -dhcp-option=eth1, option:nis-domain, test-nis -dhcp-option=eth1, option:domain-name, test-domain.local +dhcp-option=$INTERFACE_ETH1, option:nis-domain, eth-nis +dhcp-option=$INTERFACE_ETH1, option:domain-name, eth-domain.local +dhcp-option=$INTERFACE_WLAN0, option:nis-domain, wlan-nis +dhcp-option=$INTERFACE_WLAN0, option:domain-name, wlan-domain.local # Time Server dhcp-option=$INTERFACE_ETH0, option:ntp-server, 0.0.0.0 dhcp-option=$INTERFACE_ETH1, option:ntp-server, 0.0.0.0 +dhcp-option=$INTERFACE_WLAN0, option:ntp-server, 0.0.0.0 # DHCP # do not give IPs that are in pool of DSL routers DHCP dhcp-range=$INTERFACE_ETH0, $IP_ETH0_START, $IP_ETH0_END, 24h dhcp-range=$INTERFACE_ETH1, $IP_ETH1_START, $IP_ETH1_END, 24h -#bridge#dhcp-range=$INTERFACE_BR0, $IP_BR0_START, $IP_BR0_END, 24h +dhcp-range=$INTERFACE_WLAN0, $IP_WLAN0_START, $IP_WLAN0_END, 24h + +# some examples for pre-defined static IPs by MAC or by name +#dhcp-host=$INTERFACE_ETH0, 11:11:11:11:11:11, 192.168.0.100 +#dhcp-host=$INTERFACE_ETH0, MySmartHome, 192.168.0.101 +#dhcp-host=$INTERFACE_ETH1, 22:22:22:22:22:22, 192.168.250.100 +#dhcp-host=$INTERFACE_ETH1, MySmartTV, 192.168.250.101 +#dhcp-host=$INTERFACE_WLAN0, 33:33:33:33:33:33, 192.168.251.100 +#dhcp-host=$INTERFACE_WLAN0, MySmartPhone, 192.168.251.101 # DNS (enabled) port=53 @@ -1603,6 +1621,13 @@ EOF"; sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { echo -e "\e[36m setup iptables for nat\e[0m"; sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE + + sudo iptables -A FORWARD -i $INTERFACE_ETH0 -o $INTERFACE_ETH1 -m state --state RELATED,ESTABLISHED -j ACCEPT + sudo iptables -A FORWARD -i $INTERFACE_ETH1 -o $INTERFACE_ETH0 -j ACCEPT + + sudo iptables -A FORWARD -i $INTERFACE_ETH0 -o $INTERFACE_WLAN0 -m state --state RELATED,ESTABLISHED -j ACCEPT + sudo iptables -A FORWARD -i $INTERFACE_WLAN0 -o $INTERFACE_ETH0 -j ACCEPT + sudo dpkg-reconfigure --unseen-only iptables-persistent } From 95d19c6d3b2aa2a0e563567afc0024b5a1411bca Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 12:24:07 +0100 Subject: [PATCH 032/694] wlan0 pass1 --- install-pxe-server_pass1.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 6613bea..1153f87 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-18 +# v2017-12-27 # # known issues: # @@ -125,9 +125,14 @@ echo -e "\e[32minstall bindfs\e[0m"; sudo apt install -y fuse bindfs; +###################################################################### +echo -e "\e[32minstall wlan access point\e[0m"; +sudo apt install -y hostapd + + ###################################################################### #bridge#echo -e "\e[32minstall network bridge\e[0m"; -#bridge#sudo apt install -y bridge-utils hostapd dnsmasq iptables iptables-persistent +#bridge#sudo apt install -y bridge-utils ###################################################################### @@ -256,7 +261,7 @@ xset -dpms; ###################################################################### ## optional -[ -f /etc/ssh/mod_install_server ] || { +[ -f /etc/ssh/mod_install_server ] && [ -d $SRC_MOUNT/backup/ssh/ ] || { echo -e "\e[32mcopy predefined ssh keys\e[0m"; sudo touch /etc/ssh/mod_install_server sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ From c870d647cae2391a3abc6718a66b454fdfbc6934 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 12:32:01 +0100 Subject: [PATCH 033/694] fix: net.ipv6.conf.all.disable_ipv6=1 will prevent ssh x11 forwarding --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ca5b449..62e54b8 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1611,7 +1611,7 @@ handle_optional() { ## mod_install_server net.ipv4.ip_forward=1 #net.ipv6.conf.all.forwarding=1 -net.ipv6.conf.all.disable_ipv6 = 1 +#net.ipv6.conf.all.disable_ipv6 = 1 EOF"; } From 01eaf4caa9280137c55504368e51f7925e072c03 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 15:58:06 +0100 Subject: [PATCH 034/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 1153f87..c604a86 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -261,7 +261,7 @@ xset -dpms; ###################################################################### ## optional -[ -f /etc/ssh/mod_install_server ] && [ -d $SRC_MOUNT/backup/ssh/ ] || { +[ -f /etc/ssh/mod_install_server ] || [ -d $SRC_MOUNT/backup/ssh/ ] || { echo -e "\e[32mcopy predefined ssh keys\e[0m"; sudo touch /etc/ssh/mod_install_server sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ From 1a89c5be98bf59762c3a2d4aec80a1fad4735eee Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 19:11:39 +0100 Subject: [PATCH 035/694] wlan0 part2 access point --- install-pxe-server_pass2.sh | 103 ++++++++++++++++++++++++++++++++---- 1 file changed, 93 insertions(+), 10 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 62e54b8..4c30374 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -68,6 +68,15 @@ IP_WLAN0=192.168.251.1 IP_WLAN0_START=192.168.251.100 IP_WLAN0_END=192.168.251.110 IP_WLAN0_MASK=255.255.255.0 +########################################################################## +DRIVER_WLAN0=nl80211 +COUNTRY_WLAN0=DE +PASSWORD_WLAN0=p@ssw0rd +SSID_WLAN0=wlan0@domain.local +INTERFACE_WLAN0X=wlan0x +PASSWORD_WLAN0X=p@ssw0rd +SSID_WLAN0X=wlan0x@domain.local + ########################################################################## ISO=/iso IMG=/img @@ -209,6 +218,74 @@ RPD_FULL=rpi-raspbian-full RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-12-01/2017-11-29-raspbian-stretch.zip + + +########################################################################## +handle_hostapd() { + echo -e "\e[32mhandle_hostapd()\e[0m"; + + ###################################################################### + grep -q mod_install_server /etc/hostapd/hostapd.conf || { + echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; + sudo sh -c "cat << EOF > /etc/hostapd/hostapd.conf +######################################## +#/etc/hostapd/hostapd.conf +## mod_install_server +interface=$INTERFACE_WLAN0 +driver=$DRIVER_WLAN0 + +country_code=$COUNTRY_WLAN0 +ieee80211d=1 + +hw_mode=g +ieee80211n=1 +channel=7 + +wmm_enabled=1 + +## +ssid=$SSID_WLAN0 +ignore_broadcast_ssid=0 +macaddr_acl=0 +auth_algs=1 +wpa=2 +wpa_key_mgmt=WPA-PSK +wpa_pairwise=TKIP +rsn_pairwise=CCMP +#wpa_passphrase=$PASSWORD_WLAN0 +wpa_psk=$(wpa_passphrase $SSID_WLAN0 PASSWORD_WLAN0 | grep '[[:blank:]]psk' | cut -d = -f2) + +## optional: create virtual wlan adapter +#bss=$INTERFACE_WLAN0X +#ssid=$SSID_WLAN0X +#ignore_broadcast_ssid=0 +#macaddr_acl=0 +#auth_algs=1 +#wpa=2 +#wpa_key_mgmt=WPA-PSK +#wpa_pairwise=TKIP +#rsn_pairwise=CCMP +##wpa_passphrase=$PASSWORD_WLAN0X +#wpa_psk=$(wpa_passphrase $SSID_WLAN0X PASSWORD_WLAN0X | grep '[[:blank:]]psk' | cut -d = -f2) +EOF"; + } + + ###################################################################### + grep -q mod_install_server /etc/default/hostapd || { + echo -e "\e[36m setup hostapd for wlan access point\e[0m"; + sudo sh -c "cat << EOF > /etc/default/hostapd +######################################## +#/etc/default/hostapd +## mod_install_server +DAEMON_CONF=\"/etc/hostapd/hostapd.conf\" +EOF"; + } + + sudo systemctl enable hostapd.service; + sudo systemctl restart hostapd.service; +} + + ########################################################################## handle_dhcpcd() { echo -e "\e[32mhandle_dhcpcd()\e[0m"; @@ -234,10 +311,10 @@ static routers=$IP_ETH1_ROUTER static domain_name_servers=$IP_ETH1_ROUTER ######################################## -#bridge#interface $INTERFACE_BR0 -#bridge#static ip_address=$IP_BR0/24 -#bridge#static routers=$IP_BR0_ROUTER -#bridge#static domain_name_servers=$IP_BR0_ROUTER +interface $INTERFACE_WLAN0 +static ip_address=$IP_WLAN0/24 +static routers=$IP_WLAN0_ROUTER +static domain_name_servers=$IP_WLAN0_ROUTER EOF"; sudo systemctl daemon-reload; sudo systemctl restart dhcpcd.service; @@ -282,6 +359,13 @@ iface $INTERFACE_ETH1 inet static gateway $IP_ETH1_ROUTER hwaddress 88:88:88:11:11:11 +auto $INTERFACE_WLAN0 +iface $INTERFACE_WLAN0 inet static + address $IP_WLAN0 + netmask $IP_WLAN0_MASK + gateway $IP_WLAN0_ROUTER + hwaddress 88:88:88:22:22:22 + #bridge#auto br0 #bridge#iface br0 inet static #bridge# bridge_ports eth1 wlan0 wlan1 @@ -313,7 +397,6 @@ handle_dnsmasq() { sudo sh -c "cat << EOF >> /etc/dnsmasq.d/pxe-server ######################################## #/etc/dnsmasq.d/pxeboot - ## mod_install_server log-dhcp @@ -325,7 +408,7 @@ interface=$INTERFACE_ETH1 interface=$INTERFACE_WLAN0 # -bind-interfaces +bind-dynamic domain-needed bogus-priv @@ -404,7 +487,6 @@ handle_samba() { sudo sh -c "cat << EOF > /etc/samba/smb.conf ######################################## ## mod_install_server - #======================= Global Settings ======================= [global] @@ -1268,7 +1350,7 @@ EOF"; echo -e "\e[36m add wpa_supplicant template file\e[0m"; sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/wpa_supplicant/wpa_supplicant.conf ######################################## -country=DE +country=$COUNTRY_WLAN0 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 @@ -1641,7 +1723,7 @@ EOF"; ## mod_install_server allow -#server stratum1 iburst minpoll 5 maxpoll 5 +#server stratum1.domain.local iburst minpoll 5 maxpoll 5 server ptbtime1.ptb.de iburst server ptbtime2.ptb.de iburst server ptbtime3.ptb.de iburst @@ -1676,10 +1758,11 @@ sudo mkdir -p $DST_TFTP_ETH0; sudo mkdir -p $DST_NFS_ETH0; ########################################################################## +handle_hostapd; +handle_dhcpcd; handle_dnsmasq; handle_samba; handle_optional; -handle_dhcpcd; ########################################################################## From 448002c4efe17cbb7cad268a109e4be41ec4024f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 19:58:06 +0100 Subject: [PATCH 036/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index c604a86..c8a5de7 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -261,7 +261,7 @@ xset -dpms; ###################################################################### ## optional -[ -f /etc/ssh/mod_install_server ] || [ -d $SRC_MOUNT/backup/ssh/ ] || { +[ -f /etc/ssh/mod_install_server ] || [ -d $SRC_MOUNT/backup/ssh/ ] && { echo -e "\e[32mcopy predefined ssh keys\e[0m"; sudo touch /etc/ssh/mod_install_server sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ From 92c707f7bfffa5f547a7a3173795499ace8e8da3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 20:07:07 +0100 Subject: [PATCH 037/694] disable minissdpd --- install-pxe-server_pass1.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index c8a5de7..5d2d6ae 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -156,18 +156,19 @@ sudo systemctl restart chronyd.service; ###################################################################### ## optional -echo -e "\e[32minstall wireshark\e[0m"; +echo -e "\e[32minstall tshark\e[0m"; echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; -sudo apt install -y wireshark tshark +sudo apt install -y tshark sudo usermod -a -G wireshark $USER echo -e "\e[32minstall other useful stuff\e[0m"; sudo apt install -y xterm transmission-gtk echo -e "\e[32mreduce annoying networktraffic\e[0m"; -#sudo apt purge -y --auto-remove avahi-daemon sudo systemctl stop avahi-daemon.service sudo systemctl disable avahi-daemon.service +sudo systemctl stop minissdpd.service +sudo systemctl disable minissdpd.service ###################################################################### From 4cdbba554eb3dd2ba88fe7d50b87a3939d4f46c2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 20:08:30 +0100 Subject: [PATCH 038/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4c30374..af8da53 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -281,7 +281,6 @@ DAEMON_CONF=\"/etc/hostapd/hostapd.conf\" EOF"; } - sudo systemctl enable hostapd.service; sudo systemctl restart hostapd.service; } From 462e8297eba4c410e30bcba37a1903828fdea532 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 Dec 2017 23:01:22 +0100 Subject: [PATCH 039/694] fix: forwarding broken --- install-pxe-server_pass2.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index af8da53..029a917 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1692,7 +1692,6 @@ handle_optional() { ## mod_install_server net.ipv4.ip_forward=1 #net.ipv6.conf.all.forwarding=1 -#net.ipv6.conf.all.disable_ipv6 = 1 EOF"; } @@ -1702,13 +1701,6 @@ EOF"; sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { echo -e "\e[36m setup iptables for nat\e[0m"; sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE - - sudo iptables -A FORWARD -i $INTERFACE_ETH0 -o $INTERFACE_ETH1 -m state --state RELATED,ESTABLISHED -j ACCEPT - sudo iptables -A FORWARD -i $INTERFACE_ETH1 -o $INTERFACE_ETH0 -j ACCEPT - - sudo iptables -A FORWARD -i $INTERFACE_ETH0 -o $INTERFACE_WLAN0 -m state --state RELATED,ESTABLISHED -j ACCEPT - sudo iptables -A FORWARD -i $INTERFACE_WLAN0 -o $INTERFACE_ETH0 -j ACCEPT - sudo dpkg-reconfigure --unseen-only iptables-persistent } From ba3e52cd7738f73f5b5837853cc69428d1c76a15 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Dec 2017 00:24:44 +0100 Subject: [PATCH 040/694] fix: missing uuid on raspbian lite --- install-pxe-server_pass1.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 5d2d6ae..8fe6fc0 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,12 +2,11 @@ ###################################################################### # -# v2017-12-27 +# v2017-12-28 # # known issues: # -#bridge# ###################################################################### @@ -80,6 +79,11 @@ echo -e "\e[32minstall debconf-utils\e[0m"; sudo apt install -y debconf-utils; +###################################################################### +echo -e "\e[32minstall uuid\e[0m"; +sudo apt install -y uuid; + + ###################################################################### echo -e "\e[32minstall nfs-kernel-server for pxe\e[0m"; sudo apt install -y nfs-kernel-server; From a2eecb7623f7915971150eccb73f48dc19ca5ae1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Dec 2017 01:30:47 +0100 Subject: [PATCH 041/694] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d6eb59..0b20ddd 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see * ╔══════════╗ ╔═══╗ ╔══════╗╔═════════╗ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ ╚══════════╝ ║ w ║ ║PXE- ║╚═════════╝ - ║ i ║ ║server║ - ╔══════╗ ║ t ╟───eth0╢──┐ ║ - ║ RPi3 ╟──────╢ c ║ ║ │NAT║ ╔═══════════════════════╗ + ║ i ║ ║server║ ╔═══════════════════════╗ + ╔══════╗ ║ t ╟───eth0╢──┬───╟wlan0───╢ PC3 IP:192.168.251.100║ + ║ RPi3 ╟──────╢ c ║ ║ │NAT║ ╔╩══════════════════════╗╝ ╚══════╝ ┌──╢ h ╟──┐ ║ └───╟eth1───╢ PC3 IP:192.168.250.100║ │ ╚═══╝ │ ╚══════╝ ╚═══════════════════════╝ ╔══╧══╗ ╔══╧══╗ @@ -36,6 +36,8 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ - SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) - USB memory stick (for preloaded iso images), (e.g. 64GByte) - working network environment with a connection to internet +- optional: second ethernet interface (via USB) +- optional: built-in WLAN interface (as that one of RPi3, or an external one via USB) optional, if your SD card is too small or you dont want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the scripts. From 0a482c3b0712646d89b35ac5a6866e1e83504dbb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Dec 2017 01:31:34 +0100 Subject: [PATCH 042/694] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b20ddd..cae15a0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see * WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ ╚══════════╝ ║ w ║ ║PXE- ║╚═════════╝ ║ i ║ ║server║ ╔═══════════════════════╗ - ╔══════╗ ║ t ╟───eth0╢──┬───╟wlan0───╢ PC3 IP:192.168.251.100║ + ╔══════╗ ║ t ╟───eth0╢──┬───╟wlan0───╢ PC4 IP:192.168.251.100║ ║ RPi3 ╟──────╢ c ║ ║ │NAT║ ╔╩══════════════════════╗╝ ╚══════╝ ┌──╢ h ╟──┐ ║ └───╟eth1───╢ PC3 IP:192.168.250.100║ │ ╚═══╝ │ ╚══════╝ ╚═══════════════════════╝ From 3104405252885b2ad5e925c8893270e905a0b3c9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Dec 2017 00:32:20 +0100 Subject: [PATCH 043/694] add: real-vvnc-server --- install-pxe-server_pass1.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 8fe6fc0..3120566 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -156,13 +156,17 @@ sudo systemctl restart chronyd.service; ###################################################################### ###################################################################### +echo -e "\e[32minstall real-vnc-server\e[0m"; +sudo apt install -y realvnc-vnc-server +sudo systemctl enable vncserver-x11-serviced.service; +sudo systemctl restart vncserver-x11-serviced.service; ###################################################################### ## optional -echo -e "\e[32minstall tshark\e[0m"; +echo -e "\e[32minstall wireshark\e[0m"; echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; -sudo apt install -y tshark +sudo apt install -y tshark wireshark sudo usermod -a -G wireshark $USER echo -e "\e[32minstall other useful stuff\e[0m"; @@ -266,7 +270,7 @@ xset -dpms; ###################################################################### ## optional -[ -f /etc/ssh/mod_install_server ] || [ -d $SRC_MOUNT/backup/ssh/ ] && { +! [ -f /etc/ssh/mod_install_server ] && [ -d $SRC_MOUNT/backup/ssh/ ] && { echo -e "\e[32mcopy predefined ssh keys\e[0m"; sudo touch /etc/ssh/mod_install_server sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ From acffb8b6c0c3da8b22d320ddbd811d1a202aaac1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Dec 2017 09:41:01 +0100 Subject: [PATCH 044/694] setup vnc --- install-pxe-server_pass1.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 3120566..d856f81 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-28 +# v2017-12-29 # # known issues: # @@ -161,6 +161,12 @@ sudo apt install -y realvnc-vnc-server sudo systemctl enable vncserver-x11-serviced.service; sudo systemctl restart vncserver-x11-serviced.service; +[ -f $SRC_MOUNT/backup/vncserver-x11 ] && { + echo -e "\e[32msetup real-vnc-server\e[0m"; + sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/vncserver-x11 /root/.vnc/config.d/ + sudo systemctl restart vncserver-x11-serviced.service; +} + ###################################################################### ## optional From 4ce8fa0353d5b8a773993f821476a249b4546fd8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Jan 2018 09:15:43 +0100 Subject: [PATCH 045/694] additional RPI_SN info --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cae15a0..447da13 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,15 @@ it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested ## note4: NETWORK BOOTING for Raspberry Pi 3 the server is prepared for to boot a Raspberry Pi 3 via network. -in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN=12345678``` line, change the ```12345678``` to the serial number of the RPi3, that will boot from network. if you have more than one RPi3 for network booting you have to add them by hand to the ```/srv/tftp``` folder. +in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN=--------``` line, change the ```--------``` to the serial number of the RPi3, that will boot from network.
+skip the leading '00000000'. take only the last 8 digits!
+e.g. +``` +pi@raspberry-$ cat /proc/cpuinfo | grep Serial +Serial : 0000000087654321 +``` +then take ```RPI_SN=87654321```.
+if you have more than one RPi3 for network booting you have to add them by hand to the ```/srv/tftp``` folder. the script will download Raspbian-Stretch-Lite and prepare it for the RPi3 with the given serial number. From 0606b58ab07d8e38c1e513d2752d1d5c3b5206b5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Jan 2018 09:23:12 +0100 Subject: [PATCH 046/694] RPI_SN0 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 447da13..8d0cde8 100644 --- a/README.md +++ b/README.md @@ -277,14 +277,14 @@ it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested ## note4: NETWORK BOOTING for Raspberry Pi 3 the server is prepared for to boot a Raspberry Pi 3 via network. -in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN=--------``` line, change the ```--------``` to the serial number of the RPi3, that will boot from network.
+in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3, that will boot from network.
skip the leading '00000000'. take only the last 8 digits!
e.g. ``` pi@raspberry-$ cat /proc/cpuinfo | grep Serial Serial : 0000000087654321 ``` -then take ```RPI_SN=87654321```.
+then take ```RPI_SN0=87654321```.
if you have more than one RPi3 for network booting you have to add them by hand to the ```/srv/tftp``` folder. the script will download Raspbian-Stretch-Lite and prepare it for the RPi3 with the given serial number. From ad41b015fd591b0b063080920bc65b0a4ce0c62a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Jan 2018 12:42:36 +0100 Subject: [PATCH 047/694] add: Parrot Security & Home --- install-pxe-server_pass2.sh | 84 +++++++++++++++++++++++++++++++++---- 1 file changed, 76 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 029a917..bbadf04 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -4,6 +4,7 @@ # ubuntu, http://releases.ubuntu.com/ # https://help.ubuntu.com/community/Installation/MinimalCD # debian, http://cdimage.debian.org/debian-cd/ +# parrotsec, https://cdimage.parrotsec.org/parrot/iso/ # gnuradio, https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment # kali, http://www.kali.org/kali-linux-releases/ # deft, http://www.deftlinux.net/ @@ -21,13 +22,11 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2017-12-27 +# v2018-01-02 # # known issues: # -#bridge# - ########################################################################## echo -e "\e[36msetup variables\e[0m"; @@ -134,25 +133,32 @@ WIN_PE_X86_URL= UBUNTU_LTS_X64=ubuntu-lts-x64 UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04.3/ubuntu-16.04.3-desktop-amd64.iso - UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.3/ubuntu-16.04.3-desktop-i386.iso UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/17.10/ubuntu-17.10-desktop-amd64.iso - UBUNTU_X86=ubuntu-x86 UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= +DEBIAN_KVER=4.9.0-4 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.3.0-amd64-lxde.iso -DEBIAN_KVER=4.9.0-4 DEBIAN_X86=debian-x86 DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.3.0-i386-lxde.iso +PARROT_LITE_X64=parrot-lite-x64 +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-home-3.10.1_amd64.iso +PARROT_LITE_X86=parrot-lite-x86 +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-home-3.10.1_i386.iso +PARROT_FULL_X64=parrot-full-x64 +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-security-3.10.1_amd64.iso +PARROT_FULL_X86=parrot-full-x86 +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-security-3.10.1_i386.iso + GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=http://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso @@ -176,7 +182,6 @@ DESINFECT_X86_URL= TINYCORE_x64=tinycore-x64 TINYCORE_x64_URL=http://tinycorelinux.net/8.x/x86_64/release/TinyCorePure64-8.2.1.iso - TINYCORE_x86=tinycore-x86 TINYCORE_x86_URL=http://tinycorelinux.net/8.x/x86/release/TinyCore-8.2.1.iso @@ -185,7 +190,6 @@ RPDESKTOP_X86_URL=http://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-1 CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-amd64.iso - CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-i686.iso @@ -745,6 +749,66 @@ LABEL Debian x86 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL Parrot Lite x64 + KERNEL /nfs/$PARROT_LITE_X64/live/vmlinuz + APPEND initrd=/nfs/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + TEXT HELP + Boot to Parrot Lite x64 Live (Home/Workstation) + User: user, Password: live + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_LITE_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL Parrot Lite x86 + KERNEL /nfs/$PARROT_LITE_X86/live/vmlinuz + APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_HOME_X86 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + TEXT HELP + Boot to Parrot Lite x86 Live (Home/Workstation) + User: user, Password: live + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL Parrot Full x64 + KERNEL /nfs/$PARROT_FULL_X64/live/vmlinuz + APPEND initrd=/nfs/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + TEXT HELP + Boot to Parrot Full x64 Live (Security) + User: user, Password: live + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_FULL_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL Parrot Full x86 + KERNEL /nfs/$PARROT_FULL_X86/live/vmlinuz + APPEND initrd=/nfs/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + TEXT HELP + Boot to Parrot Full x86 Live (Security) + User: user, Password: live + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then echo -e "\e[36m add $GNURADIO_X64\e[0m"; @@ -1779,6 +1843,10 @@ handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $DEFT_X64 $DEFT_X64_URL; handle_iso $DEFTZ_X64 $DEFTZ_X64_URL bindfs; From d923b791c5676d4f60b41c26c31887f3d735fa6c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Jan 2018 17:03:06 +0100 Subject: [PATCH 048/694] fix: typo in Parrot entry --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index bbadf04..4c7018a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -771,7 +771,7 @@ EOF"; ######################################## LABEL Parrot Lite x86 KERNEL /nfs/$PARROT_LITE_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_HOME_X86 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin TEXT HELP Boot to Parrot Lite x86 Live (Home/Workstation) User: user, Password: live From a44c866b5c60349bcb65a356f419bfa765dcdea9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Jan 2018 18:57:38 +0100 Subject: [PATCH 049/694] changed iso mount behavior --- install-pxe-server_pass2.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4c7018a..e6e7f6e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1115,7 +1115,7 @@ handle_iso() { ###################################################################### # $1 : short name # $2 : download url - # $3 : optional bindfs + # $3 : optional/additional mount flags ###################################################################### local NAME=$1 local URL=$2 @@ -1173,10 +1173,10 @@ handle_iso() { fi if ! [ -d "$DST_ORIGINAL" ]; then - if [ "$3" == "bindfs" ]; then + if [ "$3" == "bindfs" ]; then echo -e "\e[36m create nfs folder\e[0m"; sudo mkdir -p $DST_ORIGINAL; - fi + fi fi if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then @@ -1185,7 +1185,7 @@ handle_iso() { sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; else - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; fi fi @@ -1849,7 +1849,7 @@ handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $DEFT_X64 $DEFT_X64_URL; -handle_iso $DEFTZ_X64 $DEFTZ_X64_URL bindfs; +handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL; handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; From 004b70e724436f2b531069bc7a77843b56f7c8c6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Jan 2018 23:29:38 +0100 Subject: [PATCH 050/694] mod: WinPE PXE boot --- install-pxe-server_pass2.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e6e7f6e..144d50e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -591,7 +591,7 @@ handle_pxe_menu() { # http://www.syslinux.org/wiki/index.php?title=Menu -DEFAULT /vesamenu.c32 +DEFAULT vesamenu.c32 TIMEOUT 600 ONTIMEOUT Boot Local PROMPT 0 @@ -609,7 +609,7 @@ menu color help 1;37;40 #FFFFFFFF * menu helpmsgrow 26 LABEL Boot Local - localboot 0 + LOCALBOOT 0 TEXT HELP Boot to local hard disk ENDTEXT @@ -617,12 +617,12 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_TFTP_ETH0/$1/pxeboot.0" ]; then + && [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Windows PE x86 (PXE) - PXE /pxeboot.0 + PXE pxeboot.n12 TEXT HELP Boot to Windows PE 32bit ENDTEXT @@ -635,7 +635,7 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Windows PE x86 (ISO) - KERNEL /memdisk + KERNEL memdisk APPEND iso INITRD $ISO/$WIN_PE_X86.iso TEXT HELP @@ -1055,9 +1055,9 @@ handle_pxe() { [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; if [ -d "$SRC_TFTP_ETH0" ]; then echo -e "\e[36m copy win-pe stuff\e[0m"; - [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxeboot.0" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/pxeboot.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -f "$DST_TFTP_ETH0/bootmgr.exe" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/bootmgr.exe $DST_TFTP_ETH0/; - [ -d "$DST_TFTP_ETH0/boot" ] || sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/boot $DST_TFTP_ETH0/; + if ! [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxeboot.n12" ] && [ -f "$SRC_TFTP_ETH0/pxeboot.n12" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/pxeboot.n12 $DST_TFTP_ETH0/$DST_PXE_BIOS/; fi + if ! [ -f "$DST_TFTP_ETH0/bootmgr.exe" ] && [ -f "$SRC_TFTP_ETH0/bootmgr.exe" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/bootmgr.exe $DST_TFTP_ETH0/; fi + if ! [ -d "$DST_TFTP_ETH0/boot" ] && [ -d "$SRC_TFTP_ETH0/boot" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/boot $DST_TFTP_ETH0/; fi fi [ -h "$DST_TFTP_ETH0/sources" ] || sudo ln -s $DST_NFS_ETH0/$WIN_PE_X86/sources/ $DST_TFTP_ETH0/sources; #for SRC in `find /srv/tftp/Boot -depth` From 8eea384177c4a1e255c5ee3f97207d7a8bc17de9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Jan 2018 05:41:22 +0100 Subject: [PATCH 051/694] overlayfs still a mess. go back to classic handling --- install-pxe-server_pass2.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 144d50e..98c1e72 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,9 @@ # v2018-01-02 # # known issues: -# +# overlayfs can not get exported via nfs +# overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy +# note: this overlayfs+bindfs construction does NOT work reliably - data loss! ########################################################################## @@ -1722,15 +1724,17 @@ handle_rpi_pxe() { fi if [ $(($KERNEL_VER < 413)) != 0 ]; then - # handle_rpi_pxe_classic $1 $2 $3; + handle_rpi_pxe_classic $1 $2 $3; # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy - handle_rpi_pxe_overlay $1 $2 $3; + # note: this construction does NOT work reliably - data loss! + #handle_rpi_pxe_overlay $1 $2 $3; else # overlayFS is still not able to export via nfs - #handle_rpi_pxe_classic $1 $2 $3; + handle_rpi_pxe_classic $1 $2 $3; # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy - handle_rpi_pxe_overlay $1 $2 $3; + # note: this construction does NOT work reliably - data loss! + #handle_rpi_pxe_overlay $1 $2 $3; fi } From 81665aac3cb8b9bb006fca6c5d6864751eb0e80b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Jan 2018 05:51:58 +0100 Subject: [PATCH 052/694] Update README.md --- README.md | 69 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 8d0cde8..5887809 100644 --- a/README.md +++ b/README.md @@ -131,28 +131,14 @@ no problems. pxe boot job can access to required content. ║ └───────────╥─┘ ╚═════════════╝ ``` -### readonly mounting content of ISO and modify users, and permissions by bindfs: -e.g. deftz-x64 iso image
-the pxe boot job can not access to the file vmlinuz because of too restictive file permissions on file system.
-mounting by bindfs with some parameters will map users, groups and permissions, so that the pxe boot job can access all the required files. -``` -╔═════════════╗ -║iso-file ║ -║ ║ -║ ┌───────────╨─┐ ┌─────────────┐ -║ │mount loop │ │mount bindfs │ -║ │ pxe can't │ │ prepare to │ -║ │ access ├─┼ pxe ├───┤nfs* -║ └───────────╥─┘ └─────────────┘ -╚═════════════╝ -``` ### mounting content of disk image and make content read/writalbe by overlayfs: e.g. rpi-raspbian-full
this disk image contains two partitions. the first is the boot partition and the second is the root parition. to make the images read/writable, there is an overlayfs putted on top.
(lowerdir is the readonly source, upperdir is the writable difference, workdir is an temporarily workfolder for internal use. the mergeddir is the sum of lower + upper. write access happens only on the upperdir with white-out and write-on-modify capability)
but unfortunately overlayfs can't get exported directly for nfs. so putting a bindfs on top of the overlayfs makes it possible to get exported for nfs.
-and another issue is, overlayfs can't handle **vfat** partitions as source (lowerdir). putting bindfs between makes overlayfs happy. +and another issue is, overlayfs can't handle **vfat** partitions as source (lowerdir). putting bindfs between makes overlayfs happy.
+**note: this overlayfs+bindfs construction does NOT work reliably - data loss!** ``` ╔═════════════╗ ║img-file ║ @@ -194,8 +180,13 @@ ubuntu-x86.iso ubuntu-nopae.iso # an old Ubuntu with non-PAE for old PCs debian-x64.iso # Debian debian-x86.iso +parrot-lite-x64.iso # Parrot Security + Home/Workstation +parrot-lite-x86.iso +parrot-full-x64.iso +parrot-full-x86.iso gnuradio-x64.iso # GNU Radio deft-x64.iso # DEFT +deftz-x64.iso kali-x64.iso # Kali Linux pentoo-x64.iso # Pentoo Linux systemrescue-x86.iso # System Rescue @@ -217,8 +208,13 @@ ubuntu-x86.url ubuntu-nopae.url debian-x64.url debian-x86.url +parrot-lite-x64.url +parrot-lite-x86.url +parrot-full-x64.url +parrot-full-x86.url gnuradio-x64.url deft-x64.url +deftz-x64.url kali-x64.url pentoo-x64.url systemrescue-x86.url @@ -241,23 +237,30 @@ RPD_LITE_URL=https://.../...zip e.g.:** ``` ###################################################################### -# handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -# handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -# handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -# handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -# handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -# handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -# handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -# handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -# handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -# handle_iso $DEFT_X64 $DEFT_X64_URL; -# handle_iso $KALI_X64 $KALI_X64_URL; -# handle_iso $PENTOO_X64 $PENTOO_X64_URL; -# handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -# handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; -handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +# handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +# handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +# handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +# handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +# handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +# handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +# handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +# handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +# handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +# handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +# handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +# handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; +# handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +# handle_iso $DEFT_X64 $DEFT_X64_URL; +# handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +# handle_iso $KALI_X64 $KALI_X64_URL; +# handle_iso $PENTOO_X64 $PENTOO_X64_URL; +# handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +# handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; +handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +# handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +# handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; ... ``` **same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines From 97ee2102c15f665479bdfe54e1011cee4114d34c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Jan 2018 10:23:34 +0100 Subject: [PATCH 053/694] update: url --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 98c1e72..8c4788c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -22,7 +22,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2018-01-02 +# v2018-01-12 # # known issues: # overlayfs can not get exported via nfs @@ -139,7 +139,7 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.3/ubuntu-16.04.3-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/17.10/ubuntu-17.10-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/17.10.1/ubuntu-17.10.1-desktop-amd64.iso UBUNTU_X86=ubuntu-x86 UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso @@ -196,10 +196,10 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-i686.iso FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/26/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-26-1.5.iso +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.3/tails-amd64-3.3.iso +TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.4/tails-amd64-3.4.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1708.iso From 095c50eea20ea862982d29584e2e43be418e60c6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Jan 2018 10:38:11 +0100 Subject: [PATCH 054/694] centos pxe menu entries - no success --- install-pxe-server_pass2.sh | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8c4788c..9302693 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -11,7 +11,9 @@ # pentoo, http://www.pentoo.ch/download/ # sysrescue, http://sourceforge.net/projects/systemrescuecd/ (http://www.sysresccd.org/Download/) # knoppix, http://www.knopper.net/knoppix-mirrors/index-en.html -# tails https://tails.boum.org/install/download/openpgp/index.en.html +# tails, https://tails.boum.org/install/download/openpgp/index.en.html +# centos, https://www.centos.org/download/ +# fedora, https://getfedora.org/en/workstation/download/ # winpe, https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx # nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso # tinycore, http://tinycorelinux.net/downloads.html @@ -1000,10 +1002,25 @@ EOF"; ######################################## ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel ## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup +## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc ## NOT WORKING LABEL CentOS x64 KERNEL $NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + +# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; + #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + +# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; + #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + +# mount.nfs: mountpoint /sysroot is not a directory + #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + +# Warning: Could not boot. + # Warning: /dev/mapper/live-rw does not exist + # Starting Dracut Emergency Shell + APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 TEXT HELP Boot to CentOS LiveGNOME User: liveuser From bf89595ca343ff890693dc8f64be860a5dd6461b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Jan 2018 10:50:13 +0100 Subject: [PATCH 055/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9302693..e0af2a6 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1858,27 +1858,27 @@ handle_optional; ########################################################################## handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +#handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; -handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -handle_iso $DEFT_X64 $DEFT_X64_URL; -handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -handle_iso $KALI_X64 $KALI_X64_URL; -handle_iso $PENTOO_X64 $PENTOO_X64_URL; -handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +#handle_iso $DEFT_X64 $DEFT_X64_URL; +#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +#handle_iso $KALI_X64 $KALI_X64_URL; +#handle_iso $PENTOO_X64 $PENTOO_X64_URL; +#handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; +#handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $CENTOS_X64 $CENTOS_X64_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; @@ -1893,9 +1893,9 @@ handle_pxe; ## you don't want to download, mount, export ########################################################################## ########################################################################## -handle_zip_img $PI_CORE $PI_CORE_URL; -handle_zip_img $RPD_LITE $RPD_LITE_URL; -handle_zip_img $RPD_FULL $RPD_FULL_URL; +#handle_zip_img $PI_CORE $PI_CORE_URL; +#handle_zip_img $RPD_LITE $RPD_LITE_URL; +#handle_zip_img $RPD_FULL $RPD_FULL_URL; ########################################################################## ########################################################################## ## comment out those entries, @@ -1904,7 +1904,7 @@ handle_zip_img $RPD_FULL $RPD_FULL_URL; ########################################################################## #handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; #handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +#handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; # # # # # # From 1fdf267f11348596f06c5a89ce3f5ce2216743c3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Jan 2018 00:40:06 +0100 Subject: [PATCH 056/694] add: lighttpd --- install-pxe-server_pass1.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index d856f81..af8d4c6 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2017-12-29 +# v2018-01-18 # # known issues: # @@ -119,6 +119,11 @@ echo -e "\e[32minstall syslinux-common for pxe\e[0m"; sudo apt install -y pxelinux syslinux-common; +###################################################################### +echo -e "\e[32minstall lighttpd\e[0m"; +sudo apt install -y lighttpd; + + ###################################################################### echo -e "\e[32minstall apt-cacher-ng\e[0m"; sudo apt install -y apt-cacher-ng; From d3714be1a29e38ff3bdc85fba06427eee9ca2b71 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Jan 2018 01:01:03 +0100 Subject: [PATCH 057/694] add: lighttpd - expose iso and its content via http --- install-pxe-server_pass2.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e0af2a6..9027c32 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2018-01-12 +# v2018-01-18 # # known issues: # overlayfs can not get exported via nfs @@ -1200,12 +1200,12 @@ handle_iso() { if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; - if [ "$3" == "bindfs" ]; then + if [ "$3" == "bindfs" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; - else + else sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; - fi + fi fi if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then @@ -1216,6 +1216,15 @@ handle_iso() { if [ "$3" == "bindfs" ]; then sudo mount $DST_ORIGINAL; fi sudo mount $DST_NFS_ETH0/$NAME; sudo exportfs *:$DST_NFS_ETH0/$NAME; + + if [ -d "/var/www/html" ]; then + if ! [ -h "/var/www/html/$FILE_ISO" ]; then + sudo ln -s $DST_ISO/$FILE_ISO /var/www/html/$FILE_ISO + fi + if ! [ -h "/var/www/html/$NAME" ]; then + sudo ln -s $DST_NFS_ETH0/$NAME/ /var/www/html/$NAME + fi + fi else sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" From 74bc9235b87a39a661313ffc263fc9d294ae2abf Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Jan 2018 01:06:01 +0100 Subject: [PATCH 058/694] fix: fedora --- install-pxe-server_pass2.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9027c32..4275965 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1034,12 +1034,11 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## NOT WORKING +## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc +## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html LABEL Fedora x64 - KERNEL $NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz -# APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=$IP_ETH0:$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 - APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$FEDORA_X64,vers=3 root-path=/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 -# APPEND initrd=$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img root=live:tftp://$IP_ETH0/menu-bios/nfs/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz + APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 TEXT HELP Boot to Fedora Workstation Live User: liveuser From 0aacf7d1e65cd7cb5f420f2ac1eb6ff9e2b3fcf0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 24 Jan 2018 21:39:15 +0100 Subject: [PATCH 059/694] update url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4275965..38799af 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2018-01-18 +# v2018-01-24 # # known issues: # overlayfs can not get exported via nfs @@ -201,7 +201,7 @@ FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.4/tails-amd64-3.4.iso +TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.5/tails-amd64-3.5.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1708.iso From ac765284740c34ee31e4726eab9a8e6fb4b1cc6b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 5 Feb 2018 21:05:12 +0100 Subject: [PATCH 060/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 38799af..83924ab 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # clonezilla http://clonezilla.org/ # -# v2018-01-24 +# v2018-02-05 # # known issues: # overlayfs can not get exported via nfs @@ -179,7 +179,7 @@ PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_default/pentoo-amd64-default-2015.0_RC5.iso SYSTEMRESCTUE_X86=systemrescue-x86 -SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.1.2/systemrescuecd-x86-5.1.2.iso +SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.0/systemrescuecd-x86-5.2.0.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= From 8142d0fc9e5465433a58fd0776409f2c7e4e8468 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Feb 2018 21:24:56 +0100 Subject: [PATCH 061/694] updated url --- install-pxe-server_pass2.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 83924ab..0b82ef7 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1,8 +1,8 @@ #!/bin/bash ########################################################################## +# winpe, https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx # ubuntu, http://releases.ubuntu.com/ -# https://help.ubuntu.com/community/Installation/MinimalCD # debian, http://cdimage.debian.org/debian-cd/ # parrotsec, https://cdimage.parrotsec.org/parrot/iso/ # gnuradio, https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment @@ -10,21 +10,19 @@ # deft, http://www.deftlinux.net/ # pentoo, http://www.pentoo.ch/download/ # sysrescue, http://sourceforge.net/projects/systemrescuecd/ (http://www.sysresccd.org/Download/) -# knoppix, http://www.knopper.net/knoppix-mirrors/index-en.html -# tails, https://tails.boum.org/install/download/openpgp/index.en.html -# centos, https://www.centos.org/download/ -# fedora, https://getfedora.org/en/workstation/download/ -# winpe, https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx -# nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso +# clonezilla http://clonezilla.org/ # tinycore, http://tinycorelinux.net/downloads.html # rpdesktop, http://downloads.raspberrypi.org/rpd_x86/images/ (https://www.raspberrypi.org/blog/a-raspbian-desktop-update-with-some-new-programming-tools/) +# fedora, https://getfedora.org/en/workstation/download/ +# nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso +# tails, https://tails.boum.org/install/download/openpgp/index.en.html +# centos, https://www.centos.org/download/ # # rpi-raspbian http://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ -# clonezilla http://clonezilla.org/ # -# v2018-02-05 +# v2018-02-10 # # known issues: # overlayfs can not get exported via nfs @@ -173,7 +171,7 @@ DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=http://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso KALI_X64=kali-x64 -KALI_X64_URL=http://cdimage.kali.org/kali-2017.3/kali-linux-2017.3-amd64.iso +KALI_X64_URL=http://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_default/pentoo-amd64-default-2015.0_RC5.iso @@ -1879,7 +1877,7 @@ handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; #handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; #handle_iso $DEFT_X64 $DEFT_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -#handle_iso $KALI_X64 $KALI_X64_URL; +handle_iso $KALI_X64 $KALI_X64_URL; #handle_iso $PENTOO_X64 $PENTOO_X64_URL; #handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; From 1f0d86f1b136133a54dded6cbead29b0703a79dc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Feb 2018 21:14:16 +0100 Subject: [PATCH 062/694] updated url --- install-pxe-server_pass2.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 0b82ef7..a225485 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -22,7 +22,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-02-10 +# v2018-02-14 # # known issues: # overlayfs can not get exported via nfs @@ -153,13 +153,13 @@ DEBIAN_X86=debian-x86 DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.3.0-i386-lxde.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-home-3.10.1_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-home-3.11_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-home-3.10.1_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-home-3.11_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-security-3.10.1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-security-3.11_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.10.1/Parrot-security-3.10.1_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-security-3.11_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=http://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From a90dacd952f78f20190ecceca0fc99cace1d431b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Feb 2018 21:29:33 +0100 Subject: [PATCH 063/694] updated url --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index a225485..68bc88d 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -174,7 +174,7 @@ KALI_X64=kali-x64 KALI_X64_URL=http://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_default/pentoo-amd64-default-2015.0_RC5.iso +PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_default/pentoo-amd64-default-2018.0_RC5.7.iso SYSTEMRESCTUE_X86=systemrescue-x86 SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.0/systemrescuecd-x86-5.2.0.iso From 7e9a08b0793f26eee595384a18ebe49bf89ec142 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Feb 2018 21:36:55 +0100 Subject: [PATCH 064/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 68bc88d..ab59133 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -174,7 +174,7 @@ KALI_X64=kali-x64 KALI_X64_URL=http://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_default/pentoo-amd64-default-2018.0_RC5.7.iso +PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC5.7.iso SYSTEMRESCTUE_X86=systemrescue-x86 SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.0/systemrescuecd-x86-5.2.0.iso @@ -1878,7 +1878,7 @@ handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; #handle_iso $DEFT_X64 $DEFT_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; -#handle_iso $PENTOO_X64 $PENTOO_X64_URL; +handle_iso $PENTOO_X64 $PENTOO_X64_URL; #handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; #handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; From 8622835aa9424cb590089ae81107314184c992a3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 17 Feb 2018 18:08:00 +0100 Subject: [PATCH 065/694] fixed pentoo 2018 pxe menu entry --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ab59133..980018e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -878,7 +878,7 @@ EOF"; ######################################## LABEL Pentoo x64 KERNEL $NFS_ETH0/$PENTOO_X64/isolinux/pentoo - APPEND initrd=$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc aufs looptype=squashfs loop=/image.squashfs cdroot nox -- + APPEND initrd=$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- TEXT HELP Boot to Pentoo x64 Live User: pentoo From 88ed6d46a5f28af366282b246c801ee24170b2c6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 17 Feb 2018 21:03:27 +0100 Subject: [PATCH 066/694] mod parrot lang DE --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 980018e..723f25e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -758,7 +758,7 @@ EOF"; ######################################## LABEL Parrot Lite x64 KERNEL /nfs/$PARROT_LITE_X64/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live @@ -773,7 +773,7 @@ EOF"; ######################################## LABEL Parrot Lite x86 KERNEL /nfs/$PARROT_LITE_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Parrot Lite x86 Live (Home/Workstation) User: user, Password: live @@ -788,7 +788,7 @@ EOF"; ######################################## LABEL Parrot Full x64 KERNEL /nfs/$PARROT_FULL_X64/live/vmlinuz - APPEND initrd=/nfs/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -803,7 +803,7 @@ EOF"; ######################################## LABEL Parrot Full x86 KERNEL /nfs/$PARROT_FULL_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=de_DE.UTF-8 utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin TEXT HELP Boot to Parrot Full x86 Live (Security) User: user, Password: live From d00d676c56558442ffab2ebf90ca9d7b70c84ffd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 26 Feb 2018 22:23:34 +0100 Subject: [PATCH 067/694] updated url --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 723f25e..6ee8302 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -177,7 +177,7 @@ PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC5.7.iso SYSTEMRESCTUE_X86=systemrescue-x86 -SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.0/systemrescuecd-x86-5.2.0.iso +SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.1/systemrescuecd-x86-5.2.1.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= From 8e183933753f19e08fc658b59f164380203a5f8c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 6 Mar 2018 10:04:59 +0100 Subject: [PATCH 068/694] updated url --- install-pxe-server_pass2.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 6ee8302..fa1c524 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -12,7 +12,7 @@ # sysrescue, http://sourceforge.net/projects/systemrescuecd/ (http://www.sysresccd.org/Download/) # clonezilla http://clonezilla.org/ # tinycore, http://tinycorelinux.net/downloads.html -# rpdesktop, http://downloads.raspberrypi.org/rpd_x86/images/ (https://www.raspberrypi.org/blog/a-raspbian-desktop-update-with-some-new-programming-tools/) +# rpdesktop, http://downloads.raspberrypi.org/rpd_x86/images/ # fedora, https://getfedora.org/en/workstation/download/ # nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso # tails, https://tails.boum.org/install/download/openpgp/index.en.html @@ -22,12 +22,13 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-02-14 +# v2018-03-06 # # known issues: # overlayfs can not get exported via nfs # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy # note: this overlayfs+bindfs construction does NOT work reliably - data loss! +# solution: maybe linux kernel 4.16 ########################################################################## @@ -134,9 +135,9 @@ WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04.3/ubuntu-16.04.3-desktop-amd64.iso +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.3/ubuntu-16.04.3-desktop-i386.iso +UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/17.10.1/ubuntu-17.10.1-desktop-amd64.iso @@ -183,9 +184,9 @@ DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= TINYCORE_x64=tinycore-x64 -TINYCORE_x64_URL=http://tinycorelinux.net/8.x/x86_64/release/TinyCorePure64-8.2.1.iso +TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-9.0.iso TINYCORE_x86=tinycore-x86 -TINYCORE_x86_URL=http://tinycorelinux.net/8.x/x86/release/TinyCore-8.2.1.iso +TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-9.0.iso RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=http://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso From 5454308e6d9d084bc3bc2b0797b79dd40ad8dcb5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Mar 2018 08:17:37 +0100 Subject: [PATCH 069/694] added daily-live functionality if option daily-live is given, then content of url file will be ignored and ISO image will be downloaded again each time you run the script --- install-pxe-server_pass2.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index fa1c524..0ca9e3d 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -144,6 +144,9 @@ UBUNTU_X64_URL=http://releases.ubuntu.com/17.10.1/ubuntu-17.10.1-desktop-amd64.i UBUNTU_X86=ubuntu-x86 UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso +UBUNTU_DAILY_X64=ubuntu-daily-x64 +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/current/bionic-desktop-amd64.iso + UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= @@ -707,6 +710,21 @@ LABEL Ubuntu x86 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz.efi" ]; then + echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL Ubuntu x64 Daily-Live + KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz.efi + APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- + TEXT HELP + Boot to Ubuntu x64 Daily-Live + User: ubuntu + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; @@ -1172,6 +1190,7 @@ handle_iso() { if ! [ -f "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ + || [ "$3" == "daily-live" ] then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; @@ -1201,6 +1220,8 @@ handle_iso() { if [ "$3" == "bindfs" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; + else if [ "$3" == "daily-live" ]; then + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$4 0 10' >> /etc/fstab"; else sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; fi @@ -1868,6 +1889,7 @@ handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; #handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; #handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL daily-live; #handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; #handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; #handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; From 64638fe773dcb1178e8590d267e2f274efbb4d62 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Mar 2018 08:19:57 +0100 Subject: [PATCH 070/694] fixed a syntax error at line 1193 --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 0ca9e3d..1066e56 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1190,7 +1190,7 @@ handle_iso() { if ! [ -f "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ - || [ "$3" == "daily-live" ] + || [ "$3" == "daily-live" ] \ then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; From 18ee23f27bb80bb8e1f32e7912a3b98eb844cbd4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Mar 2018 08:21:31 +0100 Subject: [PATCH 071/694] but now it will be fixed --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1066e56..befc7b1 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1189,8 +1189,8 @@ handle_iso() { fi if ! [ -f "$DST_ISO/$FILE_ISO" ] \ - || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ - || [ "$3" == "daily-live" ] \ + || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ + || [ "$3" == "daily-live" ]; \ then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; From 7cce8cc594f42e20865c316cd8c127b5ef830227 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Mar 2018 08:27:02 +0100 Subject: [PATCH 072/694] an other oops at line 1251 --- install-pxe-server_pass2.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index befc7b1..e440db5 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1220,10 +1220,12 @@ handle_iso() { if [ "$3" == "bindfs" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; - else if [ "$3" == "daily-live" ]; then - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$4 0 10' >> /etc/fstab"; else - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; + if [ "$3" == "daily-live" ]; then + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$4 0 10' >> /etc/fstab"; + else + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; + fi fi fi From 610fbd2361e1e420d63b737e5301cc0f66583354 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Mar 2018 08:39:07 +0100 Subject: [PATCH 073/694] completed reference list --- install-pxe-server_pass2.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e440db5..cbd5607 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -3,6 +3,7 @@ ########################################################################## # winpe, https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx # ubuntu, http://releases.ubuntu.com/ +# http://cdimage.ubuntu.com/daily-live/current/ # debian, http://cdimage.debian.org/debian-cd/ # parrotsec, https://cdimage.parrotsec.org/parrot/iso/ # gnuradio, https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment From 5daf7ffcc8c10e4e32a73bef56f5d3517bff3888 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 11 Mar 2018 09:26:35 +0100 Subject: [PATCH 074/694] updated url --- install-pxe-server_pass2.sh | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index cbd5607..e453c67 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-03-06 +# v2018-03-11 # # known issues: # overlayfs can not get exported via nfs @@ -146,16 +146,16 @@ UBUNTU_X86=ubuntu-x86 UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/current/bionic-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/bionic-desktop-amd64.iso UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= -DEBIAN_KVER=4.9.0-4 +DEBIAN_KVER=4.9.0-6 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.3.0-amd64-lxde.iso +DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.4.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.3.0-i386-lxde.iso +DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.4.0-i386-lxde.iso PARROT_LITE_X64=parrot-lite-x64 PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-home-3.11_amd64.iso @@ -1013,6 +1013,24 @@ LABEL Clonezilla x86 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then + echo -e "\e[36m add $FEDORA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel +## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc +## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html +LABEL Fedora x64 + KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz + APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + TEXT HELP + Boot to Fedora Workstation Live + User: liveuser + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then echo -e "\e[36m add $CENTOS_X64\e[0m"; @@ -1046,24 +1064,6 @@ LABEL CentOS x64 EOF"; fi - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then - echo -e "\e[36m add $FEDORA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc -## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html -LABEL Fedora x64 - KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 - TEXT HELP - Boot to Fedora Workstation Live - User: liveuser - ENDTEXT -EOF"; - fi - if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then echo -e "\e[36m add $TAILS_X64\e[0m"; From 2a4b859de7f8591106851fed603dcbf0e203011c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 11 Mar 2018 11:35:29 +0100 Subject: [PATCH 075/694] added compare_last_modification_time() for daily-live wget -N does not work in combination with -O --- install-pxe-server_pass2.sh | 38 ++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e453c67..bbb7e6e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1145,6 +1145,42 @@ handle_pxe() { } +########################################################################## +compare_last_modification_time() { + python3 - << EOF "$1" "$2" +import sys +import os +import urllib.request +import time + +try: + str_time = '%Y-%m-%d %H:%M:%S' + str_stdout = '{} := ''{}''' + + arg_file = sys.argv[1] + stat_file = os.stat(arg_file) + time_file = time.gmtime(stat_file.st_mtime) + + arg_url = sys.argv[2] + conn_url = urllib.request.urlopen(arg_url) + time_url = time.strptime(conn_url.headers['last-modified'], '%a, %d %b %Y %H:%M:%S %Z') + + print(str_stdout.format(time.strftime(str_time, time_file), arg_file)) + print(str_stdout.format(time.strftime(str_time, time_url), arg_url)) + if time_url <= time_file: + print('file is up to date') + exit_code = 0 + else: + print('url is newer') + exit_code = 1 +except: + exit_code = 1 + +sys.exit(exit_code) +EOF +} + + ########################################################################## handle_iso() { echo -e "\e[32mhandle_iso(\e[0m$1\e[32m)\e[0m"; @@ -1191,7 +1227,7 @@ handle_iso() { if ! [ -f "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ - || [ "$3" == "daily-live" ]; \ + || [ "$3" == "daily-live" && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL ]; \ then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; From ca1fa048a36813f30bbe17f78881119281817e02 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 11 Mar 2018 11:41:11 +0100 Subject: [PATCH 076/694] fix syntax --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index bbb7e6e..d85a377 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1227,7 +1227,7 @@ handle_iso() { if ! [ -f "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ - || [ "$3" == "daily-live" && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL ]; \ + || ([ "$3" == "daily-live" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; From 320fde19c69e949dbb605e7ccab71171b48e72de Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Mar 2018 23:17:18 +0100 Subject: [PATCH 077/694] updated url --- install-pxe-server_pass2.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index d85a377..52fad35 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -4,26 +4,26 @@ # winpe, https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx # ubuntu, http://releases.ubuntu.com/ # http://cdimage.ubuntu.com/daily-live/current/ -# debian, http://cdimage.debian.org/debian-cd/ +# debian, https://cdimage.debian.org/debian-cd/ # parrotsec, https://cdimage.parrotsec.org/parrot/iso/ # gnuradio, https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment -# kali, http://www.kali.org/kali-linux-releases/ +# kali, https://www.kali.org/kali-linux-releases/ # deft, http://www.deftlinux.net/ # pentoo, http://www.pentoo.ch/download/ -# sysrescue, http://sourceforge.net/projects/systemrescuecd/ (http://www.sysresccd.org/Download/) +# sysrescue, https://sourceforge.net/projects/systemrescuecd/ (https://www.sysresccd.org/Download/) # clonezilla http://clonezilla.org/ # tinycore, http://tinycorelinux.net/downloads.html -# rpdesktop, http://downloads.raspberrypi.org/rpd_x86/images/ +# rpdesktop, https://downloads.raspberrypi.org/rpd_x86/images/ # fedora, https://getfedora.org/en/workstation/download/ # nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso # tails, https://tails.boum.org/install/download/openpgp/index.en.html # centos, https://www.centos.org/download/ # -# rpi-raspbian http://downloads.raspberrypi.org/raspbian/images/ +# rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-03-11 +# v2018-03-14 # # known issues: # overlayfs can not get exported via nfs @@ -153,9 +153,9 @@ UBUNTU_NONPAE_URL= DEBIAN_KVER=4.9.0-6 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.4.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.4.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.4.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.4.0-i386-lxde.iso PARROT_LITE_X64=parrot-lite-x64 PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-home-3.11_amd64.iso @@ -167,16 +167,16 @@ PARROT_FULL_X86=parrot-full-x86 PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-security-3.11_i386.iso GNURADIO_X64=gnuradio-x64 -GNURADIO_X64_URL=http://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso +GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso DEFT_X64=deft-x64 -DEFT_X64_URL=http://na.mirror.garr.it/mirrors/deft/deft-8.2.iso +DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso DEFTZ_X64=deftz-x64 -DEFTZ_X64_URL=http://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso +DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso KALI_X64=kali-x64 -KALI_X64_URL=http://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC5.7.iso @@ -193,7 +193,7 @@ TINYCORE_x86=tinycore-x86 TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-9.0.iso RPDESKTOP_X86=rpdesktop-x86 -RPDESKTOP_X86_URL=http://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso +RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-amd64.iso @@ -223,10 +223,10 @@ PI_CORE=pi-core PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-12-01/2017-11-29-raspbian-stretch-lite.zip +RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-03-14/2018-03-13-raspbian-stretch-lite.zip RPD_FULL=rpi-raspbian-full -RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian/images/raspbian-2017-12-01/2017-11-29-raspbian-stretch.zip +RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian/images/raspbian-2018-03-14/2018-03-13-raspbian-stretch.zip From adb7ec6df1f9aa46fb1d652c74669373f2f17564 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 19 Mar 2018 17:31:01 +0100 Subject: [PATCH 078/694] updated url + timestamping changes naming of option "daily-live" to "timestamping". changed some urls to use "current" iso instead of a defining the iso by specifaing a specific version number as current one. --- install-pxe-server_pass2.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 52fad35..c317967 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -179,7 +179,7 @@ KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC5.7.iso +PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/latest-iso-symlinks/pentoo-amd64-hardened.iso SYSTEMRESCTUE_X86=systemrescue-x86 SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.1/systemrescuecd-x86-5.2.1.iso @@ -188,9 +188,9 @@ DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= TINYCORE_x64=tinycore-x64 -TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-9.0.iso +TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso TINYCORE_x86=tinycore-x86 -TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-9.0.iso +TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso @@ -204,7 +204,7 @@ FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.5/tails-amd64-3.5.iso +TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.1/tails-amd64-3.6.1.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1708.iso @@ -1227,7 +1227,7 @@ handle_iso() { if ! [ -f "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ - || ([ "$3" == "daily-live" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; @@ -1258,7 +1258,7 @@ handle_iso() { sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; else - if [ "$3" == "daily-live" ]; then + if [ "$3" == "timestamping" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$4 0 10' >> /etc/fstab"; else sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; @@ -1928,7 +1928,7 @@ handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; #handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; #handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL daily-live; +handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; #handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; #handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; #handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; @@ -1940,11 +1940,11 @@ handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; #handle_iso $DEFT_X64 $DEFT_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; -handle_iso $PENTOO_X64 $PENTOO_X64_URL; +handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -#handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; #handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; From 533fb85458467cdda033f4871fe20ccc821b9a91 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 19 Mar 2018 17:35:10 +0100 Subject: [PATCH 079/694] make output more wget like --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index c317967..b9fc08e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1155,7 +1155,7 @@ import time try: str_time = '%Y-%m-%d %H:%M:%S' - str_stdout = '{} := ''{}''' + str_stdout = '--{}-- ''{}''' arg_file = sys.argv[1] stat_file = os.stat(arg_file) From 95d16a5e6680e4e88181e09d2e583534d787e195 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 20 Mar 2018 14:33:58 +0100 Subject: [PATCH 080/694] image 2018-03-13 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5887809..73ac421 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you dont want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the scripts. ### software: -- **Raspbian Stretch** or **Raspbina Stretch Lite** (2017-11-29), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspbian Stretch** or **Raspbina Stretch Lite** (2018-03-13), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2017-11-29, +- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2018-03-13, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (41GB when you use unmodified script), - and you have plugged an USB-memory-stick that has the has a label **PXE-Server** @@ -196,6 +196,7 @@ tinycore-x64.iso # tiny core ~16MB minimal linux. rpdesktop-x86.iso # Raspberry Pi Desktop for x86 PC clonezilla-x64.iso # clonezilla clonezilla-x86.iso +... ``` the following url files will contain the url of the iso image, where to download, to compare if you have the requested iso already downloaded, to prevent downloading an iso newly, when it is done already. @@ -224,6 +225,7 @@ tinycore-x64.url rpdesktop-x86.url clonezilla-x64.url clonezilla-x86.url +... ``` there is a complete new section, that contains download url for disk images, that contains partitions. From c208c4ed9584e529b559369c3485b4a8173f76e9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 20 Mar 2018 22:15:32 +0100 Subject: [PATCH 081/694] basic customization of lighttpd --- install-pxe-server_pass1.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index af8d4c6..8a81055 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -122,6 +122,15 @@ sudo apt install -y pxelinux syslinux-common; ###################################################################### echo -e "\e[32minstall lighttpd\e[0m"; sudo apt install -y lighttpd; +sudo sh -c "cat << EOF >> /etc/lighttpd/lighttpd.conf +######################################## +## mod_install_server +dir-listing.activate = \"enable\" +dir-listing.external-css = \"\" +dir-listing.external-js = \"\" +dir-listing.set-footer = \" 
\" +EOF"; +sudo rm /var/www/html/index.lighttpd.html ###################################################################### From e798d31fda9874543c690e50f0534b8c517df0f0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 20 Mar 2018 22:16:14 +0100 Subject: [PATCH 082/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 8a81055..0708c6d 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2018-01-18 +# v2018-03-20 # # known issues: # From 2670d8101f1b490b93fb9b8370a71117c66dad04 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Mar 2018 21:57:07 +0100 Subject: [PATCH 083/694] added lighttpd dir-listing.exclude --- install-pxe-server_pass1.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 0708c6d..cff0504 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -129,6 +129,7 @@ dir-listing.activate = \"enable\" dir-listing.external-css = \"\" dir-listing.external-js = \"\" dir-listing.set-footer = \" 
\" +dir-listing.exclude = ( \"[.]*\.url\" ) EOF"; sudo rm /var/www/html/index.lighttpd.html From 6ee5faa889d48e6959228397af670851448c4a0a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Mar 2018 22:13:37 +0100 Subject: [PATCH 084/694] changed lighttpd dir structure --- install-pxe-server_pass2.sh | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b9fc08e..768632a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1023,7 +1023,7 @@ EOF"; ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html LABEL Fedora x64 KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -1056,7 +1056,9 @@ LABEL CentOS x64 # Warning: Could not boot. # Warning: /dev/mapper/live-rw does not exist # Starting Dracut Emergency Shell - APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + + APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 TEXT HELP Boot to CentOS LiveGNOME User: liveuser @@ -1275,14 +1277,14 @@ handle_iso() { sudo mount $DST_NFS_ETH0/$NAME; sudo exportfs *:$DST_NFS_ETH0/$NAME; - if [ -d "/var/www/html" ]; then - if ! [ -h "/var/www/html/$FILE_ISO" ]; then - sudo ln -s $DST_ISO/$FILE_ISO /var/www/html/$FILE_ISO - fi - if ! [ -h "/var/www/html/$NAME" ]; then - sudo ln -s $DST_NFS_ETH0/$NAME/ /var/www/html/$NAME - fi - fi + #if [ -d "/var/www/html" ]; then + # if ! [ -h "/var/www/html/$FILE_ISO" ]; then + # sudo ln -s $DST_ISO/$FILE_ISO /var/www/html/$FILE_ISO + # fi + # if ! [ -h "/var/www/html/$NAME" ]; then + # sudo ln -s $DST_NFS_ETH0/$NAME/ /var/www/html/$NAME + # fi + #fi else sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" @@ -1900,6 +1902,14 @@ sudo mkdir -p $DST_IMG; sudo mkdir -p $DST_TFTP_ETH0; sudo mkdir -p $DST_NFS_ETH0; +########################################################################## +if [ -d "/var/www/html" ]; then + sudo ln -s $DST_ISO /var/www/html$ISO; + sudo ln -s $DST_IMG /var/www/html$IMG; + sudo ln -s $DST_NFS_ETH0 /var/www/html$NFS_ETH0; +fi + + ########################################################################## handle_hostapd; handle_dhcpcd; From 9c8b59fac7c63ee1465442c8631c074966808657 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Mar 2018 22:32:43 +0100 Subject: [PATCH 085/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 768632a..ef84654 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1156,9 +1156,6 @@ import urllib.request import time try: - str_time = '%Y-%m-%d %H:%M:%S' - str_stdout = '--{}-- ''{}''' - arg_file = sys.argv[1] stat_file = os.stat(arg_file) time_file = time.gmtime(stat_file.st_mtime) @@ -1167,13 +1164,9 @@ try: conn_url = urllib.request.urlopen(arg_url) time_url = time.strptime(conn_url.headers['last-modified'], '%a, %d %b %Y %H:%M:%S %Z') - print(str_stdout.format(time.strftime(str_time, time_file), arg_file)) - print(str_stdout.format(time.strftime(str_time, time_url), arg_url)) if time_url <= time_file: - print('file is up to date') exit_code = 0 else: - print('url is newer') exit_code = 1 except: exit_code = 1 @@ -1904,9 +1897,9 @@ sudo mkdir -p $DST_NFS_ETH0; ########################################################################## if [ -d "/var/www/html" ]; then - sudo ln -s $DST_ISO /var/www/html$ISO; - sudo ln -s $DST_IMG /var/www/html$IMG; - sudo ln -s $DST_NFS_ETH0 /var/www/html$NFS_ETH0; + [ -h "/var/www/html$ISO" ] || sudo ln -s $DST_ISO /var/www/html$ISO; + [ -h "/var/www/html$IMG" ] || sudo ln -s $DST_IMG /var/www/html$IMG; + [ -h "/var/www/html$NFS_ETH0" ] || sudo ln -s $DST_NFS_ETH0 /var/www/html$NFS_ETH0; fi From fc99531e262fd8d562a506b1c1674129d679cd35 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Mar 2018 08:26:38 +0100 Subject: [PATCH 086/694] added info of existence of HTML and Time server --- README.md | 88 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 50 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 73ac421..5ab55f7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ i did not keeped an eye on network security. **USE IT AT YOUR OWN RISK.** ## what is it good for? -the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, PXE server. +the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, Time, PXE server. and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. @@ -89,32 +89,42 @@ this will download all updated iso files. ## modifying the script: what you should know, when you make modification to the script...
-there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. +there are four importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. 1. the ISO or NSF path relative to the TFTP root path.
(on disk `/srv/tftp/iso`, `/srv/tftp/nfs` as symbolik link). 2. the ISO or NFS path relative to the pxe boot menu root path
(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). 3. the ISO or NFS path repative to the nfs root path
-(on disk `/srv/iso`, `/srv/nfs`). +(on disk `/srv/iso`, `/srv/nfs`).
+4. the ISO, IMG or NFS path located at /var/www/html
+(on disk /var/www/html/iso, /var/www/html/img, /var/www/html/nfs). ``` / -└── srv - ├── iso (the real physical location of ISO files) - ├── nfs (the real physical location of NFS files or mountpoints) - | - └── tftp (TFTP root) - ├── iso (only a symbolic link to ISO files) - ├── nfs (only a symbolic link to NFS files) - | - └── menu-bios (PXE boot menu root for BIOS) - ├── iso (only a symbolic link to ISO files) - └── nfs (only a symbolic link to NFS files) +├── srv +| ├── iso (the real physical location of ISO files) +| ├── nfs (the real physical location of NFS files or mountpoints) +| | +| └── tftp (TFTP root) +| ├── iso (only a symbolic link to ISO files) +| ├── nfs (only a symbolic link to NFS files) +| | +| └── menu-bios (PXE boot menu root for BIOS) +| ├── iso (only a symbolic link to ISO files) +| └── nfs (only a symbolic link to NFS files) +| +└── var + └── www + └── html (HTML root) + ├── img (only a symbolic link to IMG files) + ├── iso (only a symbolic link to ISO files) + └── nfs (only a symbolic link to NFS files) ``` if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match pxe menu entries to file structure on disk. what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
-the root for NFS are defined in `/etc/exports`. +the root for NFS is defined in `/etc/exports`.
+the root for HTML is defined in the **_lighttpd_** configuration file `/etc/lighttpd/lighttpd.conf`. ## mount scenarios for pxe boot: ### direct readonly mounting content of ISO: e.g. ubuntu-lts-x64 iso image
@@ -239,30 +249,32 @@ RPD_LITE_URL=https://.../...zip e.g.:** ``` ###################################################################### -# handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -# handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -# handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -# handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -# handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -# handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -# handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -# handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -# handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -# handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; -# handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -# handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; -# handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -# handle_iso $DEFT_X64 $DEFT_X64_URL; -# handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -# handle_iso $KALI_X64 $KALI_X64_URL; -# handle_iso $PENTOO_X64 $PENTOO_X64_URL; -# handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -# handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL; +##handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +#handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +#handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +#handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; +##handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +#handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; +#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +#handle_iso $DEFT_X64 $DEFT_X64_URL; +#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +#handle_iso $KALI_X64 $KALI_X64_URL; +#handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +#handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +##handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -# handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -# handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; +#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +#handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; +#handle_iso $FEDORA_X64 $FEDORA_X64_URL; ... ``` **same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines From e439d674fcd51a0ee90eecc0c49c871f00496ce9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 31 Mar 2018 06:26:27 +0200 Subject: [PATCH 087/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ef84654..4b801d1 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-03-14 +# v2018-03-31 # # known issues: # overlayfs can not get exported via nfs @@ -204,7 +204,7 @@ FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.1/tails-amd64-3.6.1.iso +TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-amd64-3.6.2.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1708.iso From 0221b98d896142390c2d44f7a63fbe4ed0f7aa13 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 1 Apr 2018 00:59:22 +0200 Subject: [PATCH 088/694] added option "timestamping" also for ZIP-IMG diskimages --- install-pxe-server_pass2.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4b801d1..b19af36 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-03-31 +# v2018-04-01 # # known issues: # overlayfs can not get exported via nfs @@ -223,10 +223,10 @@ PI_CORE=pi-core PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2018-03-14/2018-03-13-raspbian-stretch-lite.zip +RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest RPD_FULL=rpi-raspbian-full -RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian/images/raspbian-2018-03-14/2018-03-13-raspbian-stretch.zip +RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_latest @@ -1337,19 +1337,21 @@ handle_zip_img() { fi if ! [ -f "$DST_IMG/$FILE_IMG" ] \ - || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ + || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_IMG/$FILE_URL $URL); \ then echo -e "\e[36m download image\e[0m"; sudo rm -f $DST_IMG/$FILE_IMG; sudo rm -f $DST_IMG/$FILE_URL; sudo wget -O $DST_IMG/$RAW_FILENAME_ZIP $URL; + + sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; + sudo touch -r $DST_IMG/$FILE_IMG $DST_IMG/$FILE_URL; + echo -e "\e[36m extract image\e[0m"; sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG; sudo rm -f $DST_IMG/$RAW_FILENAME_ZIP; sudo mv $DST_IMG/$RAW_FILENAME_IMG $DST_IMG/$FILE_IMG; - - sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; - sudo touch -r $DST_IMG/$FILE_IMG $DST_IMG/$FILE_URL; fi fi @@ -1965,8 +1967,8 @@ handle_pxe; ########################################################################## ########################################################################## #handle_zip_img $PI_CORE $PI_CORE_URL; -#handle_zip_img $RPD_LITE $RPD_LITE_URL; -#handle_zip_img $RPD_FULL $RPD_FULL_URL; +#handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; +#handle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; ########################################################################## ########################################################################## ## comment out those entries, From ffa7851bcb990e0df0dba922e1ac8480341f62ca Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 1 Apr 2018 01:31:08 +0200 Subject: [PATCH 089/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b19af36..a4000d9 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1346,7 +1346,7 @@ handle_zip_img() { sudo wget -O $DST_IMG/$RAW_FILENAME_ZIP $URL; sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; - sudo touch -r $DST_IMG/$FILE_IMG $DST_IMG/$FILE_URL; + sudo touch -r $DST_IMG/RAW_FILENAME_ZIP $DST_IMG/$FILE_URL; echo -e "\e[36m extract image\e[0m"; sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG; @@ -1940,7 +1940,7 @@ handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; #handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; +#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; #handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; #handle_iso $DEFT_X64 $DEFT_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; @@ -1953,8 +1953,8 @@ handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; #handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -handle_iso $CENTOS_X64 $CENTOS_X64_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; +handle_iso $CENTOS_X64 $CENTOS_X64_URL; handle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## handle_pxe; From 83e8788082bb5afa6458ed4b935e05fc53ef4aac Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 1 Apr 2018 01:55:39 +0200 Subject: [PATCH 090/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index a4000d9..ba1328e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1346,7 +1346,7 @@ handle_zip_img() { sudo wget -O $DST_IMG/$RAW_FILENAME_ZIP $URL; sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; - sudo touch -r $DST_IMG/RAW_FILENAME_ZIP $DST_IMG/$FILE_URL; + sudo touch -r $DST_IMG/$RAW_FILENAME_ZIP $DST_IMG/$FILE_URL; echo -e "\e[36m extract image\e[0m"; sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG; From 2e9796a41856d21afd700bf207a85041412a689b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 1 Apr 2018 03:05:32 +0200 Subject: [PATCH 091/694] filtering img file name from unzip output --- install-pxe-server_pass2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ba1328e..95c1444 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1295,7 +1295,6 @@ handle_zip_img() { local NAME=$1 local URL=$2 local RAW_FILENAME=$(basename $URL .zip) - local RAW_FILENAME_IMG=$RAW_FILENAME.img local RAW_FILENAME_ZIP=$RAW_FILENAME.zip local NAME_BOOT=$NAME-boot local NAME_ROOT=$NAME-root @@ -1349,9 +1348,11 @@ handle_zip_img() { sudo touch -r $DST_IMG/$RAW_FILENAME_ZIP $DST_IMG/$FILE_URL; echo -e "\e[36m extract image\e[0m"; - sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG; + sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG > /tmp/output.tmp; sudo rm -f $DST_IMG/$RAW_FILENAME_ZIP; + local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) sudo mv $DST_IMG/$RAW_FILENAME_IMG $DST_IMG/$FILE_IMG; + rm /tmp/output.tmp fi fi From c3f7a86afd015d26a1f5870568aa58e1dfbf5f25 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 3 Apr 2018 20:36:59 +0200 Subject: [PATCH 092/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 95c1444..b0c2549 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-01 +# v2018-04-03 # # known issues: # overlayfs can not get exported via nfs @@ -182,7 +182,7 @@ PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/latest-iso-symlinks/pentoo-amd64-hardened.iso SYSTEMRESCTUE_X86=systemrescue-x86 -SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.1/systemrescuecd-x86-5.2.1.iso +SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= From 0791b00d6c25511647d73f54e2f60b1bb0d483e3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 9 Apr 2018 13:07:58 +0200 Subject: [PATCH 093/694] updated url --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b0c2549..e104657 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-03 +# v2018-04-09 # # known issues: # overlayfs can not get exported via nfs @@ -141,7 +141,7 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/17.10.1/ubuntu-17.10.1-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04-beta2-desktop-amd64.iso UBUNTU_X86=ubuntu-x86 UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso @@ -718,7 +718,7 @@ EOF"; ######################################## LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz.efi - APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- + APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu From f5c358a2cf81837eaae2599e54ba11d2e0d39fea Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 9 Apr 2018 18:11:14 +0200 Subject: [PATCH 094/694] add lubuntu --- install-pxe-server_pass2.sh | 70 ++++++++++++++++++++++++++++++++++--- 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e104657..8797858 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -141,13 +141,23 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04-beta2-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/17.10.1/ubuntu-17.10.1-desktop-amd64.iso UBUNTU_X86=ubuntu-x86 UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/bionic-desktop-amd64.iso + +LUBUNTU_X64=lubuntu-x64 +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/17.10.1/release/lubuntu-17.10.1-desktop-amd64.iso +LUBUNTU_X86=lubuntu-x86 +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/17.10.1/release/lubuntu-17.10.1-desktop-i386.iso + +LUBUNTU_DAILY_X64=lubuntu-daily-x64 +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/bionic-desktop-amd64.iso + + UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= @@ -726,6 +736,53 @@ LABEL Ubuntu x64 Daily-Live EOF"; fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz.efi" ]; then + echo -e "\e[36m add $LUBUNTU_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL lubuntu x64 + KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz.efi + APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + TEXT HELP + Boot to lubuntu x64 Live + User: lubuntu + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL lubuntu x86 + KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz + APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + TEXT HELP + Boot to lubuntu x86 Live + User: lubuntu + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz.efi" ]; then + echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL lubuntu x64 Daily-Live + KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz.efi + APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + TEXT HELP + Boot to lubuntu x64 Daily-Live + User: lubuntu + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; @@ -1935,6 +1992,11 @@ handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; #handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; + +handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; +#handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; + #handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; #handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; #handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; @@ -1947,7 +2009,7 @@ handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -#handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; @@ -1955,8 +2017,8 @@ handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; #handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; -handle_iso $CENTOS_X64 $CENTOS_X64_URL; -handle_iso $TAILS_X64 $TAILS_X64_URL; +#handle_iso $CENTOS_X64 $CENTOS_X64_URL; +#handle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## handle_pxe; From d0fcd29743778c10b2cf5a704b35bd5850d9ea56 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 12 Apr 2018 20:17:39 +0200 Subject: [PATCH 095/694] updated url --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8797858..169ba54 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-09 +# v2018-04-12 # # known issues: # overlayfs can not get exported via nfs @@ -206,9 +206,9 @@ RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.2-31/clonezilla-live-2.5.2-31-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-i686.iso FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso From 4886f8eac2e199a9c62c5bdb328141da73d36e91 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 27 Apr 2018 06:14:10 +0200 Subject: [PATCH 096/694] updated url --- install-pxe-server_pass2.sh | 45 ++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 169ba54..8a1ac52 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-12 +# v2018-04-27 # # known issues: # overlayfs can not get exported via nfs @@ -141,18 +141,16 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/17.10.1/ubuntu-17.10.1-desktop-amd64.iso -UBUNTU_X86=ubuntu-x86 -UBUNTU_X86_URL=http://releases.ubuntu.com/17.04/ubuntu-17.04-desktop-i386.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/bionic-desktop-amd64.iso LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/17.10.1/release/lubuntu-17.10.1-desktop-amd64.iso +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/17.10.1/release/lubuntu-17.10.1-desktop-i386.iso +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-i386.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/bionic-desktop-amd64.iso @@ -700,8 +698,11 @@ LABEL Ubuntu x64 KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz.efi APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - Boot to Ubuntu x64 Live - User: ubuntu + NFSBOOT BROKEN: + on emergency console type: systemctl mask tmp.mount + then hit [Ctrl]+[D] +# Boot to Ubuntu x64 Live +# User: ubuntu ENDTEXT EOF"; fi @@ -730,8 +731,11 @@ LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz.efi APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - Boot to Ubuntu x64 Daily-Live - User: ubuntu + NFSBOOT BROKEN: + on emergency console type: systemctl mask tmp.mount + then hit [Ctrl]+[D] +# Boot to Ubuntu x64 Daily-Live +# User: ubuntu ENDTEXT EOF"; fi @@ -746,8 +750,11 @@ LABEL lubuntu x64 KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz.efi APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - Boot to lubuntu x64 Live - User: lubuntu + NFSBOOT BROKEN: + on emergency console type: systemctl mask tmp.mount + then hit [Ctrl]+[D] +# Boot to lubuntu x64 Live +# User: lubuntu ENDTEXT EOF"; fi @@ -761,8 +768,11 @@ LABEL lubuntu x86 KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - Boot to lubuntu x86 Live - User: lubuntu + NFSBOOT BROKEN: + on emergency console type: systemctl mask tmp.mount + then hit [Ctrl]+[D] +# Boot to lubuntu x86 Live +# User: lubuntu ENDTEXT EOF"; fi @@ -776,8 +786,11 @@ LABEL lubuntu x64 Daily-Live KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz.efi APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - Boot to lubuntu x64 Daily-Live - User: lubuntu + NFSBOOT BROKEN: + on emergency console type: systemctl mask tmp.mount + then hit [Ctrl]+[D] +# Boot to lubuntu x64 Daily-Live +# User: lubuntu ENDTEXT EOF"; fi From f240c5405f9255db95683a6966c10fae18d566db Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 27 Apr 2018 07:24:32 +0200 Subject: [PATCH 097/694] fix boot kernel name --- install-pxe-server_pass2.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8a1ac52..33631f5 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -690,12 +690,12 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz.efi" ]; then + && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Ubuntu x64 - KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz.efi + KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP NFSBOOT BROKEN: @@ -723,12 +723,12 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz.efi" ]; then + && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Ubuntu x64 Daily-Live - KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz.efi + KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP NFSBOOT BROKEN: @@ -742,12 +742,12 @@ EOF"; if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz.efi" ]; then + && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL lubuntu x64 - KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz.efi + KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP NFSBOOT BROKEN: @@ -778,12 +778,12 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz.efi" ]; then + && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL lubuntu x64 Daily-Live - KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz.efi + KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP NFSBOOT BROKEN: From b2e418be8361bf940a6c75e7bcb1c7e2b94fc6e8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 28 Apr 2018 23:25:55 +0200 Subject: [PATCH 098/694] added workaround for ubuntu/lubuntu 18.04 --- install-pxe-server_pass2.sh | 47 +++++++++++++------------------------ 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 33631f5..72cbff9 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-27 +# v2018-04-28 # # known issues: # overlayfs can not get exported via nfs @@ -696,13 +696,10 @@ EOF"; ######################################## LABEL Ubuntu x64 KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - NFSBOOT BROKEN: - on emergency console type: systemctl mask tmp.mount - then hit [Ctrl]+[D] -# Boot to Ubuntu x64 Live -# User: ubuntu + Boot to Ubuntu x64 Live + User: ubuntu ENDTEXT EOF"; fi @@ -729,13 +726,10 @@ EOF"; ######################################## LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - NFSBOOT BROKEN: - on emergency console type: systemctl mask tmp.mount - then hit [Ctrl]+[D] -# Boot to Ubuntu x64 Daily-Live -# User: ubuntu + Boot to Ubuntu x64 Daily-Live + User: ubuntu ENDTEXT EOF"; fi @@ -748,13 +742,10 @@ EOF"; ######################################## LABEL lubuntu x64 KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - NFSBOOT BROKEN: - on emergency console type: systemctl mask tmp.mount - then hit [Ctrl]+[D] -# Boot to lubuntu x64 Live -# User: lubuntu + Boot to lubuntu x64 Live + User: lubuntu ENDTEXT EOF"; fi @@ -766,13 +757,10 @@ EOF"; ######################################## LABEL lubuntu x86 KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - NFSBOOT BROKEN: - on emergency console type: systemctl mask tmp.mount - then hit [Ctrl]+[D] -# Boot to lubuntu x86 Live -# User: lubuntu + Boot to lubuntu x86 Live + User: lubuntu ENDTEXT EOF"; fi @@ -784,13 +772,10 @@ EOF"; ######################################## LABEL lubuntu x64 Daily-Live KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP - NFSBOOT BROKEN: - on emergency console type: systemctl mask tmp.mount - then hit [Ctrl]+[D] -# Boot to lubuntu x64 Daily-Live -# User: lubuntu + Boot to lubuntu x64 Daily-Live + User: lubuntu ENDTEXT EOF"; fi From 4f21d286b7f627093b0c1ecd209c7729904491ce Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 29 Apr 2018 00:10:32 +0200 Subject: [PATCH 099/694] fixed the workaround parameter --- install-pxe-server_pass2.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 72cbff9..5c5cfa9 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-28 +# v2018-04-29 # # known issues: # overlayfs can not get exported via nfs @@ -209,7 +209,8 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-i686.iso FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso +#FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso +FEDORA_X64_URL=http://dl.fedoraproject.org/pub/alt/stage/28_RC-1.1/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28-1.1.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-amd64-3.6.2.iso @@ -696,7 +697,7 @@ EOF"; ######################################## LABEL Ubuntu x64 KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -726,7 +727,7 @@ EOF"; ######################################## LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -742,7 +743,7 @@ EOF"; ######################################## LABEL lubuntu x64 KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -757,7 +758,7 @@ EOF"; ######################################## LABEL lubuntu x86 KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -772,7 +773,7 @@ EOF"; ######################################## LABEL lubuntu x64 Daily-Live KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu From 76422f3cb768968a492c32bbe01b9b96cdaaea4a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 May 2018 14:14:20 +0200 Subject: [PATCH 100/694] updated url --- install-pxe-server_pass2.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 5c5cfa9..34e70e2 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-04-29 +# v2018-05-02 # # known issues: # overlayfs can not get exported via nfs @@ -184,7 +184,7 @@ DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/kali-2018.1/kali-linux-2018.1-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/kali-2018.2/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/latest-iso-symlinks/pentoo-amd64-hardened.iso @@ -209,8 +209,7 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-i686.iso FEDORA_X64=fedora-x64 -#FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-27-1.6.iso -FEDORA_X64_URL=http://dl.fedoraproject.org/pub/alt/stage/28_RC-1.1/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28-1.1.iso +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/28/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28-1.1.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-amd64-3.6.2.iso From 763d4f1e4ea0bec366bdee346a87b15366edcc9d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 May 2018 15:44:13 +0200 Subject: [PATCH 101/694] updated url --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 34e70e2..078747d 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -184,7 +184,7 @@ DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/kali-2018.2/kali-linux-2018.2-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/latest-iso-symlinks/pentoo-amd64-hardened.iso From f4bfde40899cac3467a85336fe296fcc2ac42613 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 May 2018 18:46:47 +0200 Subject: [PATCH 102/694] added iPXE template not full working. e.g. virtualbox without extension pack --- install-pxe-server_pass2.sh | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 078747d..3baf307 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -473,19 +473,28 @@ dhcp-match=set:ARCH_0, option:client-arch, 0 dhcp-match=set:x86_UEFI, option:client-arch, 6 dhcp-match=set:x64_UEFI, option:client-arch, 7 dhcp-match=set:x64_UEFI, option:client-arch, 9 +dhcp-match=set:iPXE, option:user-class, iPXE # test if it is a RPi3 or a regular x86PC tag-if=set:ARM_RPI3, tag:ARCH_0, tag:UUID_RPI3 -tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3 +tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3, tag:!iPXE +tag-if=set:x86_iPXE, tag:ARCH_0, tag:!UUID_RPI3, tag:iPXE +tag-if=set:UEFI_iPXE, tag:!ARCH_0, tag:!UUID_RPI3, tag:iPXE pxe-service=tag:ARM_RPI3,0, \"Raspberry Pi Boot \", bootcode.bin pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/pxelinux +pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe +pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/syslinux pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/syslinux pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/syslinux dhcp-boot=tag:ARM_RPI3, bootcode.bin dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/pxelinux.0 +#dhcp-boot=tag:x86_iPXE, http://my.web.server/real_boot_script.php +dhcp-boot=tag:x86_iPXE, undionly.kpxe +dhcp-boot=tag:UEFI_iPXE, ipxe.efi +dhcp-option=iPXE, 175, 8:1:1 dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/syslinux.0 dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/syslinux.0 EOF"; @@ -1202,6 +1211,27 @@ handle_pxe() { } +########################################################################## +handle_ipxe() { + echo -e "\e[32mhandle_ipxe()\e[0m"; + + ###################################################################### + # http://ipxe.org/docs + # http://ipxe.org/howto/chainloading + + ###################################################################### + if [ -d "$SRC_TFTP_ETH0" ]; then + echo -e "\e[36m copy iPXE stuff\e[0m"; + if ! [ -f "$DST_TFTP_ETH0/undionly.kpxe" ] && [ -f "$SRC_TFTP_ETH0/undionly.kpxe" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/undionly.kpxe $DST_TFTP_ETH0/; fi + if ! [ -f "$DST_TFTP_ETH0/ipxe.efi" ] && [ -f "$SRC_TFTP_ETH0/ipxe.efi" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/ipxe.efi $DST_TFTP_ETH0/; fi + else + echo -e "\e[36m download iPXE stuff\e[0m"; + sudo wget -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; + sudo wget -O $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi; + fi +} + + ########################################################################## compare_last_modification_time() { python3 - << EOF "$1" "$2" @@ -2019,6 +2049,7 @@ handle_iso $FEDORA_X64 $FEDORA_X64_URL; #handle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## handle_pxe; +handle_ipxe; ########################################################################## From 1c8a44b90ade1e8a44d293bdcdcecedb47ba11c1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 4 May 2018 23:25:43 +0200 Subject: [PATCH 103/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3baf307..73df916 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -144,7 +144,7 @@ UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/bionic-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso LUBUNTU_X64=lubuntu-x64 @@ -153,7 +153,7 @@ LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-i386.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/bionic-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmic-desktop-amd64.iso UBUNTU_NONPAE=ubuntu-nopae From 054b8ec8146074c9745166ad375a9ac964cabc00 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 5 May 2018 08:22:54 +0200 Subject: [PATCH 104/694] added CUSTOM_LANG... variable to easily change language and timezone settings for all boot menu enties --- install-pxe-server_pass2.sh | 69 ++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 73df916..82fab6a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-05-02 +# v2018-05-05 # # known issues: # overlayfs can not get exported via nfs @@ -44,6 +44,13 @@ echo -e "\e[36msetup variables\e[0m"; ## and other variables... ########################################################################## ########################################################################## +CUSTOM_LANG=de +CUSTOM_LANG_LONG=de_DE +CUSTOM_LANG_UPPER=DE +CUSTOM_LANG_WRITTEN=German +CUSTOM_LANG_EXT=de-latin1-nodeadkeys +CUSTOM_TIMEZONE=Europe/Berlin +########################################################################## RPI_SN0=-------- RPI_SN1=-------- RPI_SN2=-------- @@ -73,7 +80,7 @@ IP_WLAN0_END=192.168.251.110 IP_WLAN0_MASK=255.255.255.0 ########################################################################## DRIVER_WLAN0=nl80211 -COUNTRY_WLAN0=DE +COUNTRY_WLAN0=$CUSTOM_LANG_UPPER PASSWORD_WLAN0=p@ssw0rd SSID_WLAN0=wlan0@domain.local INTERFACE_WLAN0X=wlan0x @@ -675,7 +682,7 @@ EOF"; ######################################## LABEL Ubuntu LTS x64 KERNEL $NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi - APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -690,7 +697,7 @@ EOF"; ######################################## LABEL Ubuntu LTS x86 KERNEL $NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu @@ -705,7 +712,7 @@ EOF"; ######################################## LABEL Ubuntu x64 KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -720,7 +727,7 @@ EOF"; ######################################## LABEL Ubuntu x86 KERNEL $NFS_ETH0/$UBUNTU_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x86 Live User: ubuntu @@ -735,7 +742,7 @@ EOF"; ######################################## LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -751,7 +758,7 @@ EOF"; ######################################## LABEL lubuntu x64 KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -766,7 +773,7 @@ EOF"; ######################################## LABEL lubuntu x86 KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -781,7 +788,7 @@ EOF"; ######################################## LABEL lubuntu x64 Daily-Live KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -797,7 +804,7 @@ EOF"; ######################################## LABEL Ubuntu non-PAE x86 KERNEL $NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu non-PAE x86 Live User: ubuntu @@ -812,7 +819,7 @@ EOF"; ######################################## LABEL Debian x64 KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 - APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live LXDE User: user, Password: live @@ -827,7 +834,7 @@ EOF"; ######################################## LABEL Debian x86 KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 - APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE User: user, Password: live @@ -842,7 +849,7 @@ EOF"; ######################################## LABEL Parrot Lite x64 KERNEL /nfs/$PARROT_LITE_X64/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live @@ -857,7 +864,7 @@ EOF"; ######################################## LABEL Parrot Lite x86 KERNEL /nfs/$PARROT_LITE_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x86 Live (Home/Workstation) User: user, Password: live @@ -872,7 +879,7 @@ EOF"; ######################################## LABEL Parrot Full x64 KERNEL /nfs/$PARROT_FULL_X64/live/vmlinuz - APPEND initrd=/nfs/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -887,7 +894,7 @@ EOF"; ######################################## LABEL Parrot Full x86 KERNEL /nfs/$PARROT_FULL_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de pkeys=de setxkbmap=de utc=no timezone=Europe/Berlin + APPEND initrd=/nfs/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x86 Live (Security) User: user, Password: live @@ -902,7 +909,7 @@ EOF"; ######################################## LABEL GNU Radio x64 KERNEL $NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi - APPEND initrd=$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to GNU Radio x64 Live User: ubuntu @@ -917,7 +924,7 @@ EOF"; ######################################## LABEL Kali x64 KERNEL $NFS_ETH0/$KALI_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$KALI_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro boot=live noconfig=sudo username=root hostname=kali -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + APPEND initrd=$NFS_ETH0/$KALI_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Kali x64 Live User: root, Password: toor @@ -932,7 +939,7 @@ EOF"; ######################################## LABEL DEFT x64 KERNEL $NFS_ETH0/$DEFT_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$DEFT_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$DEFT_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT x64 Live User: root, Password: toor @@ -947,7 +954,7 @@ EOF"; ######################################## LABEL DEFT Zero x64 KERNEL $NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor @@ -977,7 +984,7 @@ EOF"; ######################################## LABEL System Rescue x86 KERNEL $NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/rescue32 - APPEND initrd=$NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/initram.igz netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCTUE_X86 ro dodhcp -- setkmap=de + APPEND initrd=$NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/initram.igz netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCTUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG TEXT HELP Boot to System Rescue x86 Live User: root @@ -992,7 +999,7 @@ EOF"; ######################################## LABEL desinfect x86 KERNEL $NFS_ETH0/$DESINFECT_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=de console-setup/layoutcode=de keyboard-configuration/layoutcode=de keyboard-configuration/variant=German + APPEND initrd=$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x86 User: desinfect @@ -1039,7 +1046,7 @@ EOF"; ######################################## LABEL Raspberry Pi Desktop KERNEL $NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 - APPEND initrd=$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro boot=live config -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + APPEND initrd=$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Raspberry Pi Desktop User: pi, Password: raspberry @@ -1054,7 +1061,7 @@ EOF"; ######################################## LABEL Clonezilla x64 KERNEL $NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + APPEND initrd=$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x64 User: user, Password: live @@ -1069,7 +1076,7 @@ EOF"; ######################################## LABEL Clonezilla x86 KERNEL $NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz - APPEND initrd=$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=de_DE.UTF-8 keyboard-layouts=de utc=no timezone=Europe/Berlin + APPEND initrd=$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x86 User: user, Password: live @@ -1087,7 +1094,7 @@ EOF"; ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html LABEL Fedora x64 KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -1106,7 +1113,7 @@ EOF"; ## NOT WORKING LABEL CentOS x64 KERNEL $NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 @@ -1122,7 +1129,7 @@ LABEL CentOS x64 # Starting Dracut Emergency Shell #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 - APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8 + APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to CentOS LiveGNOME User: liveuser @@ -1139,7 +1146,7 @@ EOF"; ## NOT WORKING LABEL Tails x64 KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz -# APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=de_DE.UTF-8 keyboard-layouts=de +# APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash nox11autologin module=Tails quiet TEXT HELP Boot to Tails x64 Live (modprobe r8169; exit) @@ -1962,7 +1969,7 @@ server ntp2.sp.se iburst server char-ntp-pool.charite.de server isis.uni-paderborn.de -pool de.pool.ntp.org iburst +pool $CUSTOM_LANG.pool.ntp.org iburst keyfile /etc/chrony/chrony.keys driftfile /var/lib/chrony/chrony.drift From 7b12cf203e9d47b7a89f0434d29c09f5848824fa Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 5 May 2018 08:42:13 +0200 Subject: [PATCH 105/694] added CUSTOM_LANG... variable --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5ab55f7..e46c961 100644 --- a/README.md +++ b/README.md @@ -289,6 +289,16 @@ handle_zip_img $RPD_LITE $RPD_LITE_URL; some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries +to easily change the language to your favorite ones, there are variables on the top part of the script. +``` +CUSTOM_LANG=de +CUSTOM_LANG_LONG=de_DE +CUSTOM_LANG_UPPER=DE +CUSTOM_LANG_WRITTEN=German +CUSTOM_LANG_EXT=de-latin1-nodeadkeys +CUSTOM_TIMEZONE=Europe/Berlin +``` + ## note3: it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet, because of lack of hardware for UEFI boot From d643b6b546ff1e8355f1e14a70f7fc4fe8204fa1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 11 May 2018 23:58:05 +0200 Subject: [PATCH 106/694] updated url --- install-pxe-server_pass2.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 82fab6a..ea1f912 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-05-05 +# v2018-05-11 # # known issues: # overlayfs can not get exported via nfs @@ -222,7 +222,7 @@ TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-amd64-3.6.2.iso CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1708.iso +CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso ########################################################################## @@ -848,8 +848,8 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Parrot Lite x64 - KERNEL /nfs/$PARROT_LITE_X64/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + KERNEL $NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz + APPEND initrd=$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live @@ -863,8 +863,8 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Parrot Lite x86 - KERNEL /nfs/$PARROT_LITE_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + KERNEL $NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz + APPEND initrd=$NFS_ETH0/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x86 Live (Home/Workstation) User: user, Password: live @@ -878,8 +878,8 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Parrot Full x64 - KERNEL /nfs/$PARROT_FULL_X64/live/vmlinuz - APPEND initrd=/nfs/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + KERNEL $NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz + APPEND initrd=$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -893,8 +893,8 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL Parrot Full x86 - KERNEL /nfs/$PARROT_FULL_X86/live/vmlinuz - APPEND initrd=/nfs/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + KERNEL $NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz + APPEND initrd=$NFS_ETH0/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x86 Live (Security) User: user, Password: live @@ -1129,7 +1129,7 @@ LABEL CentOS x64 # Starting Dracut Emergency Shell #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 - APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to CentOS LiveGNOME User: liveuser @@ -1147,7 +1147,7 @@ EOF"; LABEL Tails x64 KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz # APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash nox11autologin module=Tails quiet + APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails TEXT HELP Boot to Tails x64 Live (modprobe r8169; exit) ENDTEXT @@ -2052,8 +2052,8 @@ handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; #handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; -#handle_iso $CENTOS_X64 $CENTOS_X64_URL; -#handle_iso $TAILS_X64 $TAILS_X64_URL; +##handle_iso $CENTOS_X64 $CENTOS_X64_URL; +##handle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## handle_pxe; handle_ipxe; From 3b91f1f4f25ffdfe13a420fbd065191983be60c9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 14 May 2018 13:46:26 +0200 Subject: [PATCH 107/694] fixed ONTIMEOUT and LABEL LABELS must have unique names without spaces, otherwise ONTIMEOUT will not find the correct label. added Reboot and Power-Off option --- install-pxe-server_pass2.sh | 116 +++++++++++++++++++++++++----------- 1 file changed, 80 insertions(+), 36 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ea1f912..147b6f8 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-05-11 +# v2018-05-14 # # known issues: # overlayfs can not get exported via nfs @@ -624,7 +624,7 @@ handle_pxe_menu() { DEFAULT vesamenu.c32 TIMEOUT 600 -ONTIMEOUT Boot Local +ONTIMEOUT localboot PROMPT 0 NOESCAPE 1 ALLOWOPTIONS 1 @@ -639,7 +639,17 @@ menu timeoutrow 25 menu color help 1;37;40 #FFFFFFFF * menu helpmsgrow 26 -LABEL Boot Local +######################################## +LABEL reboot + MENU LABEL Reboot + COM32 reboot.c32 +######################################## +LABEL poweroff + MENU LABEL Power Off + COM32 poweroff.c32 +######################################## +LABEL localboot + MENU LABEL Local Boot LOCALBOOT 0 TEXT HELP Boot to local hard disk @@ -652,7 +662,8 @@ EOF"; echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Windows PE x86 (PXE) +LABEL $WIN_PE_X86-pxe + MENU LABEL Windows PE x86 (PXE) PXE pxeboot.n12 TEXT HELP Boot to Windows PE 32bit @@ -665,7 +676,8 @@ EOF"; echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Windows PE x86 (ISO) +LABEL $WIN_PE_X86-iso + MENU LABEL Windows PE x86 (ISO) KERNEL memdisk APPEND iso INITRD $ISO/$WIN_PE_X86.iso @@ -680,7 +692,8 @@ EOF"; echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Ubuntu LTS x64 +LABEL $UBUNTU_LTS_X64 + MENU LABEL Ubuntu LTS x64 KERNEL $NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -695,7 +708,8 @@ EOF"; echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Ubuntu LTS x86 +LABEL $UBUNTU_LTS_X86 + MENU LABEL Ubuntu LTS x86 KERNEL $NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -710,7 +724,8 @@ EOF"; echo -e "\e[36m add $UBUNTU_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Ubuntu x64 +LABEL $UBUNTU_X64 + MENU LABEL Ubuntu x64 KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -725,7 +740,8 @@ EOF"; echo -e "\e[36m add $UBUNTU_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Ubuntu x86 +LABEL $UBUNTU_X86 + MENU LABEL Ubuntu x86 KERNEL $NFS_ETH0/$UBUNTU_X86/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -740,7 +756,8 @@ EOF"; echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Ubuntu x64 Daily-Live +LABEL $UBUNTU_DAILY_X64 + MENU LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -756,7 +773,8 @@ EOF"; echo -e "\e[36m add $LUBUNTU_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL lubuntu x64 +LABEL $LUBUNTU_X64 + MENU LABEL lubuntu x64 KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -771,7 +789,8 @@ EOF"; echo -e "\e[36m add $LUBUNTU_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL lubuntu x86 +LABEL $LUBUNTU_X86 + MENU LABEL lubuntu x86 KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -786,7 +805,8 @@ EOF"; echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL lubuntu x64 Daily-Live +LABEL $LUBUNTU_DAILY_X64 + MENU LABEL lubuntu x64 Daily-Live KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -802,7 +822,8 @@ EOF"; echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Ubuntu non-PAE x86 +LABEL $UBUNTU_NONPAE + MENU LABEL Ubuntu non-PAE x86 KERNEL $NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz APPEND initrd=$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -817,7 +838,8 @@ EOF"; echo -e "\e[36m add $DEBIAN_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Debian x64 +LABEL $DEBIAN_X64 + MENU LABEL Debian x64 KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -832,7 +854,8 @@ EOF"; echo -e "\e[36m add $DEBIAN_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Debian x86 +LABEL $DEBIAN_X86 + MENU LABEL Debian x86 KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -847,7 +870,8 @@ EOF"; echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Parrot Lite x64 +LABEL $PARROT_LITE_X64 + MENU LABEL Parrot Lite x64 KERNEL $NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz APPEND initrd=$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -862,7 +886,8 @@ EOF"; echo -e "\e[36m add $PARROT_LITE_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Parrot Lite x86 +LABEL $PARROT_LITE_X86 + MENU LABEL Parrot Lite x86 KERNEL $NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz APPEND initrd=$NFS_ETH0/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -877,7 +902,8 @@ EOF"; echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Parrot Full x64 +LABEL $PARROT_FULL_X64 + MENU LABEL Parrot Full x64 KERNEL $NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz APPEND initrd=$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -892,7 +918,8 @@ EOF"; echo -e "\e[36m add $PARROT_FULL_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Parrot Full x86 +LABEL $PARROT_FULL_X86 + MENU LABEL Parrot Full x86 KERNEL $NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz APPEND initrd=$NFS_ETH0/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -907,7 +934,8 @@ EOF"; echo -e "\e[36m add $GNURADIO_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL GNU Radio x64 +LABEL $GNURADIO_X64 + MENU LABEL GNU Radio x64 KERNEL $NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi APPEND initrd=$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -922,7 +950,8 @@ EOF"; echo -e "\e[36m add $KALI_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Kali x64 +LABEL $KALI_X64 + MENU LABEL Kali x64 KERNEL $NFS_ETH0/$KALI_X64/live/vmlinuz APPEND initrd=$NFS_ETH0/$KALI_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -937,7 +966,8 @@ EOF"; echo -e "\e[36m add $DEFT_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL DEFT x64 +LABEL $DEFT_X64 + MENU LABEL DEFT x64 KERNEL $NFS_ETH0/$DEFT_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$DEFT_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -952,7 +982,8 @@ EOF"; echo -e "\e[36m add $DEFTZ_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL DEFT Zero x64 +LABEL $DEFTZ_X64 + MENU LABEL DEFT Zero x64 KERNEL $NFS_ETH0/$DEFTZ_X64/casper/vmlinuz APPEND initrd=$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -967,7 +998,8 @@ EOF"; echo -e "\e[36m add $PENTOO_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Pentoo x64 +LABEL $PENTOO_X64 + MENU LABEL Pentoo x64 KERNEL $NFS_ETH0/$PENTOO_X64/isolinux/pentoo APPEND initrd=$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- TEXT HELP @@ -982,7 +1014,8 @@ EOF"; echo -e "\e[36m add $SYSTEMRESCTUE_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL System Rescue x86 +LABEL $SYSTEMRESCTUE_X86 + MENU LABEL System Rescue x86 KERNEL $NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/rescue32 APPEND initrd=$NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/initram.igz netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCTUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG TEXT HELP @@ -997,7 +1030,8 @@ EOF"; echo -e "\e[36m add $DESINFECT_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL desinfect x86 +LABEL $DESINFECT_X86 + MENU LABEL desinfect x86 KERNEL $NFS_ETH0/$DESINFECT_X86/casper/vmlinuz APPEND initrd=$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP @@ -1013,7 +1047,8 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options -LABEL tiny core x64 +LABEL $TINYCORE_x64 + MENU LABEL tiny core x64 KERNEL $NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 APPEND initrd=$NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP @@ -1029,7 +1064,8 @@ EOF"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options -LABEL tiny core x86 +LABEL $TINYCORE_x86 + MENU LABEL tiny core x86 KERNEL $NFS_ETH0/$TINYCORE_x86/boot/vmlinuz APPEND initrd=$NFS_ETH0/$TINYCORE_x86/boot/core.gz nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP @@ -1044,7 +1080,8 @@ EOF"; echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Raspberry Pi Desktop +LABEL $RPDESKTOP_X86 + MENU LABEL Raspberry Pi Desktop KERNEL $NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 APPEND initrd=$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -1059,7 +1096,8 @@ EOF"; echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Clonezilla x64 +LABEL $CLONEZILLA_X64 + MENU LABEL Clonezilla x64 KERNEL $NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz APPEND initrd=$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -1074,7 +1112,8 @@ EOF"; echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL Clonezilla x86 +LABEL $CLONEZILLA_X86 + MENU LABEL Clonezilla x86 KERNEL $NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz APPEND initrd=$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP @@ -1092,7 +1131,8 @@ EOF"; ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel ## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html -LABEL Fedora x64 +LABEL $FEDORA_X64 + MENU LABEL Fedora x64 KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP @@ -1111,7 +1151,8 @@ EOF"; ## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup ## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc ## NOT WORKING -LABEL CentOS x64 +LABEL $CENTOS_X64 + MENU LABEL CentOS x64 KERNEL $NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 @@ -1127,7 +1168,7 @@ LABEL CentOS x64 # Warning: Could not boot. # Warning: /dev/mapper/live-rw does not exist # Starting Dracut Emergency Shell - #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + #APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP @@ -1144,7 +1185,8 @@ EOF"; ######################################## ## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten ## NOT WORKING -LABEL Tails x64 +LABEL $TAILS_X64 + MENU LABEL Tails x64 KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz # APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails @@ -1187,6 +1229,8 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/reboot.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/memdisk" ] || sudo ln -s /usr/lib/syslinux/memdisk $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_BIOS/nfs; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; From d0fd2cc4eefd24ce3e23432e1a747e6d1f077500 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 14 May 2018 21:28:30 +0200 Subject: [PATCH 108/694] reorganized pxe menu entries splitted `APPEND ... initrd= ...` to INITRD and APPEND, to make name relations more clean --- install-pxe-server_pass2.sh | 103 +++++++++++++++++++++++------------- 1 file changed, 66 insertions(+), 37 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 147b6f8..9a9fcfc 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -695,7 +695,8 @@ EOF"; LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 KERNEL $NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi - APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -711,7 +712,8 @@ EOF"; LABEL $UBUNTU_LTS_X86 MENU LABEL Ubuntu LTS x86 KERNEL $NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu @@ -727,7 +729,8 @@ EOF"; LABEL $UBUNTU_X64 MENU LABEL Ubuntu x64 KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$UBUNTU_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -743,7 +746,8 @@ EOF"; LABEL $UBUNTU_X86 MENU LABEL Ubuntu x86 KERNEL $NFS_ETH0/$UBUNTU_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$UBUNTU_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x86 Live User: ubuntu @@ -759,7 +763,8 @@ EOF"; LABEL $UBUNTU_DAILY_X64 MENU LABEL Ubuntu x64 Daily-Live KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -776,7 +781,8 @@ EOF"; LABEL $LUBUNTU_X64 MENU LABEL lubuntu x64 KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -792,7 +798,8 @@ EOF"; LABEL $LUBUNTU_X86 MENU LABEL lubuntu x86 KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -808,7 +815,8 @@ EOF"; LABEL $LUBUNTU_DAILY_X64 MENU LABEL lubuntu x64 Daily-Live KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -825,7 +833,8 @@ EOF"; LABEL $UBUNTU_NONPAE MENU LABEL Ubuntu non-PAE x86 KERNEL $NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu non-PAE x86 Live User: ubuntu @@ -841,7 +850,8 @@ EOF"; LABEL $DEBIAN_X64 MENU LABEL Debian x64 KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 - APPEND initrd=$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live LXDE User: user, Password: live @@ -857,7 +867,8 @@ EOF"; LABEL $DEBIAN_X86 MENU LABEL Debian x86 KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 - APPEND initrd=$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE User: user, Password: live @@ -873,7 +884,8 @@ EOF"; LABEL $PARROT_LITE_X64 MENU LABEL Parrot Lite x64 KERNEL $NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$PARROT_LITE_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live @@ -889,7 +901,8 @@ EOF"; LABEL $PARROT_LITE_X86 MENU LABEL Parrot Lite x86 KERNEL $NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz - APPEND initrd=$NFS_ETH0/$PARROT_LITE_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$PARROT_LITE_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x86 Live (Home/Workstation) User: user, Password: live @@ -905,7 +918,8 @@ EOF"; LABEL $PARROT_FULL_X64 MENU LABEL Parrot Full x64 KERNEL $NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$PARROT_FULL_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -921,7 +935,8 @@ EOF"; LABEL $PARROT_FULL_X86 MENU LABEL Parrot Full x86 KERNEL $NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz - APPEND initrd=$NFS_ETH0/$PARROT_FULL_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$PARROT_FULL_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x86 Live (Security) User: user, Password: live @@ -937,7 +952,8 @@ EOF"; LABEL $GNURADIO_X64 MENU LABEL GNU Radio x64 KERNEL $NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi - APPEND initrd=$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$GNURADIO_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to GNU Radio x64 Live User: ubuntu @@ -953,7 +969,8 @@ EOF"; LABEL $KALI_X64 MENU LABEL Kali x64 KERNEL $NFS_ETH0/$KALI_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$KALI_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$KALI_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Kali x64 Live User: root, Password: toor @@ -969,7 +986,8 @@ EOF"; LABEL $DEFT_X64 MENU LABEL DEFT x64 KERNEL $NFS_ETH0/$DEFT_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$DEFT_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$DEFT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT x64 Live User: root, Password: toor @@ -985,7 +1003,8 @@ EOF"; LABEL $DEFTZ_X64 MENU LABEL DEFT Zero x64 KERNEL $NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$DEFTZ_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor @@ -1001,7 +1020,8 @@ EOF"; LABEL $PENTOO_X64 MENU LABEL Pentoo x64 KERNEL $NFS_ETH0/$PENTOO_X64/isolinux/pentoo - APPEND initrd=$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- + INITRD $NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- TEXT HELP Boot to Pentoo x64 Live User: pentoo @@ -1017,7 +1037,8 @@ EOF"; LABEL $SYSTEMRESCTUE_X86 MENU LABEL System Rescue x86 KERNEL $NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/rescue32 - APPEND initrd=$NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/initram.igz netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCTUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG + INITRD $NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/initram.igz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCTUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG TEXT HELP Boot to System Rescue x86 Live User: root @@ -1033,7 +1054,8 @@ EOF"; LABEL $DESINFECT_X86 MENU LABEL desinfect x86 KERNEL $NFS_ETH0/$DESINFECT_X86/casper/vmlinuz - APPEND initrd=$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $NFS_ETH0/$DESINFECT_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x86 User: desinfect @@ -1050,7 +1072,8 @@ EOF"; LABEL $TINYCORE_x64 MENU LABEL tiny core x64 KERNEL $NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 - APPEND initrd=$NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + INITRD $NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP Boot to tiny core x64 User: tc @@ -1067,7 +1090,8 @@ EOF"; LABEL $TINYCORE_x86 MENU LABEL tiny core x86 KERNEL $NFS_ETH0/$TINYCORE_x86/boot/vmlinuz - APPEND initrd=$NFS_ETH0/$TINYCORE_x86/boot/core.gz nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + INITRD $NFS_ETH0/$TINYCORE_x86/boot/core.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP Boot to tiny core x86 User: tc @@ -1083,7 +1107,8 @@ EOF"; LABEL $RPDESKTOP_X86 MENU LABEL Raspberry Pi Desktop KERNEL $NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 - APPEND initrd=$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Raspberry Pi Desktop User: pi, Password: raspberry @@ -1099,7 +1124,8 @@ EOF"; LABEL $CLONEZILLA_X64 MENU LABEL Clonezilla x64 KERNEL $NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz - APPEND initrd=$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$CLONEZILLA_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x64 User: user, Password: live @@ -1115,7 +1141,8 @@ EOF"; LABEL $CLONEZILLA_X86 MENU LABEL Clonezilla x86 KERNEL $NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz - APPEND initrd=$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + INITRD $NFS_ETH0/$CLONEZILLA_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x86 User: user, Password: live @@ -1134,7 +1161,8 @@ EOF"; LABEL $FEDORA_X64 MENU LABEL Fedora x64 KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - APPEND initrd=$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + INITRD $NFS_ETH0/$FEDORA_X64/isolinux/initrd.img + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -1154,23 +1182,23 @@ EOF"; LABEL $CENTOS_X64 MENU LABEL CentOS x64 KERNEL $NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 rootfstype=auto ro rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + INITRD $NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img + #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; - #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; - #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # mount.nfs: mountpoint /sysroot is not a directory - #APPEND initrd=/nfs/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # Warning: Could not boot. # Warning: /dev/mapper/live-rw does not exist # Starting Dracut Emergency Shell - #APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 root-path=/LiveOS/squashfs.img rootfstype=squashfs ro rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 + APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - APPEND initrd=$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img root=live:http://$IP_ETH0$NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to CentOS LiveGNOME User: liveuser @@ -1187,9 +1215,10 @@ EOF"; ## NOT WORKING LABEL $TAILS_X64 MENU LABEL Tails x64 - KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz -# APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img netboot=nfs nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - APPEND initrd=$NFS_ETH0/$TAILS_X64/live/initrd.img fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails + #KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $NFS_ETH0/$TAILS_X64/live/initrd.img + #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG + APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG TEXT HELP Boot to Tails x64 Live (modprobe r8169; exit) ENDTEXT From 0378c930c2d144012a80b9bac57de79e84cb1bb3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 27 May 2018 13:19:36 +0200 Subject: [PATCH 109/694] updated url --- install-pxe-server_pass2.sh | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9a9fcfc..8ea584d 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-05-14 +# v2018-05-27 # # known issues: # overlayfs can not get exported via nfs @@ -173,13 +173,13 @@ DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.4.0-i386-lxde.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-home-3.11_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-home-4.0.1_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-home-3.11_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-home-4.0.1_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-security-3.11_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-security-4.0.1_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/3.11/Parrot-security-3.11_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-security-4.0.1_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso @@ -201,6 +201,8 @@ SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/s DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= +DESINFECT_X64=desinfect-x64 +DESINFECT_X64_URL= TINYCORE_x64=tinycore-x64 TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso @@ -1063,6 +1065,23 @@ LABEL $DESINFECT_X86 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DESINFECT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DESINFECT_X64 + MENU LABEL desinfect x64 + KERNEL $NFS_ETH0/$DESINFECT_X64/casper/vmlinuz + INITRD $NFS_ETH0/$DESINFECT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to ct desinfect x64 + User: desinfect + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64" ]; then echo -e "\e[36m add $TINYCORE_x64\e[0m"; From 4be0d6da78575a4f7b0eca5615f7990b97aaa008 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 29 May 2018 20:33:12 +0200 Subject: [PATCH 110/694] Fix EFI 64bit Booting #7 @HarvsG, thank you for your work, testing and providing a pullrequest. --- install-pxe-server_pass1.sh | 22 ++++++++++++++- install-pxe-server_pass2.sh | 54 ++++++++++++++++++++----------------- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index cff0504..f53b64c 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -116,7 +116,27 @@ sudo apt install -y rsync; ###################################################################### echo -e "\e[32minstall syslinux-common for pxe\e[0m"; -sudo apt install -y pxelinux syslinux-common; +sudo apt install -y pxelinux syslinux-common syslinux-efi; + +sudo wget -O /tmp/syslinux-6.04-pre1.tar.xz https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.xz; + +echo -e "\e[32m update the 32bit efi file and ldlinux.e32 to 6.04-pre1 due to bugs\e[0m"; +sudo tar -x -v -C /usr/lib/SYSLINUX.EFI/efi32/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=3 syslinux-6.04-pre1/efi32/efi/syslinux.efi; +sudo chown root:root /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi; +sudo chmod 644 /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi; +sudo tar -x -v -C /usr/lib/syslinux/modules/efi32/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=5 syslinux-6.04-pre1/efi32/com32/elflink/ldlinux/ldlinux.e32; +sudo chown root:root /usr/lib/syslinux/modules/efi32/ldlinux.e32; +sudo chmod 644 /usr/lib/syslinux/modules/efi32/ldlinux.e32; + +echo -e "\e[32m update the 64bit efi file and ldlinux.e64 to 6.04-pre1 due to bugs\e[0m"; +sudo tar -x -v -C /usr/lib/SYSLINUX.EFI/efi64/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=3 syslinux-6.04-pre1/efi64/efi/syslinux.efi; +sudo chown root:root /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi; +sudo chmod 644 /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi; +sudo tar -x -v -C /usr/lib/syslinux/modules/efi64/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=5 syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64; +sudo chown root:root /usr/lib/syslinux/modules/efi64/ldlinux.e64; +sudo chmod 644 /usr/lib/syslinux/modules/efi64/ldlinux.e64; + +sudo rm /tmp/syslinux-6.04-pre1.tar.xz; ###################################################################### diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8ea584d..59865fc 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -494,9 +494,9 @@ pxe-service=tag:ARM_RPI3,0, \"Raspberry Pi Boot \", bootcode.bin pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/pxelinux pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi -pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/syslinux -pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/syslinux -pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/syslinux +pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/syslinux.efi +pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/syslinux.efi +pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/syslinux.efi dhcp-boot=tag:ARM_RPI3, bootcode.bin dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/pxelinux.0 @@ -504,8 +504,8 @@ dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/pxelinux.0 dhcp-boot=tag:x86_iPXE, undionly.kpxe dhcp-boot=tag:UEFI_iPXE, ipxe.efi dhcp-option=iPXE, 175, 8:1:1 -dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/syslinux.0 -dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/syslinux.0 +dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/syslinux.efi +dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/syslinux.efi EOF"; sudo systemctl restart dnsmasq.service; } @@ -1285,28 +1285,32 @@ handle_pxe() { handle_pxe_menu $DST_PXE_BIOS default; ###################################################################### - #echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; - #[ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.0" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/syslinux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.0; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI32/nfs; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; - #handle_pxe_menu $DST_PXE_EFI32 efidefault; + echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; + [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.efi; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/reboot.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI32/nfs; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; + handle_pxe_menu $DST_PXE_EFI32 default; ###################################################################### - #echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; - #[ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.0" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/syslinux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.0; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI64/nfs; - #[ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; - #handle_pxe_menu $DST_PXE_EFI64 efidefault; + echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; + [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.efi; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/reboot.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI64/nfs; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; + handle_pxe_menu $DST_PXE_EFI64 default; } From e7540aaeb6e00d7e155395c6b9b71845455d5999 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 30 May 2018 09:23:47 +0200 Subject: [PATCH 111/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index f53b64c..d6098b2 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2018-03-20 +# v2018-05-30 # # known issues: # @@ -118,25 +118,17 @@ sudo apt install -y rsync; echo -e "\e[32minstall syslinux-common for pxe\e[0m"; sudo apt install -y pxelinux syslinux-common syslinux-efi; -sudo wget -O /tmp/syslinux-6.04-pre1.tar.xz https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.xz; +sudo wget -O /tmp/temp.tar.xz https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.xz; echo -e "\e[32m update the 32bit efi file and ldlinux.e32 to 6.04-pre1 due to bugs\e[0m"; -sudo tar -x -v -C /usr/lib/SYSLINUX.EFI/efi32/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=3 syslinux-6.04-pre1/efi32/efi/syslinux.efi; -sudo chown root:root /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi; -sudo chmod 644 /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi; -sudo tar -x -v -C /usr/lib/syslinux/modules/efi32/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=5 syslinux-6.04-pre1/efi32/com32/elflink/ldlinux/ldlinux.e32; -sudo chown root:root /usr/lib/syslinux/modules/efi32/ldlinux.e32; -sudo chmod 644 /usr/lib/syslinux/modules/efi32/ldlinux.e32; +sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi32/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi32/efi/syslinux.efi; +sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi32/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi32/com32/elflink/ldlinux/ldlinux.e32; echo -e "\e[32m update the 64bit efi file and ldlinux.e64 to 6.04-pre1 due to bugs\e[0m"; -sudo tar -x -v -C /usr/lib/SYSLINUX.EFI/efi64/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=3 syslinux-6.04-pre1/efi64/efi/syslinux.efi; -sudo chown root:root /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi; -sudo chmod 644 /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi; -sudo tar -x -v -C /usr/lib/syslinux/modules/efi64/ -f /tmp/syslinux-6.04-pre1.tar.xz --strip-components=5 syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64; -sudo chown root:root /usr/lib/syslinux/modules/efi64/ldlinux.e64; -sudo chmod 644 /usr/lib/syslinux/modules/efi64/ldlinux.e64; - -sudo rm /tmp/syslinux-6.04-pre1.tar.xz; +sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi64/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi64/efi/syslinux.efi; +sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi64/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64; + +sudo rm /tmp/temp.tar.xz; ###################################################################### From 000040e30fd8724dae61f3fd092002210ea6f926 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 5 Jun 2018 20:55:17 +0200 Subject: [PATCH 112/694] changed from pxelinux.0 to lpxelinux.0 --- install-pxe-server_pass2.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 59865fc..119b715 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-05-27 +# v2018-06-05 # # known issues: # overlayfs can not get exported via nfs @@ -491,7 +491,7 @@ tag-if=set:x86_iPXE, tag:ARCH_0, tag:!UUID_RPI3, tag:iPXE tag-if=set:UEFI_iPXE, tag:!ARCH_0, tag:!UUID_RPI3, tag:iPXE pxe-service=tag:ARM_RPI3,0, \"Raspberry Pi Boot \", bootcode.bin -pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/pxelinux +pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/lpxelinux pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/syslinux.efi @@ -499,7 +499,7 @@ pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/syslinux. pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/syslinux.efi dhcp-boot=tag:ARM_RPI3, bootcode.bin -dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/pxelinux.0 +dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 #dhcp-boot=tag:x86_iPXE, http://my.web.server/real_boot_script.php dhcp-boot=tag:x86_iPXE, undionly.kpxe dhcp-boot=tag:UEFI_iPXE, ipxe.efi @@ -1272,7 +1272,7 @@ handle_pxe() { ###################################################################### echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxelinux.0" ] || sudo ln -s /usr/lib/PXELINUX/pxelinux.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/pxelinux.0; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/lpxelinux.0" ] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/ldlinux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; @@ -1287,7 +1287,7 @@ handle_pxe() { ###################################################################### echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.efi; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; @@ -1301,7 +1301,7 @@ handle_pxe() { ###################################################################### echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.efi; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; From d6303cf0790b111cfd24f3e285ed743703a22371 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 5 Jun 2018 21:00:28 +0200 Subject: [PATCH 113/694] removed timeout and localboot in menu --- install-pxe-server_pass2.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 119b715..3c6acde 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -625,8 +625,8 @@ handle_pxe_menu() { # http://www.syslinux.org/wiki/index.php?title=Menu DEFAULT vesamenu.c32 -TIMEOUT 600 -ONTIMEOUT localboot +#TIMEOUT 600 +#ONTIMEOUT localboot PROMPT 0 NOESCAPE 1 ALLOWOPTIONS 1 @@ -649,13 +649,6 @@ LABEL reboot LABEL poweroff MENU LABEL Power Off COM32 poweroff.c32 -######################################## -LABEL localboot - MENU LABEL Local Boot - LOCALBOOT 0 - TEXT HELP - Boot to local hard disk - ENDTEXT EOF"; fi From cec73a1c44df8c8395f5637c9da540b5a7227ef1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 Jun 2018 21:32:05 +0200 Subject: [PATCH 114/694] updated url --- install-pxe-server_pass2.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3c6acde..85ad086 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -23,7 +23,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-06-05 +# v2018-06-07 # # known issues: # overlayfs can not get exported via nfs @@ -173,13 +173,13 @@ DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.4.0-i386-lxde.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-home-4.0.1_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-home-4.1_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-home-4.0.1_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-home-4.1_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-security-4.0.1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-security-4.1_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.0.1/Parrot-security-4.0.1_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-security-4.1_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From ef0dc23bec70683ca9a1aea3d12acc1658a3b001 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 19 Jun 2018 21:53:17 +0200 Subject: [PATCH 115/694] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e46c961..7e4e5ed 100644 --- a/README.md +++ b/README.md @@ -302,9 +302,9 @@ CUSTOM_TIMEZONE=Europe/Berlin ## note3: it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet, because of lack of hardware for UEFI boot -## note4: NETWORK BOOTING for Raspberry Pi 3 -the server is prepared for to boot a Raspberry Pi 3 via network. -in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3, that will boot from network.
+## note4: NETWORK BOOTING for Raspberry Pi 3 client +the server is prepared for to boot a Raspberry Pi 3 client via network. +in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
skip the leading '00000000'. take only the last 8 digits!
e.g. ``` @@ -312,11 +312,11 @@ pi@raspberry-$ cat /proc/cpuinfo | grep Serial Serial : 0000000087654321 ``` then take ```RPI_SN0=87654321```.
-if you have more than one RPi3 for network booting you have to add them by hand to the ```/srv/tftp``` folder. +if you have more than one RPi3-client for network booting you have to add them by hand to the ```/srv/tftp``` folder on the PXE-server. -the script will download Raspbian-Stretch-Lite and prepare it for the RPi3 with the given serial number. +the script will download Raspbian-Stretch-Lite and prepare it for the RPi3-client with the given serial number. -by default, a RPi3 is not enabled for network booting. you have to enable it once. +by default, a RPi3-client is not enabled for network booting. you have to enable it once. for more information, From a8bcc1b78371aaea383b0c4a4f746d51cd2a22cc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 25 Jun 2018 23:56:16 +0200 Subject: [PATCH 116/694] use http & added openSUSE (try) --- install-pxe-server_pass2.sh | 256 +++++++++++++++++++++--------------- 1 file changed, 153 insertions(+), 103 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 85ad086..12af635 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -18,12 +18,13 @@ # nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso # tails, https://tails.boum.org/install/download/openpgp/index.en.html # centos, https://www.centos.org/download/ +# opensuse http://download.opensuse.org/distribution/openSUSE-current/live/ # # rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-06-07 +# v2018-06-25 # # known issues: # overlayfs can not get exported via nfs @@ -196,8 +197,8 @@ KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/latest-iso-symlinks/pentoo-amd64-hardened.iso -SYSTEMRESCTUE_X86=systemrescue-x86 -SYSTEMRESCTUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso +SYSTEMRESCUE_X86=systemrescue-x86 +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= @@ -226,6 +227,12 @@ TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-am CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso +OPENSUSE_X64=opensuse-x64 +OPENSUSE_X64_URL=http://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso + +OPENSUSE_RESCUE_X64=opensuse-rescue-x64 +OPENSUSE_RESCUE_X64_URL=http://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso + ########################################################################## ########################################################################## @@ -601,6 +608,7 @@ handle_pxe_menu() { # $2 : menu file name ###################################################################### local FILE_MENU=$DST_TFTP_ETH0/$1/pxelinux.cfg/$2 + local FILE_BASE=http://$IP_ETH0 ###################################################################### ## INFO: ## The entry before -- means that it will be used by the live system / the installer @@ -675,7 +683,7 @@ LABEL $WIN_PE_X86-iso MENU LABEL Windows PE x86 (ISO) KERNEL memdisk APPEND iso - INITRD $ISO/$WIN_PE_X86.iso + INITRD $FILE_BASE$ISO/$WIN_PE_X86.iso TEXT HELP Boot to Windows PE 32bit ISO ~400MB ENDTEXT @@ -689,8 +697,8 @@ EOF"; ######################################## LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 - KERNEL $NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi - INITRD $NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live @@ -706,8 +714,8 @@ EOF"; ######################################## LABEL $UBUNTU_LTS_X86 MENU LABEL Ubuntu LTS x86 - KERNEL $NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - INITRD $NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x86 Live @@ -723,8 +731,8 @@ EOF"; ######################################## LABEL $UBUNTU_X64 MENU LABEL Ubuntu x64 - KERNEL $NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - INITRD $NFS_ETH0/$UBUNTU_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live @@ -740,8 +748,8 @@ EOF"; ######################################## LABEL $UBUNTU_X86 MENU LABEL Ubuntu x86 - KERNEL $NFS_ETH0/$UBUNTU_X86/casper/vmlinuz - INITRD $NFS_ETH0/$UBUNTU_X86/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x86 Live @@ -757,8 +765,8 @@ EOF"; ######################################## LABEL $UBUNTU_DAILY_X64 MENU LABEL Ubuntu x64 Daily-Live - KERNEL $NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - INITRD $NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live @@ -775,8 +783,8 @@ EOF"; ######################################## LABEL $LUBUNTU_X64 MENU LABEL lubuntu x64 - KERNEL $NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - INITRD $NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live @@ -792,8 +800,8 @@ EOF"; ######################################## LABEL $LUBUNTU_X86 MENU LABEL lubuntu x86 - KERNEL $NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - INITRD $NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live @@ -809,8 +817,8 @@ EOF"; ######################################## LABEL $LUBUNTU_DAILY_X64 MENU LABEL lubuntu x64 Daily-Live - KERNEL $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - INITRD $NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live @@ -827,8 +835,8 @@ EOF"; ######################################## LABEL $UBUNTU_NONPAE MENU LABEL Ubuntu non-PAE x86 - KERNEL $NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz - INITRD $NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu non-PAE x86 Live @@ -844,8 +852,8 @@ EOF"; ######################################## LABEL $DEBIAN_X64 MENU LABEL Debian x64 - KERNEL $NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 - INITRD $NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live LXDE @@ -861,8 +869,8 @@ EOF"; ######################################## LABEL $DEBIAN_X86 MENU LABEL Debian x86 - KERNEL $NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 - INITRD $NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE @@ -878,8 +886,8 @@ EOF"; ######################################## LABEL $PARROT_LITE_X64 MENU LABEL Parrot Lite x64 - KERNEL $NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz - INITRD $NFS_ETH0/$PARROT_LITE_X64/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) @@ -895,8 +903,8 @@ EOF"; ######################################## LABEL $PARROT_LITE_X86 MENU LABEL Parrot Lite x86 - KERNEL $NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz - INITRD $NFS_ETH0/$PARROT_LITE_X86/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X86/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x86 Live (Home/Workstation) @@ -912,8 +920,8 @@ EOF"; ######################################## LABEL $PARROT_FULL_X64 MENU LABEL Parrot Full x64 - KERNEL $NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz - INITRD $NFS_ETH0/$PARROT_FULL_X64/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) @@ -929,8 +937,8 @@ EOF"; ######################################## LABEL $PARROT_FULL_X86 MENU LABEL Parrot Full x86 - KERNEL $NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz - INITRD $NFS_ETH0/$PARROT_FULL_X86/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X86/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x86 Live (Security) @@ -946,8 +954,8 @@ EOF"; ######################################## LABEL $GNURADIO_X64 MENU LABEL GNU Radio x64 - KERNEL $NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi - INITRD $NFS_ETH0/$GNURADIO_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi + INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to GNU Radio x64 Live @@ -963,8 +971,8 @@ EOF"; ######################################## LABEL $KALI_X64 MENU LABEL Kali x64 - KERNEL $NFS_ETH0/$KALI_X64/live/vmlinuz - INITRD $NFS_ETH0/$KALI_X64/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Kali x64 Live @@ -980,8 +988,8 @@ EOF"; ######################################## LABEL $DEFT_X64 MENU LABEL DEFT x64 - KERNEL $NFS_ETH0/$DEFT_X64/casper/vmlinuz - INITRD $NFS_ETH0/$DEFT_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT x64 Live @@ -997,8 +1005,8 @@ EOF"; ######################################## LABEL $DEFTZ_X64 MENU LABEL DEFT Zero x64 - KERNEL $NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - INITRD $NFS_ETH0/$DEFTZ_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT Zero x64 Live @@ -1014,8 +1022,8 @@ EOF"; ######################################## LABEL $PENTOO_X64 MENU LABEL Pentoo x64 - KERNEL $NFS_ETH0/$PENTOO_X64/isolinux/pentoo - INITRD $NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- TEXT HELP Boot to Pentoo x64 Live @@ -1025,15 +1033,15 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/rescue32" ]; then - echo -e "\e[36m add $SYSTEMRESCTUE_X86\e[0m"; + && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then + echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## -LABEL $SYSTEMRESCTUE_X86 +LABEL $SYSTEMRESCUE_X86 MENU LABEL System Rescue x86 - KERNEL $NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/rescue32 - INITRD $NFS_ETH0/$SYSTEMRESCTUE_X86/isolinux/initram.igz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCTUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG + KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32 + INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/initram.igz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG TEXT HELP Boot to System Rescue x86 Live User: root @@ -1048,8 +1056,8 @@ EOF"; ######################################## LABEL $DESINFECT_X86 MENU LABEL desinfect x86 - KERNEL $NFS_ETH0/$DESINFECT_X86/casper/vmlinuz - INITRD $NFS_ETH0/$DESINFECT_X86/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x86 @@ -1065,8 +1073,8 @@ EOF"; ######################################## LABEL $DESINFECT_X64 MENU LABEL desinfect x64 - KERNEL $NFS_ETH0/$DESINFECT_X64/casper/vmlinuz - INITRD $NFS_ETH0/$DESINFECT_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x64 @@ -1083,8 +1091,8 @@ EOF"; # INFO: http://wiki.tinycorelinux.net/wiki:boot_options LABEL $TINYCORE_x64 MENU LABEL tiny core x64 - KERNEL $NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 - INITRD $NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP Boot to tiny core x64 @@ -1101,8 +1109,8 @@ EOF"; # INFO: http://wiki.tinycorelinux.net/wiki:boot_options LABEL $TINYCORE_x86 MENU LABEL tiny core x86 - KERNEL $NFS_ETH0/$TINYCORE_x86/boot/vmlinuz - INITRD $NFS_ETH0/$TINYCORE_x86/boot/core.gz + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/core.gz APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP Boot to tiny core x86 @@ -1118,8 +1126,8 @@ EOF"; ######################################## LABEL $RPDESKTOP_X86 MENU LABEL Raspberry Pi Desktop - KERNEL $NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 - INITRD $NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img + KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 + INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Raspberry Pi Desktop @@ -1135,8 +1143,8 @@ EOF"; ######################################## LABEL $CLONEZILLA_X64 MENU LABEL Clonezilla x64 - KERNEL $NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz - INITRD $NFS_ETH0/$CLONEZILLA_X64/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x64 @@ -1152,8 +1160,8 @@ EOF"; ######################################## LABEL $CLONEZILLA_X86 MENU LABEL Clonezilla x86 - KERNEL $NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz - INITRD $NFS_ETH0/$CLONEZILLA_X86/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x86 @@ -1172,8 +1180,8 @@ EOF"; ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html LABEL $FEDORA_X64 MENU LABEL Fedora x64 - KERNEL $NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - INITRD $NFS_ETH0/$FEDORA_X64/isolinux/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img APPEND root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to Fedora Workstation Live @@ -1182,6 +1190,46 @@ LABEL $FEDORA_X64 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $OPENSUSE_X64 + MENU LABEL openSUSE Leap x64 +# KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux +# INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts root=/dev/ram0 load_ramdisk=1 ramdisk_size=4096 init=linuxrc -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso + TEXT HELP + Boot to openSUSE Leap Live + User: liveuser + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $OPENSUSE_RESCUE_X64 + MENU LABEL openSUSE Leap Rescue x64 +# KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux +# INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$OPENSUSE_RESCUE_X64.iso + TEXT HELP + Boot to openSUSE Leap Rescue Live + User: liveuser + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then echo -e "\e[36m add $CENTOS_X64\e[0m"; @@ -1193,8 +1241,8 @@ EOF"; ## NOT WORKING LABEL $CENTOS_X64 MENU LABEL CentOS x64 - KERNEL $NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - INITRD $NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img + KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 + INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; @@ -1227,8 +1275,8 @@ EOF"; ## NOT WORKING LABEL $TAILS_X64 MENU LABEL Tails x64 - #KERNEL $NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $NFS_ETH0/$TAILS_X64/live/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG TEXT HELP @@ -2110,39 +2158,41 @@ handle_optional; ## you don't want to download, mount, export, install for PXE boot ########################################################################## ########################################################################## -handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; - -handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -#handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; - -#handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; -handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; -#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -#handle_iso $DEFT_X64 $DEFT_X64_URL; -#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -handle_iso $KALI_X64 $KALI_X64_URL; -handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; -handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -handle_iso $FEDORA_X64 $FEDORA_X64_URL; -##handle_iso $CENTOS_X64 $CENTOS_X64_URL; -##handle_iso $TAILS_X64 $TAILS_X64_URL; +handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +#handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; + +handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; +#handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; + +#handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; +#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +#handle_iso $DEFT_X64 $DEFT_X64_URL; +#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +handle_iso $KALI_X64 $KALI_X64_URL; +handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; +handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; +#handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; +handle_iso $FEDORA_X64 $FEDORA_X64_URL; +handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL ,gid=root,uid=root,norock,mode=292; +handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL ,gid=root,uid=root,norock,mode=292; +##handle_iso $CENTOS_X64 $CENTOS_X64_URL; +##handle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## handle_pxe; handle_ipxe; From e70a5433e4c43d370bdd2d284d2b7f6cd19b01d2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 26 Jun 2018 06:50:29 +0200 Subject: [PATCH 117/694] use hostname --- install-pxe-server_pass2.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 12af635..6706e8c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-06-25 +# v2018-06-26 # # known issues: # overlayfs can not get exported via nfs @@ -229,7 +229,6 @@ CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86 OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=http://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso - OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=http://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso @@ -248,7 +247,6 @@ PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_LITE=rpi-raspbian-lite RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest - RPD_FULL=rpi-raspbian-full RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_latest @@ -608,7 +606,7 @@ handle_pxe_menu() { # $2 : menu file name ###################################################################### local FILE_MENU=$DST_TFTP_ETH0/$1/pxelinux.cfg/$2 - local FILE_BASE=http://$IP_ETH0 + local FILE_BASE=http://$(hostname) ###################################################################### ## INFO: ## The entry before -- means that it will be used by the live system / the installer From 25dbba82826dc839e6ff2556791fc8e63ea74343 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 26 Jun 2018 06:51:28 +0200 Subject: [PATCH 118/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 6706e8c..4f195a9 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -18,7 +18,7 @@ # nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso # tails, https://tails.boum.org/install/download/openpgp/index.en.html # centos, https://www.centos.org/download/ -# opensuse http://download.opensuse.org/distribution/openSUSE-current/live/ +# opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ # # rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ From 57736e0971d82b080ccb20e23e57f20667d70ed6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 26 Jun 2018 07:02:28 +0200 Subject: [PATCH 119/694] correct url to https --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4f195a9..2555ab7 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -228,9 +228,9 @@ CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=http://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=http://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso ########################################################################## From 0be42aadf5753dab536c64cf6b5fe1bd94def911 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Jun 2018 19:01:09 +0200 Subject: [PATCH 120/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 2555ab7..cde710c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1195,12 +1195,13 @@ EOF"; ######################################## LABEL $OPENSUSE_X64 MENU LABEL openSUSE Leap x64 -# KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux -# INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts root=/dev/ram0 load_ramdisk=1 ramdisk_size=4096 init=linuxrc -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - KERNEL memdisk - APPEND iso - INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso +# KERNEL memdisk +# APPEND iso +# INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso TEXT HELP Boot to openSUSE Leap Live User: liveuser @@ -1215,12 +1216,12 @@ EOF"; ######################################## LABEL $OPENSUSE_RESCUE_X64 MENU LABEL openSUSE Leap Rescue x64 -# KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux -# INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - KERNEL memdisk - APPEND iso - INITRD $FILE_BASE$ISO/$OPENSUSE_RESCUE_X64.iso + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +# KERNEL memdisk +# APPEND iso +# INITRD $FILE_BASE$ISO/$OPENSUSE_RESCUE_X64.iso TEXT HELP Boot to openSUSE Leap Rescue Live User: liveuser From 983c47e148f0629f58d8870a824713b204daa0a8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Jun 2018 07:37:03 +0200 Subject: [PATCH 121/694] struggling with openSUSE --- install-pxe-server_pass2.sh | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index cde710c..35b1fb1 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1193,15 +1193,20 @@ EOF"; echo -e "\e[36m add $OPENSUSE_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## +## INFO: Booting live images +## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 +## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image +## https://bugzilla.opensuse.org/show_bug.cgi?id=1099548 LABEL $OPENSUSE_X64 MENU LABEL openSUSE Leap x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts root=/dev/ram0 load_ramdisk=1 ramdisk_size=4096 init=linuxrc -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# KERNEL memdisk -# APPEND iso -# INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +# APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +## KERNEL memdisk +## APPEND iso +## INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso TEXT HELP Boot to openSUSE Leap Live User: liveuser @@ -1219,9 +1224,11 @@ LABEL $OPENSUSE_RESCUE_X64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# KERNEL memdisk -# APPEND iso -# INITRD $FILE_BASE$ISO/$OPENSUSE_RESCUE_X64.iso +# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +# APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +## KERNEL memdisk +## APPEND iso +## INITRD $FILE_BASE$ISO/$OPENSUSE_RESCUE_X64.iso TEXT HELP Boot to openSUSE Leap Rescue Live User: liveuser From daa9e9e64386359b94a21e3d91c976cd31fbe6fc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Jun 2018 08:28:37 +0200 Subject: [PATCH 122/694] struggling with openSUSE --- install-pxe-server_pass2.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 35b1fb1..1364e9f 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -221,17 +221,17 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/28/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28-1.1.iso +OPENSUSE_X64=opensuse-x64 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso +OPENSUSE_RESCUE_X64=opensuse-rescue-x64 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso + TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-amd64-3.6.2.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso -OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso -OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso - ########################################################################## ########################################################################## @@ -286,7 +286,7 @@ wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP #wpa_passphrase=$PASSWORD_WLAN0 -wpa_psk=$(wpa_passphrase $SSID_WLAN0 PASSWORD_WLAN0 | grep '[[:blank:]]psk' | cut -d = -f2) +wpa_psk=$(wpa_passphrase $SSID_WLAN0 $PASSWORD_WLAN0 | grep '[[:blank:]]psk' | cut -d = -f2) ## optional: create virtual wlan adapter #bss=$INTERFACE_WLAN0X @@ -299,7 +299,7 @@ wpa_psk=$(wpa_passphrase $SSID_WLAN0 PASSWORD_WLAN0 | grep '[[:blank:]]psk' | cu #wpa_pairwise=TKIP #rsn_pairwise=CCMP ##wpa_passphrase=$PASSWORD_WLAN0X -#wpa_psk=$(wpa_passphrase $SSID_WLAN0X PASSWORD_WLAN0X | grep '[[:blank:]]psk' | cut -d = -f2) +#wpa_psk=$(wpa_passphrase $SSID_WLAN0X $PASSWORD_WLAN0X | grep '[[:blank:]]psk' | cut -d = -f2) EOF"; } From d7202a76224f1605667536d52e41cb3a8b294b15 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Jun 2018 08:34:16 +0200 Subject: [PATCH 123/694] struggling with openSUSE --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1364e9f..ff8f4e4 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-06-26 +# v2018-06-29 # # known issues: # overlayfs can not get exported via nfs @@ -1201,9 +1201,9 @@ LABEL $OPENSUSE_X64 MENU LABEL openSUSE Leap x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 +# APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 ## KERNEL memdisk ## APPEND iso ## INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso From 6bf16ac4371329a8900d115a529a75dc9ab1d3c2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Jun 2018 08:47:46 +0200 Subject: [PATCH 124/694] struggling with openSUSE --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ff8f4e4..9ae9e0c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1201,8 +1201,8 @@ LABEL $OPENSUSE_X64 MENU LABEL openSUSE Leap x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image +# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- # APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 ## KERNEL memdisk ## APPEND iso @@ -1223,7 +1223,7 @@ LABEL $OPENSUSE_RESCUE_X64 MENU LABEL openSUSE Leap Rescue x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- # APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 ## KERNEL memdisk From 72a007f5dd3564d0ff839ccbb587fe7f9bc77644 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 29 Jun 2018 23:30:56 +0200 Subject: [PATCH 125/694] updated url --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9ae9e0c..6605a21 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -211,7 +211,7 @@ TINYCORE_x86=tinycore-x86 TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso RPDESKTOP_X86=rpdesktop-x86 -RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2017-12-01/2017-11-16-rpd-x86-stretch.iso +RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2018-06-29/2018-06-27-rpd-x86-stretch.iso CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-amd64.iso From ce4d27ef276e6fe68a6493693331895743eebdcf Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 5 Jul 2018 19:02:25 +0200 Subject: [PATCH 126/694] timestamping for rpd_x86 --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 6605a21..55f2848 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-06-29 +# v2018-07-05 # # known issues: # overlayfs can not get exported via nfs @@ -211,7 +211,7 @@ TINYCORE_x86=tinycore-x86 TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso RPDESKTOP_X86=rpdesktop-x86 -RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86/images/rpd_x86-2018-06-29/2018-06-27-rpd-x86-stretch.iso +RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-amd64.iso @@ -2191,7 +2191,7 @@ handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; -#handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +#handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; #handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; From 50909d5d7b5e72152711915d08d65dba12244405 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 6 Jul 2018 17:21:02 +0200 Subject: [PATCH 127/694] fixed daily (l)ubuntu initrd entry --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 55f2848..5b19d11 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-05 +# v2018-07-06 # # known issues: # overlayfs can not get exported via nfs @@ -764,7 +764,7 @@ EOF"; LABEL $UBUNTU_DAILY_X64 MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live @@ -816,7 +816,7 @@ EOF"; LABEL $LUBUNTU_DAILY_X64 MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live From 87636f85f353c2980e0863e0c6c93dde1d040a08 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 6 Jul 2018 23:56:13 +0200 Subject: [PATCH 128/694] updated url --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 5b19d11..bcf37c1 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -195,7 +195,7 @@ KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=http://mirror.switch.ch/ftp/mirror/pentoo/latest-iso-symlinks/pentoo-amd64-hardened.iso +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso From 6251e4390d7f69a7e768b92e38c0d7b4ecab00ad Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 7 Jul 2018 21:24:41 +0200 Subject: [PATCH 129/694] added pentoo beta --- install-pxe-server_pass2.sh | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index bcf37c1..8b3e39e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-06 +# v2018-07-07 # # known issues: # overlayfs can not get exported via nfs @@ -147,23 +147,18 @@ UBUNTU_LTS_X64=ubuntu-lts-x64 UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso - UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso - UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso - LUBUNTU_X64=lubuntu-x64 LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-i386.iso - LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmic-desktop-amd64.iso - UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= @@ -187,7 +182,6 @@ GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura DEFT_X64=deft-x64 DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso - DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso @@ -196,6 +190,8 @@ KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened.iso +PENTOO_BETA_X64=pentoo-beta-x64 +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC7_pre20180703.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso @@ -1030,6 +1026,23 @@ LABEL $PENTOO_X64 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then + echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $PENTOO_BETA_X64 + MENU LABEL Pentoo Beta x64 + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- + TEXT HELP + Boot to Pentoo Beta x64 Live + User: pentoo + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; @@ -2187,6 +2200,7 @@ handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL; handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; From 18cd545039976cd7993b98f056db3da9a1446f95 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 8 Jul 2018 11:29:06 +0200 Subject: [PATCH 130/694] updated pentoo beta url --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8b3e39e..53ea030 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-07 +# v2018-07-08 # # known issues: # overlayfs can not get exported via nfs @@ -191,7 +191,7 @@ KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened.iso PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC7_pre20180703.iso +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/latest-iso-symlinks/pentoo-amd64-hardened.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso @@ -2200,7 +2200,7 @@ handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; #handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL; +handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; From 47b3d1ab2f9fc242e572b8946147296decda4c6a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 10 Jul 2018 09:48:50 +0200 Subject: [PATCH 131/694] mod: pentoo boot options --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 53ea030..b823d14 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-08 +# v2018-07-10 # # known issues: # overlayfs can not get exported via nfs @@ -1018,7 +1018,7 @@ LABEL $PENTOO_X64 MENU LABEL Pentoo x64 KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- TEXT HELP Boot to Pentoo x64 Live User: pentoo @@ -1035,7 +1035,7 @@ LABEL $PENTOO_BETA_X64 MENU LABEL Pentoo Beta x64 KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox -- + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- TEXT HELP Boot to Pentoo Beta x64 Live User: pentoo From 358c50707d822f75194f5a075cae653f7f07af02 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 17 Jul 2018 23:44:35 +0200 Subject: [PATCH 132/694] updated url --- install-pxe-server_pass2.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b823d14..345e526 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-10 +# v2018-07-17 # # known issues: # overlayfs can not get exported via nfs @@ -162,11 +162,11 @@ LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmi UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= -DEBIAN_KVER=4.9.0-6 +DEBIAN_KVER=4.9.0-7 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.4.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.5.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.4.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.5.0-i386-lxde.iso PARROT_LITE_X64=parrot-lite-x64 PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-home-4.1_amd64.iso @@ -191,7 +191,8 @@ KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened.iso PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/latest-iso-symlinks/pentoo-amd64-hardened.iso +#PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/latest-iso-symlinks/pentoo-amd64-hardened.iso +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC7.2_p20180713.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso @@ -2189,7 +2190,7 @@ handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; #handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; #handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; #handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; From 26f63b8b203286a6d1f121fd9d361622d8c2ca84 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 18 Jul 2018 14:51:00 +0200 Subject: [PATCH 133/694] updated url --- install-pxe-server_pass2.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 345e526..fa45d82 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-17 +# v2018-07-18 # # known issues: # overlayfs can not get exported via nfs @@ -224,7 +224,7 @@ OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.6.2/tails-amd64-3.6.2.iso +TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.8/tails-amd64-3.8.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso @@ -2184,11 +2184,9 @@ handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; #handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; - handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; #handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; - #handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; #handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; From 775bc069bdb51e57a318666b69f7e30aafa63d96 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 20 Jul 2018 19:24:14 +0200 Subject: [PATCH 134/694] updated url --- install-pxe-server_pass2.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index fa45d82..205a0ea 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-18 +# v2018-07-20 # # known issues: # overlayfs can not get exported via nfs @@ -191,8 +191,7 @@ KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened.iso PENTOO_BETA_X64=pentoo-beta-x64 -#PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/latest-iso-symlinks/pentoo-amd64-hardened.iso -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/Pentoo_amd64_hardened/pentoo-amd64-hardened-2018.0_RC7.2_p20180713.iso +PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-beta-amd64-hardened-latest.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso From 6d4a34fc2fabb24ca7294d8efe3f6f9601d5f99f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 26 Jul 2018 23:52:48 +0200 Subject: [PATCH 135/694] updated url --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 205a0ea..5a8543b 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-20 +# v2018-07-26 # # known issues: # overlayfs can not get exported via nfs @@ -148,14 +148,14 @@ UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-amd UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-amd64.iso +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04.1/release/lubuntu-18.04.1-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04-desktop-i386.iso +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04.1/release/lubuntu-18.04.1-desktop-i386.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmic-desktop-amd64.iso From 231a32d2ac304d4f6dc6a1ff1956461040bb5e52 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 27 Jul 2018 21:30:44 +0200 Subject: [PATCH 136/694] _unhandle_iso --- install-pxe-server_pass2.sh | 64 ++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 5a8543b..92e5d0a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-26 +# v2018-07-27 # # known issues: # overlayfs can not get exported via nfs @@ -189,7 +189,7 @@ KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened.iso +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened-latest.iso PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-beta-amd64-hardened-latest.iso @@ -1533,6 +1533,32 @@ handle_iso() { } +########################################################################## +_unhandle_iso() { + if [ "_$1_" == "__" ]; then return 0; fi + + echo -e "\e[32m_unhandle_iso(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + ###################################################################### + local NAME=$1 + local FILE_URL=$NAME.url + local FILE_ISO=$NAME.iso + ###################################################################### + + sudo exportfs -uf *:$DST_NFS_ETH0/$NAME 2> /dev/null; + sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + + sudo rm -f $DST_ISO/$FILE_URL; + sudo rm -f $DST_ISO/$FILE_ISO; + + sudo rm -rf $DST_NFS_ETH0/$NAME; + + sudo sed /etc/fstab -i -e "/$NAME/d" + sudo sed /etc/exports -i -e "/$NAME/d" +} + + ########################################################################## handle_zip_img() { echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; @@ -2175,27 +2201,29 @@ handle_optional; ########################################################################## ## comment out those entries, ## you don't want to download, mount, export, install for PXE boot +## or +## "_unhandle_iso ...", +## if you want to delete the entire iso and its nfs export to free disk space ########################################################################## ########################################################################## handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -#handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -#handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; -#handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +_unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +_unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +_unhandle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; -#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -#handle_iso $DEFT_X64 $DEFT_X64_URL; -#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; +_unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +_unhandle_iso $DEFT_X64 $DEFT_X64_URL; +_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; @@ -2203,14 +2231,14 @@ handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; -#handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; +_unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL ,gid=root,uid=root,norock,mode=292; handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL ,gid=root,uid=root,norock,mode=292; -##handle_iso $CENTOS_X64 $CENTOS_X64_URL; -##handle_iso $TAILS_X64 $TAILS_X64_URL; +_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +_unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## handle_pxe; handle_ipxe; From 1f8cedff3d6787e97a17b831515255fa71bc8941 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 28 Jul 2018 08:13:16 +0200 Subject: [PATCH 137/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 92e5d0a..e903073 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-27 +# v2018-07-28 # # known issues: # overlayfs can not get exported via nfs @@ -1546,7 +1546,7 @@ _unhandle_iso() { local FILE_ISO=$NAME.iso ###################################################################### - sudo exportfs -uf *:$DST_NFS_ETH0/$NAME 2> /dev/null; + sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; sudo rm -f $DST_ISO/$FILE_URL; From b6136955e0dba6dc8e9cb3f2518d97485b87c2f3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 2 Aug 2018 17:49:03 +0200 Subject: [PATCH 138/694] updated url --- install-pxe-server_pass2.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e903073..1fcbf1f 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -24,7 +24,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-07-28 +# v2018-08-02 # # known issues: # overlayfs can not get exported via nfs @@ -144,18 +144,18 @@ WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-amd64.iso +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04.4/ubuntu-16.04.4-desktop-i386.iso +UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.04.1/ubuntu-18.04.1-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04.1/release/lubuntu-18.04.1-desktop-amd64.iso +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04.1/release/lubuntu-18.04.1-desktop-i386.iso +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmic-desktop-amd64.iso From 762ad88ec440f14cf15a179eba4aa7e76caf628d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 2 Aug 2018 22:32:21 +0200 Subject: [PATCH 139/694] updated boot options --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1fcbf1f..6a10818 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -685,14 +685,14 @@ EOF"; fi if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi" ]; then + && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz.efi - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live @@ -709,7 +709,7 @@ EOF"; LABEL $UBUNTU_LTS_X86 MENU LABEL Ubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x86 Live From dc66f4ee9c137cda86fcd73e4e6d41d923bc82e6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 3 Aug 2018 21:08:33 +0200 Subject: [PATCH 140/694] added devuan --- install-pxe-server_pass2.sh | 46 +++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 6a10818..3fd2c36 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -5,6 +5,7 @@ # ubuntu, http://releases.ubuntu.com/ # http://cdimage.ubuntu.com/daily-live/current/ # debian, https://cdimage.debian.org/debian-cd/ +# devuan, https://files.devuan.org/devuan_ascii/desktop-live/ # parrotsec, https://cdimage.parrotsec.org/parrot/iso/ # gnuradio, https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment # kali, https://www.kali.org/kali-linux-releases/ @@ -24,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-02 +# v2018-08-03 # # known issues: # overlayfs can not get exported via nfs @@ -168,6 +169,11 @@ DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybri DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.5.0-i386-lxde.iso +DEVUAN_X64=devuan-x64 +DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso +DEVUAN_X86=devuan-x86 +DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso + PARROT_LITE_X64=parrot-lite-x64 PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-home-4.1_amd64.iso PARROT_LITE_X86=parrot-lite-x86 @@ -873,6 +879,40 @@ LABEL $DEBIAN_X86 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $DEVUAN_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEVUAN_X64 + MENU LABEL Devuan x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Devuan x64 Live + User: devuan + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $DEVUAN_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEVUAN_X86 + MENU LABEL Devuan x86 + KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Devuan x86 Live + User: devuan + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; @@ -2215,8 +2255,10 @@ handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +_unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +_unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; +_unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; _unhandle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; From 6bf59830e70d0a4a7ff33d6a42deccc819c73ee1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 6 Aug 2018 21:18:10 +0200 Subject: [PATCH 141/694] fedora: using nfs instead of http --- install-pxe-server_pass2.sh | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3fd2c36..37d7d8c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-03 +# v2018-08-06 # # known issues: # overlayfs can not get exported via nfs @@ -1233,7 +1233,7 @@ LABEL $FEDORA_X64 MENU LABEL Fedora x64 KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -1254,12 +1254,9 @@ LABEL $OPENSUSE_X64 MENU LABEL openSUSE Leap x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image # APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- -# APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -## KERNEL memdisk -## APPEND iso -## INITRD $FILE_BASE$ISO/$OPENSUSE_X64.iso TEXT HELP Boot to openSUSE Leap Live User: liveuser @@ -1276,12 +1273,9 @@ LABEL $OPENSUSE_RESCUE_X64 MENU LABEL openSUSE Leap Rescue x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- # APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -# APPEND root=live:$IP_ETH0$NFS_ETH0:/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 -## KERNEL memdisk -## APPEND iso -## INITRD $FILE_BASE$ISO/$OPENSUSE_RESCUE_X64.iso TEXT HELP Boot to openSUSE Leap Rescue Live User: liveuser @@ -1302,7 +1296,7 @@ LABEL $CENTOS_X64 MENU LABEL CentOS x64 KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img - #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 From 722e27b0832516ba77e565b08e802a3e22452ed7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 7 Aug 2018 15:14:07 +0200 Subject: [PATCH 142/694] openSUSE: timestamping --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 37d7d8c..a8c0922 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-06 +# v2018-08-07 # # known issues: # overlayfs can not get exported via nfs @@ -2271,8 +2271,8 @@ _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; -handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL ,gid=root,uid=root,norock,mode=292; -handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL ,gid=root,uid=root,norock,mode=292; +handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; _unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## From 5d949cdfa6064baa8cb35bdf2df89c435ef86335 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 16 Aug 2018 21:19:11 +0200 Subject: [PATCH 143/694] comment out iPXE stuff --- install-pxe-server_pass2.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index a8c0922..4df8b9f 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-07 +# v2018-08-16 # # known issues: # overlayfs can not get exported via nfs @@ -489,30 +489,31 @@ dhcp-match=set:ARCH_0, option:client-arch, 0 dhcp-match=set:x86_UEFI, option:client-arch, 6 dhcp-match=set:x64_UEFI, option:client-arch, 7 dhcp-match=set:x64_UEFI, option:client-arch, 9 -dhcp-match=set:iPXE, option:user-class, iPXE +#dhcp-match=set:iPXE, option:user-class, iPXE # test if it is a RPi3 or a regular x86PC tag-if=set:ARM_RPI3, tag:ARCH_0, tag:UUID_RPI3 -tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3, tag:!iPXE -tag-if=set:x86_iPXE, tag:ARCH_0, tag:!UUID_RPI3, tag:iPXE -tag-if=set:UEFI_iPXE, tag:!ARCH_0, tag:!UUID_RPI3, tag:iPXE +tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3 +#tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3, tag:!iPXE +#tag-if=set:x86_iPXE, tag:ARCH_0, tag:!UUID_RPI3, tag:iPXE +#tag-if=set:UEFI_iPXE, tag:!ARCH_0, tag:!UUID_RPI3, tag:iPXE pxe-service=tag:ARM_RPI3,0, \"Raspberry Pi Boot \", bootcode.bin pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/lpxelinux -pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe -pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/syslinux.efi pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/syslinux.efi pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/syslinux.efi +#pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe +#pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi dhcp-boot=tag:ARM_RPI3, bootcode.bin dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 -#dhcp-boot=tag:x86_iPXE, http://my.web.server/real_boot_script.php -dhcp-boot=tag:x86_iPXE, undionly.kpxe -dhcp-boot=tag:UEFI_iPXE, ipxe.efi -dhcp-option=iPXE, 175, 8:1:1 dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/syslinux.efi dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/syslinux.efi +#dhcp-boot=tag:x86_iPXE, http://$(hostname)/real_boot_script.php +#dhcp-boot=tag:x86_iPXE, undionly.kpxe +#dhcp-boot=tag:UEFI_iPXE, ipxe.efi +#dhcp-option=iPXE, 175, 8:1:1 EOF"; sudo systemctl restart dnsmasq.service; } From e7c98f23ea2f8bf3261bfb6ce1ceeb97230b5aa0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 18 Aug 2018 08:06:15 +0200 Subject: [PATCH 144/694] added ubuntu studio --- install-pxe-server_pass2.sh | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4df8b9f..094686d 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-16 +# v2018-08-18 # # known issues: # overlayfs can not get exported via nfs @@ -152,6 +152,8 @@ UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso +UBUNTU_STUDIO_X64=ubuntu-studio-x64 +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.04/release/ubuntustudio-18.04-dvd-amd64.iso LUBUNTU_X64=lubuntu-x64 LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso @@ -195,9 +197,11 @@ KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened-latest.iso +#PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened-latest.iso +PENTOO_X64_URL=https://www.pentoo.ch/isos/Pentoo_amd64_hardened/pentoo-full-amd64-hardened-2018.0_RC8.iso PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-beta-amd64-hardened-latest.iso +#PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-beta-amd64-hardened-latest.iso +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/Pentoo_amd64_hardened/pentoo-full-amd64-hardened-2018.0_RC7.2_p20180730.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso @@ -216,9 +220,9 @@ RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.5-38/clonezilla-live-2.5.5-38-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/28/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28-1.1.iso @@ -776,6 +780,23 @@ LABEL $UBUNTU_DAILY_X64 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_STUDIO_X64 + MENU LABEL Ubuntu Studio x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu Studio x64 Live + User: ubuntu + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then @@ -2246,6 +2267,7 @@ _unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; +handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; From e57d297f97cb8fdf31606696188422d295706f5b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Aug 2018 09:15:40 +0200 Subject: [PATCH 145/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 094686d..667d094 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-18 +# v2018-08-26 # # known issues: # overlayfs can not get exported via nfs @@ -194,7 +194,7 @@ DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.2-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.3-amd64.iso PENTOO_X64=pentoo-x64 #PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened-latest.iso From e7dc372890e0230bbf1d40c2f55fe49532a0b6c6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 29 Aug 2018 20:45:17 +0200 Subject: [PATCH 146/694] updated url --- install-pxe-server_pass2.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 667d094..03649bf 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-26 +# v2018-08-28 # # known issues: # overlayfs can not get exported via nfs @@ -197,11 +197,9 @@ KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.3-amd64.iso PENTOO_X64=pentoo-x64 -#PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-amd64-hardened-latest.iso -PENTOO_X64_URL=https://www.pentoo.ch/isos/Pentoo_amd64_hardened/pentoo-full-amd64-hardened-2018.0_RC8.iso +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso PENTOO_BETA_X64=pentoo-beta-x64 -#PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-beta-amd64-hardened-latest.iso -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/Beta/Pentoo_amd64_hardened/pentoo-full-amd64-hardened-2018.0_RC7.2_p20180730.iso +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso From 3a2486d9d166e5cb0a02d491e650e7d3f15ca43b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 31 Aug 2018 14:21:32 +0200 Subject: [PATCH 147/694] updated url --- install-pxe-server_pass2.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 03649bf..e2c7b3f 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-28 +# v2018-08-31 # # known issues: # overlayfs can not get exported via nfs @@ -177,13 +177,13 @@ DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-home-4.1_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-home-4.2_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-home-4.1_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-home-4.2_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-security-4.1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-security-4.2_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.1/Parrot-security-4.1_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-security-4.2_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From 28c9d3facf842962c34e76d471142cdcb52d8003 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 5 Sep 2018 07:56:49 +0200 Subject: [PATCH 148/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e2c7b3f..4013a38 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-08-31 +# v2018-09-05 # # known issues: # overlayfs can not get exported via nfs @@ -202,7 +202,7 @@ PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.2.2/systemrescuecd-x86-5.2.2.iso +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.0/systemrescuecd-x86-5.3.0.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= From 8c75570145f2fd688db48137ce18a0520cd4cb20 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 6 Sep 2018 09:46:40 +0200 Subject: [PATCH 149/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4013a38..329bdf8 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -25,7 +25,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-09-05 +# v2018-09-06 # # known issues: # overlayfs can not get exported via nfs @@ -191,7 +191,7 @@ GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura DEFT_X64=deft-x64 DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso DEFTZ_X64=deftz-x64 -DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2017-1.iso +DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.3-amd64.iso From 38e3c31e96079ccdcc9a0dd0995c5699f8ab2ec2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 7 Sep 2018 10:03:11 +0200 Subject: [PATCH 150/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 50 +++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 329bdf8..66e73c7 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1,25 +1,37 @@ #!/bin/bash ########################################################################## -# winpe, https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx -# ubuntu, http://releases.ubuntu.com/ -# http://cdimage.ubuntu.com/daily-live/current/ -# debian, https://cdimage.debian.org/debian-cd/ -# devuan, https://files.devuan.org/devuan_ascii/desktop-live/ -# parrotsec, https://cdimage.parrotsec.org/parrot/iso/ -# gnuradio, https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment -# kali, https://www.kali.org/kali-linux-releases/ -# deft, http://www.deftlinux.net/ -# pentoo, http://www.pentoo.ch/download/ -# sysrescue, https://sourceforge.net/projects/systemrescuecd/ (https://www.sysresccd.org/Download/) -# clonezilla http://clonezilla.org/ -# tinycore, http://tinycorelinux.net/downloads.html -# rpdesktop, https://downloads.raspberrypi.org/rpd_x86/images/ -# fedora, https://getfedora.org/en/workstation/download/ -# nonpae, ftp://ftp.heise.de/pub/ct/projekte/ubuntu-nonpae/ubuntu-12.04.4-nonpae.iso -# tails, https://tails.boum.org/install/download/openpgp/index.en.html -# centos, https://www.centos.org/download/ -# opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ +# winpe https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx +# ubuntu http://releases.ubuntu.com/ +# http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ +# http://cdimage.ubuntu.com/daily-live/ +# ubuntu studio http://cdimage.ubuntu.com/ubuntustudio/releases/18.04/release/ +# http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ +# lubuntu http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/ +# http://cdimage.ubuntu.com/lubuntu/daily-live/pending/ +# debian https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ +# https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ +# devuan https://files.devuan.org/devuan_ascii/desktop-live/ +# gnuradio https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment +# parrotsec https://cdimage.parrotsec.org/parrot/iso/ +# kali http://cdimage.kali.org/kali-images/current/ +# http://cdimage.kali.org/kali-images/kali-weekly/ +# pentoo https://www.pentoo.ch/isos/Pentoo_amd64_hardened/ +# https://www.pentoo.ch/isos/Beta/Pentoo_Full_amd64_hardened/ +# deft http://www.deftlinux.net/ +# clonezilla https://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/ +# system rescue cd https://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/ +# http://beta.system-rescue-cd.org/ +# tiny core http://tinycorelinux.net/downloads.html +# rpdesktop https://downloads.raspberrypi.org/rpd_x86/images/ +# fedora https://getfedora.org/en/workstation/download/ +# gentoo https://www.gentoo.org/downloads/ +# http://distfiles.gentoo.org/releases/amd64/ +# http://distfiles.gentoo.org/releases/x86/ +# opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ +# centos https://www.centos.org/download/ +# tail https://tails.boum.org/install/download/ +# knoppix http://www.knopper.net/knoppix-mirrors/index-en.html # # rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ From e0928384dfe142522cd45513324ba27901992007 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 9 Sep 2018 16:47:16 +0200 Subject: [PATCH 151/694] updated url --- install-pxe-server_pass2.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 66e73c7..1eec5dd 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-09-06 +# v2018-09-09 # # known issues: # overlayfs can not get exported via nfs @@ -189,13 +189,13 @@ DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-home-4.2_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-home-4.2.1_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-home-4.2_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-home-4.2.1_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-security-4.2_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-security-4.2.1_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2/Parrot-security-4.2_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-security-4.2.1_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso @@ -243,7 +243,7 @@ OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.8/tails-amd64-3.8.iso +TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.9/tails-amd64-3.9.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso From 45699a9810293ed89b22464bd9d53d88f4913b39 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 11 Sep 2018 14:47:39 +0200 Subject: [PATCH 152/694] updated url --- install-pxe-server_pass2.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1eec5dd..bd07da5 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-09-09 +# v2018-09-11 # # known issues: # overlayfs can not get exported via nfs @@ -189,13 +189,13 @@ DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-home-4.2.1_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-home-4.2.2_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-home-4.2.1_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-home-4.2.2_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-security-4.2.1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-security-4.2.2_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.1/Parrot-security-4.2.1_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-security-4.2.2_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From 1ef94f214751fe98a99bb5c1dddccdce7bebaf0c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 18 Sep 2018 20:30:02 +0200 Subject: [PATCH 153/694] updated url --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index bd07da5..f91c7fb 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-09-11 +# v2018-09-18 # # known issues: # overlayfs can not get exported via nfs @@ -214,7 +214,7 @@ PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.0/systemrescuecd-x86-5.3.0.iso +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.1/systemrescuecd-x86-5.3.1.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= From c1cbae32f025e1810a04d3025fb652221d09a69a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Sep 2018 09:23:12 +0200 Subject: [PATCH 154/694] updated url --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index f91c7fb..39d9228 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -206,7 +206,7 @@ DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.3-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.3a-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso From 59d6e84623978ba1508877b7aea12ca845839ea1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Oct 2018 19:47:48 +0200 Subject: [PATCH 155/694] updated url (ubuntu / lubuntu) --- install-pxe-server_pass2.sh | 56 +++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 39d9228..1e3039a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-09-18 +# v2018-10-18 # # known issues: # overlayfs can not get exported via nfs @@ -157,20 +157,24 @@ WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-amd64.iso +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.04/release/ubuntustudio-18.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso +LUBUNTU_LTS_X64=lubuntu-lts-x64 +LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso +LUBUNTU_LTS_X86=lubuntu-lts-x86 +LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmic-desktop-amd64.iso @@ -713,8 +717,8 @@ EOF"; LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -808,6 +812,40 @@ EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_LTS_X64 + MENU LABEL lubuntu LTS x64 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu LTS x64 Live + User: lubuntu + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_LTS_X86 + MENU LABEL lubuntu LTS x86 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu LTS x86 Live + User: lubuntu + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_X64\e[0m"; @@ -2278,6 +2316,8 @@ _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; +handle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; +_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; From 49c07ad1ed3b95fbbbc312636598f12a26bedec9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Oct 2018 21:22:47 +0200 Subject: [PATCH 156/694] fix initrd of ubuntu/lubuntu 18.10 --- install-pxe-server_pass2.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1e3039a..7f2f3cc 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -751,7 +751,7 @@ EOF"; LABEL $UBUNTU_X64 MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live @@ -802,7 +802,7 @@ EOF"; LABEL $UBUNTU_STUDIO_X64 MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Live @@ -854,7 +854,7 @@ EOF"; LABEL $LUBUNTU_X64 MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live @@ -871,7 +871,7 @@ EOF"; LABEL $LUBUNTU_X86 MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live @@ -2311,15 +2311,15 @@ handle_optional; ########################################################################## ########################################################################## handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; handle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; -_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; +handle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; _unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; From c814c54ececc1d55ef6af699e42713f0997a0020 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Oct 2018 21:57:04 +0200 Subject: [PATCH 157/694] fix initrd of lubuntu LTS 18.04 x86 --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 7f2f3cc..3f420e7 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -837,7 +837,7 @@ EOF"; LABEL $LUBUNTU_LTS_X86 MENU LABEL lubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu LTS x86 Live From e0b8dd35131f753d579574a7a73aca0ac8e49d2f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 25 Oct 2018 23:21:36 +0200 Subject: [PATCH 158/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3f420e7..49554f4 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2310,16 +2310,16 @@ handle_optional; ## if you want to delete the entire iso and its nfs export to free disk space ########################################################################## ########################################################################## -handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +#handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; -handle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; -handle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; +_unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; +_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -handle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; _unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; @@ -2337,15 +2337,16 @@ handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; -handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; +#handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; +#handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +_unhandle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +_unhandle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; -handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; _unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## From b8a9be16a0b365c8710a18802468249fe4057a65 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 30 Oct 2018 19:44:13 +0100 Subject: [PATCH 159/694] updares url (fedora) --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 49554f4..79540ed 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-10-18 +# v2018-10-30 # # known issues: # overlayfs can not get exported via nfs @@ -239,7 +239,7 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/28/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-28-1.1.iso +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso From 6a2249e1f62f98df5f9a0ea69ed6d16d8d5c8b75 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 1 Nov 2018 21:47:39 +0100 Subject: [PATCH 160/694] updated url ((l)ubuntu disco) --- install-pxe-server_pass2.sh | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 79540ed..1234781 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-10-30 +# v2018-11-01 # # known issues: # overlayfs can not get exported via nfs @@ -163,9 +163,11 @@ UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386. UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/cosmic-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso UBUNTU_STUDIO_X64=ubuntu-studio-x64 UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso LUBUNTU_LTS_X64=lubuntu-lts-x64 LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso @@ -176,7 +178,7 @@ LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/cosmic-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= @@ -811,6 +813,23 @@ LABEL $UBUNTU_STUDIO_X64 EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_STUDIO_DAILY_X64 + MENU LABEL Ubuntu Studio x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu Studio x64 Daily-Live + User: ubuntu + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then From 42851f987880938115f10baa06aa03d45d052f3e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 1 Nov 2018 21:50:52 +0100 Subject: [PATCH 161/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 1234781..b31f586 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2335,6 +2335,7 @@ _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; +handle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; From cacdecf47667ff8969a05cb3d42b8947acccef64 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 1 Nov 2018 22:49:31 +0100 Subject: [PATCH 162/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b31f586..3584d2b 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2335,12 +2335,12 @@ _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; -handle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; +_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -handle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; +_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; _unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; From e6ec74747fe6a54f4be06898c3eeb9a3280c2b7c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 2 Nov 2018 22:01:08 +0100 Subject: [PATCH 163/694] updated url (parrot & kali) --- install-pxe-server_pass2.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3584d2b..9fe18b7 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-11-01 +# v2018-11-02 # # known issues: # overlayfs can not get exported via nfs @@ -195,13 +195,13 @@ DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-home-4.2.2_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-home-4.3_amd64.iso PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-home-4.2.2_i386.iso +PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-home-4.3_i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-security-4.2.2_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-security-4.3_amd64.iso PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.2.2/Parrot-security-4.2.2_i386.iso +PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-security-4.3_i386.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso @@ -212,7 +212,7 @@ DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.3a-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.4-amd64.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso From 024034239035a5166063a17de3f1d250a205a0cc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 2 Nov 2018 23:04:42 +0100 Subject: [PATCH 164/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9fe18b7..9df8a37 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -249,7 +249,7 @@ OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.kernel.org/tails/stable/tails-amd64-3.9/tails-amd64-3.9.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.10.1/tails-amd64-3.10.1.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso From cb4bba4c82f95ed51d2d87958e99426c8d4736e1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 13 Nov 2018 19:16:52 +0100 Subject: [PATCH 165/694] updated url (debian 9.6.0) --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9df8a37..58d212f 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-11-02 +# v2018-11-12 # # known issues: # overlayfs can not get exported via nfs @@ -183,11 +183,11 @@ LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= -DEBIAN_KVER=4.9.0-7 +DEBIAN_KVER=4.9.0-8 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.5.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.6.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.5.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.6.0-i386-lxde.iso DEVUAN_X64=devuan-x64 DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso From 3f18a81e968258740ec6508f12bf1287d45aa2b4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 17 Nov 2018 06:28:38 +0100 Subject: [PATCH 166/694] updated url (system rescue) --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 58d212f..f7f702c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-11-12 +# v2018-11-17 # # known issues: # overlayfs can not get exported via nfs @@ -220,7 +220,7 @@ PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.1/systemrescuecd-x86-5.3.1.iso +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.2/systemrescuecd-x86-5.3.2.iso DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= From 01e31cded255a1a75dd89896b54e3e59f779d9ad Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 17 Nov 2018 18:09:04 +0100 Subject: [PATCH 167/694] added raspbian basic image --- install-pxe-server_pass2.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index f7f702c..8218cac 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -270,7 +270,9 @@ PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_LITE=rpi-raspbian-lite RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest RPD_FULL=rpi-raspbian-full -RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_latest +RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest +RPD_BASIC=rpi-raspbian-basic +RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest @@ -2382,6 +2384,7 @@ handle_ipxe; ########################################################################## #handle_zip_img $PI_CORE $PI_CORE_URL; #handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; +#handle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; #handle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; ########################################################################## ########################################################################## @@ -2391,6 +2394,7 @@ handle_ipxe; ########################################################################## #handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; #handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +#handle_rpi_pxe $RPD_BASIC $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; #handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; From 69c1e513b8a8172c7017a9dd7fdd9f03b235d168 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 18 Nov 2018 21:11:27 +0100 Subject: [PATCH 168/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8218cac..3dc1d25 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2361,8 +2361,8 @@ handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; #handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; #handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -_unhandle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -_unhandle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; From e616cc259bd9514e7822264e02b34b4124269566 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 24 Nov 2018 15:46:57 +0100 Subject: [PATCH 169/694] updated url (parrot 4.4) --- install-pxe-server_pass2.sh | 46 +++---------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3dc1d25..65ce171 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -37,7 +37,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-11-17 +# v2018-11-24 # # known issues: # overlayfs can not get exported via nfs @@ -195,13 +195,9 @@ DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-home-4.3_amd64.iso -PARROT_LITE_X86=parrot-lite-x86 -PARROT_LITE_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-home-4.3_i386.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-home-4.4_amd64.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-security-4.3_amd64.iso -PARROT_FULL_X86=parrot-full-x86 -PARROT_FULL_X86_URL=https://cdimage.parrotsec.org/parrot/iso/4.3/Parrot-security-4.3_i386.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-security-4.4_amd64.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso @@ -1021,23 +1017,6 @@ LABEL $PARROT_LITE_X64 EOF"; fi - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz" ]; then - echo -e "\e[36m add $PARROT_LITE_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PARROT_LITE_X86 - MENU LABEL Parrot Lite x86 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Parrot Lite x86 Live (Home/Workstation) - User: user, Password: live - ENDTEXT -EOF"; - fi - if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; @@ -1055,23 +1034,6 @@ LABEL $PARROT_FULL_X64 EOF"; fi - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz" ]; then - echo -e "\e[36m add $PARROT_FULL_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PARROT_FULL_X86 - MENU LABEL Parrot Full x86 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Parrot Full x86 Live (Security) - User: user, Password: live - ENDTEXT -EOF"; - fi - if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then echo -e "\e[36m add $GNURADIO_X64\e[0m"; @@ -2349,9 +2311,7 @@ _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -_unhandle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -_unhandle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; _unhandle_iso $DEFT_X64 $DEFT_X64_URL; _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; From e5898f8564099754c4ee1aad1ad78de73f700885 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 2 Dec 2018 11:28:21 +0100 Subject: [PATCH 170/694] added arch netboot x86x64 --- install-pxe-server_pass2.sh | 176 ++++++++++++++++++++++++++++++------ 1 file changed, 149 insertions(+), 27 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 65ce171..8308a8c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2,6 +2,8 @@ ########################################################################## # winpe https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx +# arch https://www.archlinux.org/download/ +# fedora https://getfedora.org/en/workstation/download/ # ubuntu http://releases.ubuntu.com/ # http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ # http://cdimage.ubuntu.com/daily-live/ @@ -24,7 +26,6 @@ # http://beta.system-rescue-cd.org/ # tiny core http://tinycorelinux.net/downloads.html # rpdesktop https://downloads.raspberrypi.org/rpd_x86/images/ -# fedora https://getfedora.org/en/workstation/download/ # gentoo https://www.gentoo.org/downloads/ # http://distfiles.gentoo.org/releases/amd64/ # http://distfiles.gentoo.org/releases/x86/ @@ -37,7 +38,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-11-24 +# v2018-12-02 # # known issues: # overlayfs can not get exported via nfs @@ -156,6 +157,12 @@ sudo mount $SRC_MOUNT 2> /dev/null; WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= +ARCH_NETBOOT_X86X64=arch-netboot-x86x64 +ARCH_NETBOOT_X86X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn + +FEDORA_X64=fedora-x64 +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso + UBUNTU_LTS_X64=ubuntu-lts-x64 UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 @@ -236,9 +243,6 @@ CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso -FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso - OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso OPENSUSE_RESCUE_X64=opensuse-rescue-x64 @@ -709,6 +713,43 @@ LABEL $WIN_PE_X86-iso EOF"; fi + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then + echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +# INFO: https://www.archlinux.org/releng/netboot/ +LABEL $ARCH_NETBOOT_X86X64 + MENU LABEL Arch netboot x86 x64 +# KERNEL https://www.archlinux.org/static/netboot/ipxe.lkrn + KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel + TEXT HELP + Boot to Arch netboot x86 x64 + User: root + ENDTEXT +EOF"; + fi + + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then + echo -e "\e[36m add $FEDORA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel +## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc +## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html +LABEL $FEDORA_X64 + MENU LABEL Fedora x64 + KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + TEXT HELP + Boot to Fedora Workstation Live + User: liveuser + ENDTEXT +EOF"; + fi + if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; @@ -1274,26 +1315,6 @@ LABEL $CLONEZILLA_X86 EOF"; fi - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then - echo -e "\e[36m add $FEDORA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc -## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html -LABEL $FEDORA_X64 - MENU LABEL Fedora x64 - KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - TEXT HELP - Boot to Fedora Workstation Live - User: liveuser - ENDTEXT -EOF"; - fi - if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then echo -e "\e[36m add $OPENSUSE_X64\e[0m"; @@ -1326,8 +1347,8 @@ LABEL $OPENSUSE_RESCUE_X64 MENU LABEL openSUSE Leap Rescue x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- # APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to openSUSE Leap Rescue Live @@ -1646,6 +1667,105 @@ _unhandle_iso() { } +########################################################################## +handle_kernel() { + echo -e "\e[32mhandle_kernel(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + # $2 : download url + # $3 : optional/additional mount flags + ###################################################################### + local NAME=$1 + local URL=$2 + local FILE_URL=$NAME.url + local FILE_KERNEL=$NAME.kernel + local DST_ORIGINAL=/srv/tmp/original/$NAME + ###################################################################### + + if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi + + sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; + + if [ "$URL" == "" ]; then + if ! [ -f "$DST_ISO/$FILE_KERNEL" ] \ + && [ -f "$SRC_ISO/$FILE_KERNEL" ] \ + && [ -f "$SRC_ISO/$FILE_URL" ]; \ + then + echo -e "\e[36m copy kernel from usb-stick\e[0m"; + sudo rm -f $DST_ISO/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_KERNEL $DST_ISO; + sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + fi + else + if [ -f "$SRC_ISO/$FILE_KERNEL" ] \ + && [ -f "$SRC_ISO/$FILE_URL" ] \ + && grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ + && ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ + then + echo -e "\e[36m copy kernel from usb-stick\e[0m"; + sudo rm -f $DST_ISO/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_KERNEL $DST_ISO; + sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + fi + + if ! [ -f "$DST_ISO/$FILE_KERNEL" ] \ + || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_ISO/$FILE_KERNEL $URL); \ + then + echo -e "\e[36m download kernel image\e[0m"; + sudo rm -f $DST_ISO/$FILE_URL; + sudo rm -f $DST_ISO/$FILE_KERNEL; + sudo wget -O $DST_ISO/$FILE_KERNEL $URL; + + sudo sh -c "echo '$URL' > $DST_ISO/$FILE_URL"; + sudo touch -r $DST_ISO/$FILE_KERNEL $DST_ISO/$FILE_URL; + fi + fi + + if [ -f "$DST_ISO/$FILE_KERNEL" ]; then + if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then + echo -e "\e[36m create nfs folder\e[0m"; + sudo mkdir -p $DST_NFS_ETH0/$NAME; + fi + + sudo cp $DST_ISO/$FILE_KERNEL $DST_NFS_ETH0/$NAME/kernel + + if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then + echo -e "\e[36m add nfs folder to exports\e[0m"; + sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + fi + + sudo exportfs *:$DST_NFS_ETH0/$NAME; + else + sudo sed /etc/exports -i -e "/$NAME/d" + fi +} + + +########################################################################## +_unhandle_kernel() { + if [ "_$1_" == "__" ]; then return 0; fi + + echo -e "\e[32m_unhandle_kernel(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + ###################################################################### + local NAME=$1 + local FILE_URL=$NAME.url + local FILE_KERNEL=$NAME.kernel + ###################################################################### + + sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; + + sudo rm -f $DST_ISO/$FILE_URL; + sudo rm -f $DST_ISO/$FILE_KERNEL; + + sudo rm -rf $DST_NFS_ETH0/$NAME; + + sudo sed /etc/exports -i -e "/$NAME/d" +} + + ########################################################################## handle_zip_img() { echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; @@ -2332,6 +2452,8 @@ _unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gi _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; _unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## +handle_kernel $ARCH_NETBOOT_X86X64 $ARCH_NETBOOT_X86X64_URL timestamping; +########################################################################## handle_pxe; handle_ipxe; From 40a14c3c911ee40d56909296cc5b4434436736d7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Dec 2018 18:16:05 +0100 Subject: [PATCH 171/694] added begin/end comments --- install-pxe-server_pass2.sh | 84 ++++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8308a8c..22fe39b 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -683,6 +683,7 @@ LABEL poweroff EOF"; fi +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; @@ -696,7 +697,9 @@ LABEL $WIN_PE_X86-pxe ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; @@ -712,7 +715,9 @@ LABEL $WIN_PE_X86-iso ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; @@ -729,7 +734,9 @@ LABEL $ARCH_NETBOOT_X86X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then echo -e "\e[36m add $FEDORA_X64\e[0m"; @@ -749,7 +756,9 @@ LABEL $FEDORA_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; @@ -766,7 +775,9 @@ LABEL $UBUNTU_LTS_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; @@ -783,7 +794,9 @@ LABEL $UBUNTU_LTS_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_X64\e[0m"; @@ -800,7 +813,9 @@ LABEL $UBUNTU_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_X86\e[0m"; @@ -817,7 +832,9 @@ LABEL $UBUNTU_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; @@ -834,7 +851,9 @@ LABEL $UBUNTU_DAILY_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; @@ -851,7 +870,9 @@ LABEL $UBUNTU_STUDIO_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; @@ -868,8 +889,9 @@ LABEL $UBUNTU_STUDIO_DAILY_X64 ENDTEXT EOF"; fi +#=========== END =========== - +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; @@ -886,7 +908,9 @@ LABEL $LUBUNTU_LTS_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; @@ -903,7 +927,9 @@ LABEL $LUBUNTU_LTS_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_X64\e[0m"; @@ -920,7 +946,9 @@ LABEL $LUBUNTU_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_X86\e[0m"; @@ -937,7 +965,9 @@ LABEL $LUBUNTU_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; @@ -954,8 +984,9 @@ LABEL $LUBUNTU_DAILY_X64 ENDTEXT EOF"; fi +#=========== END =========== - +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; @@ -972,7 +1003,9 @@ LABEL $UBUNTU_NONPAE ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then echo -e "\e[36m add $DEBIAN_X64\e[0m"; @@ -989,7 +1022,9 @@ LABEL $DEBIAN_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; @@ -1006,7 +1041,9 @@ LABEL $DEBIAN_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then echo -e "\e[36m add $DEVUAN_X64\e[0m"; @@ -1023,7 +1060,9 @@ LABEL $DEVUAN_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then echo -e "\e[36m add $DEVUAN_X86\e[0m"; @@ -1040,7 +1079,9 @@ LABEL $DEVUAN_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; @@ -1057,7 +1098,9 @@ LABEL $PARROT_LITE_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; @@ -1074,7 +1117,9 @@ LABEL $PARROT_FULL_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then echo -e "\e[36m add $GNURADIO_X64\e[0m"; @@ -1091,7 +1136,9 @@ LABEL $GNURADIO_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then echo -e "\e[36m add $KALI_X64\e[0m"; @@ -1108,7 +1155,9 @@ LABEL $KALI_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $DEFT_X64\e[0m"; @@ -1125,7 +1174,9 @@ LABEL $DEFT_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $DEFTZ_X64\e[0m"; @@ -1142,7 +1193,9 @@ LABEL $DEFTZ_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then echo -e "\e[36m add $PENTOO_X64\e[0m"; @@ -1159,7 +1212,9 @@ LABEL $PENTOO_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; @@ -1176,7 +1231,9 @@ LABEL $PENTOO_BETA_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; @@ -1193,7 +1250,9 @@ LABEL $SYSTEMRESCUE_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $DESINFECT_X86\e[0m"; @@ -1210,7 +1269,9 @@ LABEL $DESINFECT_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $DESINFECT_X64\e[0m"; @@ -1227,7 +1288,9 @@ LABEL $DESINFECT_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64" ]; then echo -e "\e[36m add $TINYCORE_x64\e[0m"; @@ -1245,7 +1308,9 @@ LABEL $TINYCORE_x64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_x86/boot/vmlinuz" ]; then echo -e "\e[36m add $TINYCORE_x86\e[0m"; @@ -1263,7 +1328,9 @@ LABEL $TINYCORE_x86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; @@ -1280,7 +1347,9 @@ LABEL $RPDESKTOP_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; @@ -1297,7 +1366,9 @@ LABEL $CLONEZILLA_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; @@ -1314,7 +1385,9 @@ LABEL $CLONEZILLA_X86 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then echo -e "\e[36m add $OPENSUSE_X64\e[0m"; @@ -1337,7 +1410,9 @@ LABEL $OPENSUSE_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; @@ -1356,7 +1431,9 @@ LABEL $OPENSUSE_RESCUE_X64 ENDTEXT EOF"; fi +#=========== END =========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then echo -e "\e[36m add $CENTOS_X64\e[0m"; @@ -1392,7 +1469,9 @@ LABEL $CENTOS_X64 ENDTEXT EOF"; fi +#========== END ========== +#========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then echo -e "\e[36m add $TAILS_X64\e[0m"; @@ -1411,6 +1490,7 @@ LABEL $TAILS_X64 ENDTEXT EOF"; fi +#========== END ========== } From 6e3dae9d7f0e317e8ef257512f3c0528dba31cc1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Dec 2018 18:36:23 +0100 Subject: [PATCH 172/694] dieabled tftp-lowercase --- install-pxe-server_pass2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 22fe39b..969173d 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -470,7 +470,7 @@ bogus-priv # TFTP_ETH0 (enabled) enable-tftp -tftp-lowercase +#tftp-lowercase tftp-root=$DST_TFTP_ETH0/, $INTERFACE_ETH0 dhcp-option=$INTERFACE_ETH0, option:tftp-server, 0.0.0.0 @@ -1504,7 +1504,7 @@ handle_pxe() { echo -e "\e[36m copy win-pe stuff\e[0m"; if ! [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxeboot.n12" ] && [ -f "$SRC_TFTP_ETH0/pxeboot.n12" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/pxeboot.n12 $DST_TFTP_ETH0/$DST_PXE_BIOS/; fi if ! [ -f "$DST_TFTP_ETH0/bootmgr.exe" ] && [ -f "$SRC_TFTP_ETH0/bootmgr.exe" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/bootmgr.exe $DST_TFTP_ETH0/; fi - if ! [ -d "$DST_TFTP_ETH0/boot" ] && [ -d "$SRC_TFTP_ETH0/boot" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/boot $DST_TFTP_ETH0/; fi + if ! [ -d "$DST_TFTP_ETH0/Boot" ] && [ -d "$SRC_TFTP_ETH0/Boot" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/Boot $DST_TFTP_ETH0/; fi fi [ -h "$DST_TFTP_ETH0/sources" ] || sudo ln -s $DST_NFS_ETH0/$WIN_PE_X86/sources/ $DST_TFTP_ETH0/sources; #for SRC in `find /srv/tftp/Boot -depth` From aeeb4b5a83e8042d6af6dacc82b73909e202b72a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Dec 2018 18:43:39 +0100 Subject: [PATCH 173/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 969173d..9f65044 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -38,7 +38,7 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-12-02 +# v2018-12-19 # # known issues: # overlayfs can not get exported via nfs @@ -2572,12 +2572,12 @@ handle_ipxe; ########################################################################## if [ -d "$SRC_ISO" ]; then echo -e "\e[32mbackup new iso images to usb-stick\e[0m"; - sudo rsync -xa --info=progress2 $DST_ISO/*.iso $DST_ISO/*.url $SRC_ISO/ + sudo rsync -xa --info=progress2 $DST_ISO/*.iso $DST_ISO/*.url $SRC_ISO/ 2>/dev/null fi ###################################################################### if [ -d "$SRC_IMG" ]; then echo -e "\e[32mbackup new images to usb-stick\e[0m"; - sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ + sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ 2>/dev/null fi ########################################################################## sync From 0c51c602e5ddce810fd6de3a3e425e13c1b3582e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Dec 2018 20:01:05 +0100 Subject: [PATCH 174/694] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e4e5ed..205d06f 100644 --- a/README.md +++ b/README.md @@ -66,11 +66,11 @@ optional structure for win-pe pxe boot └── backup └── tftp - ├── boot - └── efi + ├── Boot + └── EFI -mkdir -p /backup/tftp/boot -mkdir -p /backup/tftp/efi +mkdir -p /backup/tftp/Boot +mkdir -p /backup/tftp/EFI ``` replace **** with the path, where you mounted your USB stick. From 9f799e300b9eae9dc907798837c2afbe5d14e719 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Dec 2018 23:05:41 +0100 Subject: [PATCH 175/694] limit traffic of eth1 --- install-pxe-server_pass2.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9f65044..18c095a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2415,6 +2415,23 @@ EOF"; sudo dpkg-reconfigure --unseen-only iptables-persistent } + ###################################################################### + ## network nat limit access of eth1 + sudo iptables -t nat --list | grep -q DROP 2> /dev/null || { + echo -e "\e[36m setup iptables for limiting traffic of $INTERFACE_ETH1\e[0m"; + sudo iptables -A FORWARD ! -i $INTERFACE_ETH0 -d 8.8.8.8 -j DROP + sudo iptables -A FORWARD ! -i $INTERFACE_ETH0 -d 8.8.4.4 -j DROP + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 53 -j REDIRECT --to-port 53 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 53 -j REDIRECT --to-port 53 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 135 -j REDIRECT --to-port 135 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 135 -j REDIRECT --to-port 135 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 853 -j REDIRECT --to-port 853 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 853 -j REDIRECT --to-port 853 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 5353 -j REDIRECT --to-port 5353 + sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 5353 -j REDIRECT --to-port 5353 + sudo dpkg-reconfigure --unseen-only iptables-persistent + } + ###################################################################### ## chrony From fa36d0c1c267fb6a9131565ae66f30c21d6f002c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 Dec 2018 23:40:58 +0100 Subject: [PATCH 176/694] fixed filter condition --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 18c095a..f9a56b3 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -2417,7 +2417,7 @@ EOF"; ###################################################################### ## network nat limit access of eth1 - sudo iptables -t nat --list | grep -q DROP 2> /dev/null || { + sudo iptables -t filter --list | grep -q DROP 2> /dev/null || { echo -e "\e[36m setup iptables for limiting traffic of $INTERFACE_ETH1\e[0m"; sudo iptables -A FORWARD ! -i $INTERFACE_ETH0 -d 8.8.8.8 -j DROP sudo iptables -A FORWARD ! -i $INTERFACE_ETH0 -d 8.8.4.4 -j DROP From b40163db380babd95f2146870d123a1f352e30ff Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 23 Dec 2018 09:01:49 +0100 Subject: [PATCH 177/694] added free kaspersky rescue disk --- install-pxe-server_pass2.sh | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index f9a56b3..ce7b6dc 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -33,12 +33,13 @@ # centos https://www.centos.org/download/ # tail https://tails.boum.org/install/download/ # knoppix http://www.knopper.net/knoppix-mirrors/index-en.html +# kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk # # rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-12-19 +# v2018-12-23 # # known issues: # overlayfs can not get exported via nfs @@ -230,6 +231,9 @@ DESINFECT_X86_URL= DESINFECT_X64=desinfect-x64 DESINFECT_X64_URL= +KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 +KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso + TINYCORE_x64=tinycore-x64 TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso TINYCORE_x86=tinycore-x86 @@ -249,7 +253,7 @@ OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.10.1/tails-amd64-3.10.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.11/tails-amd64-3.11.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso @@ -1290,6 +1294,25 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then + echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; + [ -f "$DST_NFS_ETH0/kaspersky-rescue-x86-initrd.xz" ] || ( sudo wget -O /tmp/tmp.zip https://github.com/beta-tester/RPi-PXE-Server/files/2705800/kaspersky-rescue-x86-initrd.zip && sudo unzip /tmp/tmp.zip -d $DST_NFS_ETH0/ && sudo rm /tmp/tmp.zip ); + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $KASPERSKY_RESCUE_X86 + MENU LABEL Kaspersky Rescue Disk + KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 + INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz,$FILE_BASE$NFS_ETH0/kaspersky-rescue-x86-initrd.xz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us + TEXT HELP + Boot to Kaspersky Rescue Disk + ENDTEXT +EOF"; + fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64" ]; then @@ -2523,7 +2546,7 @@ handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; _unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -_unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; @@ -2538,6 +2561,7 @@ handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; #handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; #handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; From 2d6b5ab08ed24eaacd6ed311c3663a57f89536e2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 23 Dec 2018 15:19:16 +0100 Subject: [PATCH 178/694] added ubuntu fwts Ubuntu FirmwareTestSuite --- install-pxe-server_pass2.sh | 111 ++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ce7b6dc..8ee00c2 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -176,6 +176,8 @@ UBUNTU_STUDIO_X64=ubuntu-studio-x64 UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso +UBUNTU_FWTS=ubuntu-fwts +UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img LUBUNTU_LTS_X64=lubuntu-lts-x64 LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso @@ -895,6 +897,28 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ +## https://wiki.ubuntu.com/FirmwareTestSuite/Reference +## http://fwts.ubuntu.com/fwts-live/?C=M;O=D +LABEL $UBUNTU_FWTS + MENU LABEL Ubuntu Live FirmwareTestSuite + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- + TEXT HELP + Boot to Ubuntu Live FirmwareTestSuite + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then @@ -1869,6 +1893,91 @@ _unhandle_kernel() { } +########################################################################## +handle_img() { + echo -e "\e[32mhandle_img(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + # $2 : download url + ###################################################################### + local NAME=$1 + local URL=$2 + local FILE_URL=$NAME.url + local FILE_IMG=$NAME.img + ###################################################################### + + if ! [ -d "$DST_IMG/" ]; then sudo mkdir -p $DST_IMG/; fi + if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi + + sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; + sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + + if [ "$URL" == "" ]; then + if ! [ -f "$DST_IMG/$FILE_IMG" ] \ + && [ -f "$SRC_IMG/$FILE_IMG" ] \ + && [ -f "$SRC_IMG/$FILE_URL" ]; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f $FILE_IMG/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + fi + else + if [ -f "$SRC_IMG/$FILE_IMG" ] \ + && [ -f "$SRC_IMG/$FILE_URL" ] \ + && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ + && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f $FILE_IMG/$FILE_URL; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; + sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + fi + + if ! [ -f "$DST_IMG/$FILE_IMG" ] \ + || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_IMG/$FILE_URL $URL); \ + then + echo -e "\e[36m download image\e[0m"; + sudo rm -f $DST_IMG/$FILE_IMG; + sudo rm -f $DST_IMG/$FILE_URL; + sudo wget -O $DST_IMG/$FILE_IMG $URL; + + sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; + sudo touch -r $DST_IMG/$FILE_IMG $DST_IMG/$FILE_URL; + fi + fi + + if [ -f "$DST_IMG/$FILE_IMG" ]; then + local OFFSET_PART1=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $4}' | sed 's/,//'))) + local SIZE_PART1=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $6}' | sed 's/,//'))) + #sfdisk -d $DST_IMG/$FILE_IMG + + ## partition1 + if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then + echo -e "\e[36m create image folder\e[0m"; + sudo mkdir -p $DST_NFS_ETH0/$NAME; + fi + + if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then + echo -e "\e[36m add image to fstab\e[0m"; + sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop,offset=$OFFSET_PART1,sizelimit=$SIZE_PART1 0 11' >> /etc/fstab"; + fi + + if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then + echo -e "\e[36m add image folder to exports\e[0m"; + sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + fi + + sudo mount $DST_NFS_ETH0/$NAME; + sudo exportfs *:$DST_NFS_ETH0/$NAME; + else + ## partition1 + sudo sed /etc/fstab -i -e "/$NAME/d" + sudo sed /etc/exports -i -e "/$NAME/d" + fi +} + ########################################################################## handle_zip_img() { echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; @@ -2573,6 +2682,8 @@ _unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gi _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; _unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## +handle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; +########################################################################## handle_kernel $ARCH_NETBOOT_X86X64 $ARCH_NETBOOT_X86X64_URL timestamping; ########################################################################## handle_pxe; From 5f2fa1de8e9c26489e43b7d2181c8020108d8a3e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 25 Dec 2018 00:17:55 +0100 Subject: [PATCH 179/694] splitted install-pass2 script to make it easier to maintain modification --- README.md | 104 ++-- install-pxe-server_pass2.sh | 1165 ++--------------------------------- p2-include-handle.sh | 90 +++ p2-include-menu.sh | 880 ++++++++++++++++++++++++++ p2-include-url.sh | 147 +++++ p2-include-var.sh | 88 +++ 6 files changed, 1299 insertions(+), 1175 deletions(-) create mode 100644 p2-include-handle.sh create mode 100644 p2-include-menu.sh create mode 100644 p2-include-url.sh create mode 100644 p2-include-var.sh diff --git a/README.md b/README.md index 205d06f..0b085c8 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,62 @@ to update your images, update the url in the **install-pxe-server_pass2.sh** fil this will download all updated iso files. ## modifying the script: -what you should know, when you make modification to the script...
+### p2-include-var.sh +includes all important variables like source and destination directories, ip-addresses, and so on. +### p2-include-url.sh +includes all url and name of images +``` +e.g. +RPD_LITE=rpi-raspbian-lite +RPD_LITE_URL=https://.../...zip +``` + +### p2-include-menu.sh +includes all pxe-menu entries and kernel parameters + +### p2-include-handle.sh +includes all handler to control what image to download and expose to the pxe-server +**if you don't want some iso images getting downloaded and mounted, you can comment out lines +e.g.:** +``` +###################################################################### +##handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +#handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +#handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; +#handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; +##handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; +#handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; +#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +#handle_iso $DEFT_X64 $DEFT_X64_URL; +#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +#handle_iso $KALI_X64 $KALI_X64_URL; +#handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +#handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; +##handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; +handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; +#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +#handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; +#handle_iso $FEDORA_X64 $FEDORA_X64_URL; +... +``` +**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines +e.g.:** +``` +###################################################################### +handle_zip_img $RPD_LITE $RPD_LITE_URL; +# handle_zip_img $RPD_FULL $RPD_FULL_URL; +``` + +## what else you should know, when you make modification to the script... there are four importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. 1. the ISO or NSF path relative to the TFTP root path.
(on disk `/srv/tftp/iso`, `/srv/tftp/nfs` as symbolik link). @@ -238,53 +293,6 @@ clonezilla-x86.url ... ``` -there is a complete new section, that contains download url for disk images, that contains partitions. -``` -e.g. -RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://.../...zip -``` - -**if you don't want some iso images getting downloaded and mounted, you can comment out lines -e.g.:** -``` -###################################################################### -##handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -#handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -#handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -#handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; -##handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; -#handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; -#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -#handle_iso $DEFT_X64 $DEFT_X64_URL; -#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -#handle_iso $KALI_X64 $KALI_X64_URL; -#handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -#handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -##handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; -handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -#handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -#handle_iso $FEDORA_X64 $FEDORA_X64_URL; -... -``` -**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines -e.g.:** -``` -###################################################################### -handle_zip_img $RPD_LITE $RPD_LITE_URL; -# handle_zip_img $RPD_FULL $RPD_FULL_URL; -``` - ## note2: some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8ee00c2..724497a 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -34,6 +34,7 @@ # tail https://tails.boum.org/install/download/ # knoppix http://www.knopper.net/knoppix-mirrors/index-en.html # kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk +# android x86 https://osdn.net/projects/android-x86/ # # rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ @@ -48,9 +49,13 @@ # solution: maybe linux kernel 4.16 +script_dir=$(dirname "$BASH_SOURCE") + + ########################################################################## echo -e "\e[36msetup variables\e[0m"; + ########################################################################## ########################################################################## ## variables, you have to customize @@ -60,73 +65,7 @@ echo -e "\e[36msetup variables\e[0m"; ## and other variables... ########################################################################## ########################################################################## -CUSTOM_LANG=de -CUSTOM_LANG_LONG=de_DE -CUSTOM_LANG_UPPER=DE -CUSTOM_LANG_WRITTEN=German -CUSTOM_LANG_EXT=de-latin1-nodeadkeys -CUSTOM_TIMEZONE=Europe/Berlin -########################################################################## -RPI_SN0=-------- -RPI_SN1=-------- -RPI_SN2=-------- -RPI_SN3=-------- -########################################################################## -INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) -INTERFACE_ETH1=eth1 -INTERFACE_WLAN0=wlan0 -########################################################################## -IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') -IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') -IP_ETH0_0=$(echo $(echo $IP_ETH0_)0) -IP_ETH0_START=$(echo $(echo $IP_ETH0_)200) -IP_ETH0_END=$(echo $(echo $IP_ETH0_)250) -IP_ETH0_ROUTER=$(echo $(ip rout show dev $INTERFACE_ETH0 | grep default | cut -d' ' -f3)) -IP_ETH0_DNS=$IP_ETH0_ROUTER -IP_ETH0_MASK=255.255.255.0 -########################################################################## -IP_ETH1=192.168.250.1 -IP_ETH1_START=192.168.250.100 -IP_ETH1_END=192.168.250.110 -IP_ETH1_MASK=255.255.255.0 -########################################################################## -IP_WLAN0=192.168.251.1 -IP_WLAN0_START=192.168.251.100 -IP_WLAN0_END=192.168.251.110 -IP_WLAN0_MASK=255.255.255.0 -########################################################################## -DRIVER_WLAN0=nl80211 -COUNTRY_WLAN0=$CUSTOM_LANG_UPPER -PASSWORD_WLAN0=p@ssw0rd -SSID_WLAN0=wlan0@domain.local -INTERFACE_WLAN0X=wlan0x -PASSWORD_WLAN0X=p@ssw0rd -SSID_WLAN0X=wlan0x@domain.local - -########################################################################## -ISO=/iso -IMG=/img -TFTP_ETH0=/tftp -NFS_ETH0=/nfs -SRC_MOUNT=/media/server -SRC_BACKUP=$SRC_MOUNT/backup -SRC_ISO=$SRC_BACKUP$ISO -SRC_IMG=$SRC_BACKUP$IMG -SRC_TFTP_ETH0=$SRC_BACKUP$TFTP_ETH0 -SRC_NFS_ETH0=$SRC_BACKUP$NFS_ETH0 -DST_ROOT=/srv -DST_ISO=$DST_ROOT$ISO -DST_IMG=$DST_ROOT$IMG -DST_TFTP_ETH0=$DST_ROOT$TFTP_ETH0 -DST_NFS_ETH0=$DST_ROOT$NFS_ETH0 -########################################################################## -DST_PXE_BIOS=menu-bios -DST_PXE_EFI32=menu-efi32 -DST_PXE_EFI64=menu-efi64 -########################################################################## -KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') -KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') -KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) +. "$script_dir/p2-include-var.sh" echo echo -e "$KERNEL_MAJOR.$KERNEL_MINOR \e[36mis kernel version\e[0m"; @@ -155,130 +94,7 @@ sudo mount $SRC_MOUNT 2> /dev/null; ## update the url, if iso is outdated ########################################################################## ########################################################################## -WIN_PE_X86=win-pe-x86 -WIN_PE_X86_URL= - -ARCH_NETBOOT_X86X64=arch-netboot-x86x64 -ARCH_NETBOOT_X86X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn - -FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso - -UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso -UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso -UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso -UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso -UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso -UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso -UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img - -LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso -LUBUNTU_LTS_X86=lubuntu-lts-x86 -LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso -LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso -LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso -LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso - -UBUNTU_NONPAE=ubuntu-nopae -UBUNTU_NONPAE_URL= - -DEBIAN_KVER=4.9.0-8 -DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.6.0-amd64-lxde.iso -DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.6.0-i386-lxde.iso - -DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso -DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso - -PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-home-4.4_amd64.iso -PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-security-4.4_amd64.iso - -GNURADIO_X64=gnuradio-x64 -GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso - -DEFT_X64=deft-x64 -DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso -DEFTZ_X64=deftz-x64 -DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso - -KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.4-amd64.iso - -PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso -PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso - -SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.2/systemrescuecd-x86-5.3.2.iso - -DESINFECT_X86=desinfect-x86 -DESINFECT_X86_URL= -DESINFECT_X64=desinfect-x64 -DESINFECT_X64_URL= - -KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 -KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso - -TINYCORE_x64=tinycore-x64 -TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_x86=tinycore-x86 -TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso - -RPDESKTOP_X86=rpdesktop-x86 -RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest - -CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-amd64.iso -CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso - -OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso -OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso - -TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.11/tails-amd64-3.11.iso - -CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso - - -########################################################################## -########################################################################## -## url to zip files, -## that contains disk images -## for raspbarry pi 3 pxe network booting -## note: -## update the url, if disk image is outdated -########################################################################## -########################################################################## -PI_CORE=pi-core -PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip - -RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest -RPD_FULL=rpi-raspbian-full -RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest -RPD_BASIC=rpi-raspbian-basic -RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest +. "$script_dir/p2-include-url.sh" @@ -689,855 +505,7 @@ LABEL poweroff EOF"; fi -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then - echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $WIN_PE_X86-pxe - MENU LABEL Windows PE x86 (PXE) - PXE pxeboot.n12 - TEXT HELP - Boot to Windows PE 32bit - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then - echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $WIN_PE_X86-iso - MENU LABEL Windows PE x86 (ISO) - KERNEL memdisk - APPEND iso - INITRD $FILE_BASE$ISO/$WIN_PE_X86.iso - TEXT HELP - Boot to Windows PE 32bit ISO ~400MB - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then - echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -# INFO: https://www.archlinux.org/releng/netboot/ -LABEL $ARCH_NETBOOT_X86X64 - MENU LABEL Arch netboot x86 x64 -# KERNEL https://www.archlinux.org/static/netboot/ipxe.lkrn - KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel - TEXT HELP - Boot to Arch netboot x86 x64 - User: root - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then - echo -e "\e[36m add $FEDORA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc -## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html -LABEL $FEDORA_X64 - MENU LABEL Fedora x64 - KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - TEXT HELP - Boot to Fedora Workstation Live - User: liveuser - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_LTS_X64 - MENU LABEL Ubuntu LTS x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu LTS x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_LTS_X86 - MENU LABEL Ubuntu LTS x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu LTS x86 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_X64 - MENU LABEL Ubuntu x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_X86 - MENU LABEL Ubuntu x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu x86 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_DAILY_X64 - MENU LABEL Ubuntu x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu x64 Daily-Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_STUDIO_X64 - MENU LABEL Ubuntu Studio x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu Studio x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_STUDIO_DAILY_X64 - MENU LABEL Ubuntu Studio x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu Studio x64 Daily-Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ -## https://wiki.ubuntu.com/FirmwareTestSuite/Reference -## http://fwts.ubuntu.com/fwts-live/?C=M;O=D -LABEL $UBUNTU_FWTS - MENU LABEL Ubuntu Live FirmwareTestSuite - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- - TEXT HELP - Boot to Ubuntu Live FirmwareTestSuite - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_LTS_X64 - MENU LABEL lubuntu LTS x64 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu LTS x64 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_LTS_X86 - MENU LABEL lubuntu LTS x86 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu LTS x86 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_X64 - MENU LABEL lubuntu x64 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu x64 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_X86 - MENU LABEL lubuntu x86 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu x86 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_DAILY_X64 - MENU LABEL lubuntu x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu x64 Daily-Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_NONPAE - MENU LABEL Ubuntu non-PAE x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu non-PAE x86 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then - echo -e "\e[36m add $DEBIAN_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEBIAN_X64 - MENU LABEL Debian x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Debian x64 Live LXDE - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then - echo -e "\e[36m add $DEBIAN_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEBIAN_X86 - MENU LABEL Debian x86 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Debian x86 Live LXDE - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $DEVUAN_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEVUAN_X64 - MENU LABEL Devuan x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Devuan x64 Live - User: devuan - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then - echo -e "\e[36m add $DEVUAN_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEVUAN_X86 - MENU LABEL Devuan x86 - KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Devuan x86 Live - User: devuan - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PARROT_LITE_X64 - MENU LABEL Parrot Lite x64 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Parrot Lite x64 Live (Home/Workstation) - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PARROT_FULL_X64 - MENU LABEL Parrot Full x64 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Parrot Full x64 Live (Security) - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then - echo -e "\e[36m add $GNURADIO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $GNURADIO_X64 - MENU LABEL GNU Radio x64 - KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi - INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to GNU Radio x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $KALI_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $KALI_X64 - MENU LABEL Kali x64 - KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Kali x64 Live - User: root, Password: toor - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DEFT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEFT_X64 - MENU LABEL DEFT x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to DEFT x64 Live - User: root, Password: toor - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DEFTZ_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEFTZ_X64 - MENU LABEL DEFT Zero x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to DEFT Zero x64 Live - User: root, Password: toor - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then - echo -e "\e[36m add $PENTOO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PENTOO_X64 - MENU LABEL Pentoo x64 - KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo - INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- - TEXT HELP - Boot to Pentoo x64 Live - User: pentoo - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then - echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PENTOO_BETA_X64 - MENU LABEL Pentoo Beta x64 - KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo - INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- - TEXT HELP - Boot to Pentoo Beta x64 Live - User: pentoo - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then - echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $SYSTEMRESCUE_X86 - MENU LABEL System Rescue x86 - KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32 - INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/initram.igz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG - TEXT HELP - Boot to System Rescue x86 Live - User: root - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $DESINFECT_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DESINFECT_X86 - MENU LABEL desinfect x86 - KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to ct desinfect x86 - User: desinfect - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DESINFECT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DESINFECT_X64 - MENU LABEL desinfect x64 - KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to ct desinfect x64 - User: desinfect - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then - echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; - [ -f "$DST_NFS_ETH0/kaspersky-rescue-x86-initrd.xz" ] || ( sudo wget -O /tmp/tmp.zip https://github.com/beta-tester/RPi-PXE-Server/files/2705800/kaspersky-rescue-x86-initrd.zip && sudo unzip /tmp/tmp.zip -d $DST_NFS_ETH0/ && sudo rm /tmp/tmp.zip ); - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $KASPERSKY_RESCUE_X86 - MENU LABEL Kaspersky Rescue Disk - KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 - INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz,$FILE_BASE$NFS_ETH0/kaspersky-rescue-x86-initrd.xz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us - TEXT HELP - Boot to Kaspersky Rescue Disk - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64" ]; then - echo -e "\e[36m add $TINYCORE_x64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -# INFO: http://wiki.tinycorelinux.net/wiki:boot_options -LABEL $TINYCORE_x64 - MENU LABEL tiny core x64 - KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 - INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us - TEXT HELP - Boot to tiny core x64 - User: tc - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$TINYCORE_x86/boot/vmlinuz" ]; then - echo -e "\e[36m add $TINYCORE_x86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -# INFO: http://wiki.tinycorelinux.net/wiki:boot_options -LABEL $TINYCORE_x86 - MENU LABEL tiny core x86 - KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/core.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us - TEXT HELP - Boot to tiny core x86 - User: tc - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then - echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $RPDESKTOP_X86 - MENU LABEL Raspberry Pi Desktop - KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 - INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Raspberry Pi Desktop - User: pi, Password: raspberry - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $CLONEZILLA_X64 - MENU LABEL Clonezilla x64 - KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Clonezilla x64 - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then - echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $CLONEZILLA_X86 - MENU LABEL Clonezilla x86 - KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Clonezilla x86 - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then - echo -e "\e[36m add $OPENSUSE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: Booting live images -## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 -## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image -## https://bugzilla.opensuse.org/show_bug.cgi?id=1099548 -LABEL $OPENSUSE_X64 - MENU LABEL openSUSE Leap x64 - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image -# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- - TEXT HELP - Boot to openSUSE Leap Live - User: liveuser - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then - echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $OPENSUSE_RESCUE_X64 - MENU LABEL openSUSE Leap Rescue x64 - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- -# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - TEXT HELP - Boot to openSUSE Leap Rescue Live - User: liveuser - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then - echo -e "\e[36m add $CENTOS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup -## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc -## NOT WORKING -LABEL $CENTOS_X64 - MENU LABEL CentOS x64 - KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img - #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# mount.nfs: mountpoint /sysroot is not a directory - #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# Warning: Could not boot. - # Warning: /dev/mapper/live-rw does not exist - # Starting Dracut Emergency Shell - APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - - TEXT HELP - Boot to CentOS LiveGNOME - User: liveuser - ENDTEXT -EOF"; - fi -#========== END ========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $TAILS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten -## NOT WORKING -LABEL $TAILS_X64 - MENU LABEL Tails x64 - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img - #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - TEXT HELP - Boot to Tails x64 Live (modprobe r8169; exit) - ENDTEXT -EOF"; - fi -#========== END ========== +. "$script_dir/p2-include-menu.sh" } @@ -1910,7 +878,8 @@ handle_img() { if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; +# sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + sudo umount -f $DST_NFS_ETH0/$NAME; if [ "$URL" == "" ]; then if ! [ -f "$DST_IMG/$FILE_IMG" ] \ @@ -1978,6 +947,33 @@ handle_img() { fi } + +########################################################################## +_unhandle_img() { + if [ "_$1_" == "__" ]; then return 0; fi + + echo -e "\e[32m_unhandle_img(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + ###################################################################### + local NAME=$1 + local FILE_URL=$NAME.url + local FILE_IMG=$NAME.img + ###################################################################### + + sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; + sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + + sudo rm -f $DST_IMG/$FILE_URL; + sudo rm -f $DST_IMG/$FILE_IMG; + + sudo rm -rf $DST_NFS_ETH0/$NAME; + + sudo sed /etc/fstab -i -e "/$NAME/d" + sudo sed /etc/exports -i -e "/$NAME/d" +} + + ########################################################################## handle_zip_img() { echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; @@ -2624,15 +1620,6 @@ handle_samba; handle_optional; -########################################################################## -# ########### ########### ########### ########### ########### -# ######### ######### ######### ######### ######### -# ####### ####### ####### ####### ####### -# ##### ##### ##### ##### ##### -# ### ### ### ### ### -# # # # # # - - ########################################################################## ########################################################################## ## comment out those entries, @@ -2642,83 +1629,7 @@ handle_optional; ## if you want to delete the entire iso and its nfs export to free disk space ########################################################################## ########################################################################## -#handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; -handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; -_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; -_unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; -_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; -handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; -_unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -_unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; -_unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; -_unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -_unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -_unhandle_iso $DEFT_X64 $DEFT_X64_URL; -_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -handle_iso $KALI_X64 $KALI_X64_URL; -handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; -handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; -#handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; -#handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; -_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -_unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -handle_iso $FEDORA_X64 $FEDORA_X64_URL; -_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; -_unhandle_iso $TAILS_X64 $TAILS_X64_URL; -########################################################################## -handle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; -########################################################################## -handle_kernel $ARCH_NETBOOT_X86X64 $ARCH_NETBOOT_X86X64_URL timestamping; -########################################################################## -handle_pxe; -handle_ipxe; - - -########################################################################## -########################################################################## -## comment out those entries, -## you don't want to download, mount, export -########################################################################## -########################################################################## -#handle_zip_img $PI_CORE $PI_CORE_URL; -#handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; -#handle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; -#handle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; -########################################################################## -########################################################################## -## comment out those entries, -## you don't want to have as pi 3 pxe network booting -########################################################################## -########################################################################## -#handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; -#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -#handle_rpi_pxe $RPD_BASIC $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -#handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; - - -# # # # # # -# ### ### ### ### ### -# ##### ##### ##### ##### ##### -# ####### ####### ####### ####### ####### -# ######### ######### ######### ######### ######### -# ########### ########### ########### ########### ########### -########################################################################## +. "$script_dir/p2-include-handle.sh" ########################################################################## diff --git a/p2-include-handle.sh b/p2-include-handle.sh new file mode 100644 index 0000000..cc8cd89 --- /dev/null +++ b/p2-include-handle.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +########################################################################## +if [ -z "$script_dir" ] +then + echo "do not run this script directly !" + echo "this script is part of install-pxe-server-pass2.sh" + exit -1 +fi +########################################################################## + + +########################################################################## +########################################################################## +## comment out those entries, +## you don't want to download, mount, export, install for PXE boot +## or +## "_unhandle_iso ...", +## if you want to delete the entire iso and its nfs export to free disk space +########################################################################## +########################################################################## +#handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; +handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; +_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; +_unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; +_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; +handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; +_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; +_unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +_unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; +_unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; +_unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +_unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; +_unhandle_iso $DEFT_X64 $DEFT_X64_URL; +_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +handle_iso $KALI_X64 $KALI_X64_URL; +handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; +handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; +#handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; +#handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; +handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; +handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; +_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; +_unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; +handle_iso $FEDORA_X64 $FEDORA_X64_URL; +handle_iso $ANDROID_X86 $ANDROID_X86_URL; +_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +_unhandle_iso $TAILS_X64 $TAILS_X64_URL; +########################################################################## +handle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; +########################################################################## +handle_kernel $ARCH_NETBOOT_X86X64 $ARCH_NETBOOT_X86X64_URL timestamping; +########################################################################## +handle_pxe; +handle_ipxe; + + +########################################################################## +########################################################################## +## comment out those entries, +## you don't want to download, mount, export +########################################################################## +########################################################################## +#handle_zip_img $PI_CORE $PI_CORE_URL; +#handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; +#handle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; +#handle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; +########################################################################## +########################################################################## +## comment out those entries, +## you don't want to have as pi 3 pxe network booting +########################################################################## +########################################################################## +#handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; +#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +#handle_rpi_pxe $RPD_BASIC $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +#handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; diff --git a/p2-include-menu.sh b/p2-include-menu.sh new file mode 100644 index 0000000..a0d9f38 --- /dev/null +++ b/p2-include-menu.sh @@ -0,0 +1,880 @@ +#!/bin/bash + +########################################################################## +if [ -z "$script_dir" ] +then + echo "do not run this script directly !" + echo "this script is part of install-pxe-server-pass2.sh" + exit -1 +fi +########################################################################## + + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then + echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $WIN_PE_X86-pxe + MENU LABEL Windows PE x86 (PXE) + PXE pxeboot.n12 + TEXT HELP + Boot to Windows PE 32bit + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then + echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $WIN_PE_X86-iso + MENU LABEL Windows PE x86 (ISO) + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$WIN_PE_X86.iso + TEXT HELP + Boot to Windows PE 32bit ISO ~400MB + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then + echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +# INFO: https://www.archlinux.org/releng/netboot/ +LABEL $ARCH_NETBOOT_X86X64 + MENU LABEL Arch netboot x86 x64 +# KERNEL https://www.archlinux.org/static/netboot/ipxe.lkrn + KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel + TEXT HELP + Boot to Arch netboot x86 x64 + User: root + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then + echo -e "\e[36m add $FEDORA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel +## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc +## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html +LABEL $FEDORA_X64 + MENU LABEL Fedora x64 + KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + TEXT HELP + Boot to Fedora Workstation Live + User: liveuser + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]; then + echo -e "\e[36m add $ANDROID_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $ANDROID_X86 + MENU LABEL Android x86 + KERNEL $FILE_BASE$NFS_ETH0/$ANDROID_X86/kernel + INITRD $FILE_BASE$NFS_ETH0/$ANDROID_X86/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ANDROID_X86 ro netboot=nfs root=/dev/ram0 androidboot.selinux=permissive SRC= DATA= + TEXT HELP + Boot to Android x86 Live + User: root + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_LTS_X64 + MENU LABEL Ubuntu LTS x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu LTS x64 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_LTS_X86 + MENU LABEL Ubuntu LTS x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu LTS x86 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_X64 + MENU LABEL Ubuntu x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu x64 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_X86 + MENU LABEL Ubuntu x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu x86 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_DAILY_X64 + MENU LABEL Ubuntu x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu x64 Daily-Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_STUDIO_X64 + MENU LABEL Ubuntu Studio x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu Studio x64 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_STUDIO_DAILY_X64 + MENU LABEL Ubuntu Studio x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu Studio x64 Daily-Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ +## https://wiki.ubuntu.com/FirmwareTestSuite/Reference +## http://fwts.ubuntu.com/fwts-live/?C=M;O=D +LABEL $UBUNTU_FWTS + MENU LABEL Ubuntu Live FirmwareTestSuite + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- + TEXT HELP + Boot to Ubuntu Live FirmwareTestSuite + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_LTS_X64 + MENU LABEL lubuntu LTS x64 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu LTS x64 Live + User: lubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_LTS_X86 + MENU LABEL lubuntu LTS x86 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu LTS x86 Live + User: lubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_X64 + MENU LABEL lubuntu x64 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu x64 Live + User: lubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_X86 + MENU LABEL lubuntu x86 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu x86 Live + User: lubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $LUBUNTU_DAILY_X64 + MENU LABEL lubuntu x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu x64 Daily-Live + User: lubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $UBUNTU_NONPAE + MENU LABEL Ubuntu non-PAE x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu non-PAE x86 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then + echo -e "\e[36m add $DEBIAN_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEBIAN_X64 + MENU LABEL Debian x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Debian x64 Live LXDE + User: user, Password: live + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then + echo -e "\e[36m add $DEBIAN_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEBIAN_X86 + MENU LABEL Debian x86 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Debian x86 Live LXDE + User: user, Password: live + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $DEVUAN_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEVUAN_X64 + MENU LABEL Devuan x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Devuan x64 Live + User: devuan + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $DEVUAN_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEVUAN_X86 + MENU LABEL Devuan x86 + KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Devuan x86 Live + User: devuan + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $PARROT_LITE_X64 + MENU LABEL Parrot Lite x64 + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Parrot Lite x64 Live (Home/Workstation) + User: user, Password: live + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $PARROT_FULL_X64 + MENU LABEL Parrot Full x64 + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Parrot Full x64 Live (Security) + User: user, Password: live + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then + echo -e "\e[36m add $GNURADIO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $GNURADIO_X64 + MENU LABEL GNU Radio x64 + KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi + INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to GNU Radio x64 Live + User: ubuntu + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $KALI_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $KALI_X64 + MENU LABEL Kali x64 + KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Kali x64 Live + User: root, Password: toor + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEFT_X64 + MENU LABEL DEFT x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to DEFT x64 Live + User: root, Password: toor + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFTZ_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DEFTZ_X64 + MENU LABEL DEFT Zero x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to DEFT Zero x64 Live + User: root, Password: toor + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then + echo -e "\e[36m add $PENTOO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $PENTOO_X64 + MENU LABEL Pentoo x64 + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + TEXT HELP + Boot to Pentoo x64 Live + User: pentoo + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then + echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $PENTOO_BETA_X64 + MENU LABEL Pentoo Beta x64 + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + TEXT HELP + Boot to Pentoo Beta x64 Live + User: pentoo + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then + echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $SYSTEMRESCUE_X86 + MENU LABEL System Rescue x86 + KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32 + INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/initram.igz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG + TEXT HELP + Boot to System Rescue x86 Live + User: root + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $DESINFECT_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DESINFECT_X86 + MENU LABEL desinfect x86 + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to ct desinfect x86 + User: desinfect + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DESINFECT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $DESINFECT_X64 + MENU LABEL desinfect x64 + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to ct desinfect x64 + User: desinfect + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then + echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; + [ -f "$DST_NFS_ETH0/kaspersky-rescue-x86-initrd.xz" ] || ( sudo wget -O /tmp/tmp.zip https://github.com/beta-tester/RPi-PXE-Server/files/2705800/kaspersky-rescue-x86-initrd.zip && sudo unzip /tmp/tmp.zip -d $DST_NFS_ETH0/ && sudo rm /tmp/tmp.zip ); + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $KASPERSKY_RESCUE_X86 + MENU LABEL Kaspersky Rescue Disk + KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 + INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz,$FILE_BASE$NFS_ETH0/kaspersky-rescue-x86-initrd.xz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us + TEXT HELP + Boot to Kaspersky Rescue Disk + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64" ]; then + echo -e "\e[36m add $TINYCORE_x64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +# INFO: http://wiki.tinycorelinux.net/wiki:boot_options +LABEL $TINYCORE_x64 + MENU LABEL tiny core x64 + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + TEXT HELP + Boot to tiny core x64 + User: tc + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$TINYCORE_x86/boot/vmlinuz" ]; then + echo -e "\e[36m add $TINYCORE_x86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +# INFO: http://wiki.tinycorelinux.net/wiki:boot_options +LABEL $TINYCORE_x86 + MENU LABEL tiny core x86 + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/core.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + TEXT HELP + Boot to tiny core x86 + User: tc + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then + echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $RPDESKTOP_X86 + MENU LABEL Raspberry Pi Desktop + KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 + INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Raspberry Pi Desktop + User: pi, Password: raspberry + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $CLONEZILLA_X64 + MENU LABEL Clonezilla x64 + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Clonezilla x64 + User: user, Password: live + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $CLONEZILLA_X86 + MENU LABEL Clonezilla x86 + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Clonezilla x86 + User: user, Password: live + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: Booting live images +## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 +## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image +## https://bugzilla.opensuse.org/show_bug.cgi?id=1099548 +LABEL $OPENSUSE_X64 + MENU LABEL openSUSE Leap x64 + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image +# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- + TEXT HELP + Boot to openSUSE Leap Live + User: liveuser + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +LABEL $OPENSUSE_RESCUE_X64 + MENU LABEL openSUSE Leap Rescue x64 + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- +# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- +# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + TEXT HELP + Boot to openSUSE Leap Rescue Live + User: liveuser + ENDTEXT +EOF"; + fi +#=========== END =========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then + echo -e "\e[36m add $CENTOS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel +## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup +## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc +## NOT WORKING +LABEL $CENTOS_X64 + MENU LABEL CentOS x64 + KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 + INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img + #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + +# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + +# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + +# mount.nfs: mountpoint /sysroot is not a directory + #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + +# Warning: Could not boot. + # Warning: /dev/mapper/live-rw does not exist + # Starting Dracut Emergency Shell + APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + + TEXT HELP + Boot to CentOS LiveGNOME + User: liveuser + ENDTEXT +EOF"; + fi +#========== END ========== + +#========== BEGIN ========== + if [ -f "$FILE_MENU" ] \ + && [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $TAILS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU +######################################## +## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten +## NOT WORKING +LABEL $TAILS_X64 + MENU LABEL Tails x64 + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img + #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG + APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG + TEXT HELP + Boot to Tails x64 Live (modprobe r8169; exit) + ENDTEXT +EOF"; + fi +#========== END ========== diff --git a/p2-include-url.sh b/p2-include-url.sh new file mode 100644 index 0000000..7a7aabd --- /dev/null +++ b/p2-include-url.sh @@ -0,0 +1,147 @@ +#!/bin/bash + +########################################################################## +if [ -z "$script_dir" ] +then + echo "do not run this script directly !" + echo "this script is part of install-pxe-server-pass2.sh" + exit -1 +fi +########################################################################## + +#v 2018-12-23 + +########################################################################## +########################################################################## +## url to iso images, with LiveDVD systems +## note: +## update the url, if iso is outdated +########################################################################## +########################################################################## +WIN_PE_X86=win-pe-x86 +WIN_PE_X86_URL= + +ARCH_NETBOOT_X86X64=arch-netboot-x86x64 +ARCH_NETBOOT_X86X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn + +FEDORA_X64=fedora-x64 +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso + +ANDROID_X86=android-x86 +ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-rc2.iso + +UBUNTU_LTS_X64=ubuntu-lts-x64 +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso +UBUNTU_LTS_X86=ubuntu-lts-x86 +UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso +UBUNTU_X64=ubuntu-x64 +UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso +UBUNTU_DAILY_X64=ubuntu-daily-x64 +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso +UBUNTU_STUDIO_X64=ubuntu-studio-x64 +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso +UBUNTU_FWTS=ubuntu-fwts +UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img + +LUBUNTU_LTS_X64=lubuntu-lts-x64 +LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso +LUBUNTU_LTS_X86=lubuntu-lts-x86 +LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso +LUBUNTU_X64=lubuntu-x64 +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso +LUBUNTU_X86=lubuntu-x86 +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso +LUBUNTU_DAILY_X64=lubuntu-daily-x64 +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso + +UBUNTU_NONPAE=ubuntu-nopae +UBUNTU_NONPAE_URL= + +DEBIAN_KVER=4.9.0-8 +DEBIAN_X64=debian-x64 +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.6.0-amd64-lxde.iso +DEBIAN_X86=debian-x86 +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.6.0-i386-lxde.iso + +DEVUAN_X64=devuan-x64 +DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso +DEVUAN_X86=devuan-x86 +DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso + +PARROT_LITE_X64=parrot-lite-x64 +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-home-4.4_amd64.iso +PARROT_FULL_X64=parrot-full-x64 +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-security-4.4_amd64.iso + +GNURADIO_X64=gnuradio-x64 +GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso + +DEFT_X64=deft-x64 +DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso +DEFTZ_X64=deftz-x64 +DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso + +KALI_X64=kali-x64 +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.4-amd64.iso + +PENTOO_X64=pentoo-x64 +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso +PENTOO_BETA_X64=pentoo-beta-x64 +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso + +SYSTEMRESCUE_X86=systemrescue-x86 +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.2/systemrescuecd-x86-5.3.2.iso + +DESINFECT_X86=desinfect-x86 +DESINFECT_X86_URL= +DESINFECT_X64=desinfect-x64 +DESINFECT_X64_URL= + +KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 +KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso + +TINYCORE_x64=tinycore-x64 +TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_x86=tinycore-x86 +TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso + +RPDESKTOP_X86=rpdesktop-x86 +RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest + +CLONEZILLA_X64=clonezilla-x64 +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-amd64.iso +CLONEZILLA_X86=clonezilla-x86 +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso + +OPENSUSE_X64=opensuse-x64 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso +OPENSUSE_RESCUE_X64=opensuse-rescue-x64 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso + +TAILS_X64=tails-x64 +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.11/tails-amd64-3.11.iso + +CENTOS_X64=centos-x64 +CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso + + +########################################################################## +########################################################################## +## url to zip files, +## that contains disk images +## for raspbarry pi 3 pxe network booting +## note: +## update the url, if disk image is outdated +########################################################################## +########################################################################## +PI_CORE=pi-core +PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip + +RPD_LITE=rpi-raspbian-lite +RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest +RPD_FULL=rpi-raspbian-full +RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest +RPD_BASIC=rpi-raspbian-basic +RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest diff --git a/p2-include-var.sh b/p2-include-var.sh new file mode 100644 index 0000000..bf8e21a --- /dev/null +++ b/p2-include-var.sh @@ -0,0 +1,88 @@ +#!/bin/bash + +########################################################################## +if [ -z "$script_dir" ] +then + echo "do not run this script directly !" + echo "this script is part of install-pxe-server-pass2.sh" + exit -1 +fi +########################################################################## + + +########################################################################## +########################################################################## +## variables, you have to customize +## e.g.: +## RPI_SN0 : serial number +## of the raspberry pi 3 for network booting +## and other variables... +########################################################################## +########################################################################## +CUSTOM_LANG=de +CUSTOM_LANG_LONG=de_DE +CUSTOM_LANG_UPPER=DE +CUSTOM_LANG_WRITTEN=German +CUSTOM_LANG_EXT=de-latin1-nodeadkeys +CUSTOM_TIMEZONE=Europe/Berlin +########################################################################## +RPI_SN0=-------- +RPI_SN1=-------- +RPI_SN2=-------- +RPI_SN3=-------- +########################################################################## +INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) +INTERFACE_ETH1=eth1 +INTERFACE_WLAN0=wlan0 +########################################################################## +IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') +IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') +IP_ETH0_0=$(echo $(echo $IP_ETH0_)0) +IP_ETH0_START=$(echo $(echo $IP_ETH0_)200) +IP_ETH0_END=$(echo $(echo $IP_ETH0_)250) +IP_ETH0_ROUTER=$(echo $(ip rout show dev $INTERFACE_ETH0 | grep default | cut -d' ' -f3)) +IP_ETH0_DNS=$IP_ETH0_ROUTER +IP_ETH0_MASK=255.255.255.0 +########################################################################## +IP_ETH1=192.168.250.1 +IP_ETH1_START=192.168.250.100 +IP_ETH1_END=192.168.250.110 +IP_ETH1_MASK=255.255.255.0 +########################################################################## +IP_WLAN0=192.168.251.1 +IP_WLAN0_START=192.168.251.100 +IP_WLAN0_END=192.168.251.110 +IP_WLAN0_MASK=255.255.255.0 +########################################################################## +DRIVER_WLAN0=nl80211 +COUNTRY_WLAN0=$CUSTOM_LANG_UPPER +PASSWORD_WLAN0=p@ssw0rd +SSID_WLAN0=wlan0@domain.local +INTERFACE_WLAN0X=wlan0x +PASSWORD_WLAN0X=p@ssw0rd +SSID_WLAN0X=wlan0x@domain.local + +########################################################################## +ISO=/iso +IMG=/img +TFTP_ETH0=/tftp +NFS_ETH0=/nfs +SRC_MOUNT=/media/server +SRC_BACKUP=$SRC_MOUNT/backup +SRC_ISO=$SRC_BACKUP$ISO +SRC_IMG=$SRC_BACKUP$IMG +SRC_TFTP_ETH0=$SRC_BACKUP$TFTP_ETH0 +SRC_NFS_ETH0=$SRC_BACKUP$NFS_ETH0 +DST_ROOT=/srv +DST_ISO=$DST_ROOT$ISO +DST_IMG=$DST_ROOT$IMG +DST_TFTP_ETH0=$DST_ROOT$TFTP_ETH0 +DST_NFS_ETH0=$DST_ROOT$NFS_ETH0 +########################################################################## +DST_PXE_BIOS=menu-bios +DST_PXE_EFI32=menu-efi32 +DST_PXE_EFI64=menu-efi64 +########################################################################## +KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') +KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') +KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) From 43df01e161ce440229b772b0451b90041beceb36 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 26 Dec 2018 01:07:47 +0100 Subject: [PATCH 180/694] changes sort order --- install-pxe-server_pass2.sh | 7 + p2-include-handle.sh | 86 +- p2-include-menu.sh | 1736 ++++++++++++++++++----------------- p2-include-url.sh | 172 ++-- 4 files changed, 1025 insertions(+), 976 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 724497a..65bca1c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -502,6 +502,8 @@ LABEL reboot LABEL poweroff MENU LABEL Power Off COM32 poweroff.c32 + + EOF"; fi @@ -1632,6 +1634,11 @@ handle_optional; . "$script_dir/p2-include-handle.sh" +########################################################################## +handle_pxe; +handle_ipxe; + + ########################################################################## if [ -d "$SRC_ISO" ]; then echo -e "\e[32mbackup new iso images to usb-stick\e[0m"; diff --git a/p2-include-handle.sh b/p2-include-handle.sh index cc8cd89..7a5f4b0 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -19,53 +19,56 @@ fi ## if you want to delete the entire iso and its nfs export to free disk space ########################################################################## ########################################################################## -#handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; -handle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; -_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; -_unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; -_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; -handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; -_unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +_unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; +_unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; +_unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $DEFT_X64 $DEFT_X64_URL; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; -_unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -_unhandle_iso $DEFT_X64 $DEFT_X64_URL; -_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -handle_iso $KALI_X64 $KALI_X64_URL; -handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -handle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; -handle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; -#handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; -#handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +_unhandle_iso $KALI_X64 $KALI_X64_URL; handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; +_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; +_unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; +_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; +_unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; +_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +_unhandle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +_unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; +_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; +_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -_unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -handle_iso $FEDORA_X64 $FEDORA_X64_URL; -handle_iso $ANDROID_X86 $ANDROID_X86_URL; -_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; -_unhandle_iso $TAILS_X64 $TAILS_X64_URL; -########################################################################## -handle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; +_unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; +handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; +handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; +_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; +_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; +_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; +_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; +_unhandle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; +handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; + +#custom# +handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; +handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; +_unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; +handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; + +#broken# +#_unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; +#_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +#_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +#_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +#_unhandle_iso $TAILS_X64 $TAILS_X64_URL; + ########################################################################## -handle_kernel $ARCH_NETBOOT_X86X64 $ARCH_NETBOOT_X86X64_URL timestamping; +#_unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; + ########################################################################## -handle_pxe; -handle_ipxe; +handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; ########################################################################## @@ -75,9 +78,10 @@ handle_ipxe; ########################################################################## ########################################################################## #handle_zip_img $PI_CORE $PI_CORE_URL; -#handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; #handle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; #handle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; +#handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; + ########################################################################## ########################################################################## ## comment out those entries, @@ -85,6 +89,6 @@ handle_ipxe; ########################################################################## ########################################################################## #handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; -#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; #handle_rpi_pxe $RPD_BASIC $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; #handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; diff --git a/p2-include-menu.sh b/p2-include-menu.sh index a0d9f38..20b17bd 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -11,870 +11,880 @@ fi #========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then - echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $WIN_PE_X86-pxe - MENU LABEL Windows PE x86 (PXE) - PXE pxeboot.n12 - TEXT HELP - Boot to Windows PE 32bit - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then - echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $WIN_PE_X86-iso - MENU LABEL Windows PE x86 (ISO) - KERNEL memdisk - APPEND iso - INITRD $FILE_BASE$ISO/$WIN_PE_X86.iso - TEXT HELP - Boot to Windows PE 32bit ISO ~400MB - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then - echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -# INFO: https://www.archlinux.org/releng/netboot/ -LABEL $ARCH_NETBOOT_X86X64 - MENU LABEL Arch netboot x86 x64 -# KERNEL https://www.archlinux.org/static/netboot/ipxe.lkrn - KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel - TEXT HELP - Boot to Arch netboot x86 x64 - User: root - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then - echo -e "\e[36m add $FEDORA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc -## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html -LABEL $FEDORA_X64 - MENU LABEL Fedora x64 - KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - TEXT HELP - Boot to Fedora Workstation Live - User: liveuser - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]; then - echo -e "\e[36m add $ANDROID_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $ANDROID_X86 - MENU LABEL Android x86 - KERNEL $FILE_BASE$NFS_ETH0/$ANDROID_X86/kernel - INITRD $FILE_BASE$NFS_ETH0/$ANDROID_X86/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ANDROID_X86 ro netboot=nfs root=/dev/ram0 androidboot.selinux=permissive SRC= DATA= - TEXT HELP - Boot to Android x86 Live - User: root - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_LTS_X64 - MENU LABEL Ubuntu LTS x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu LTS x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_LTS_X86 - MENU LABEL Ubuntu LTS x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu LTS x86 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_X64 - MENU LABEL Ubuntu x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_X86 - MENU LABEL Ubuntu x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu x86 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_DAILY_X64 - MENU LABEL Ubuntu x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu x64 Daily-Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_STUDIO_X64 - MENU LABEL Ubuntu Studio x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu Studio x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_STUDIO_DAILY_X64 - MENU LABEL Ubuntu Studio x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu Studio x64 Daily-Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ -## https://wiki.ubuntu.com/FirmwareTestSuite/Reference -## http://fwts.ubuntu.com/fwts-live/?C=M;O=D -LABEL $UBUNTU_FWTS - MENU LABEL Ubuntu Live FirmwareTestSuite - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- - TEXT HELP - Boot to Ubuntu Live FirmwareTestSuite - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_LTS_X64 - MENU LABEL lubuntu LTS x64 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu LTS x64 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_LTS_X86 - MENU LABEL lubuntu LTS x86 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu LTS x86 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_X64 - MENU LABEL lubuntu x64 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu x64 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_X86 - MENU LABEL lubuntu x86 - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu x86 Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $LUBUNTU_DAILY_X64 - MENU LABEL lubuntu x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to lubuntu x64 Daily-Live - User: lubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $UBUNTU_NONPAE - MENU LABEL Ubuntu non-PAE x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to Ubuntu non-PAE x86 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then - echo -e "\e[36m add $DEBIAN_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEBIAN_X64 - MENU LABEL Debian x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Debian x64 Live LXDE - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then - echo -e "\e[36m add $DEBIAN_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEBIAN_X86 - MENU LABEL Debian x86 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Debian x86 Live LXDE - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $DEVUAN_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEVUAN_X64 - MENU LABEL Devuan x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Devuan x64 Live - User: devuan - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then - echo -e "\e[36m add $DEVUAN_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEVUAN_X86 - MENU LABEL Devuan x86 - KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Devuan x86 Live - User: devuan - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PARROT_LITE_X64 - MENU LABEL Parrot Lite x64 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Parrot Lite x64 Live (Home/Workstation) - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PARROT_FULL_X64 - MENU LABEL Parrot Full x64 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Parrot Full x64 Live (Security) - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then - echo -e "\e[36m add $GNURADIO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $GNURADIO_X64 - MENU LABEL GNU Radio x64 - KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi - INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to GNU Radio x64 Live - User: ubuntu - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $KALI_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $KALI_X64 - MENU LABEL Kali x64 - KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Kali x64 Live - User: root, Password: toor - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DEFT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEFT_X64 - MENU LABEL DEFT x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to DEFT x64 Live - User: root, Password: toor - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DEFTZ_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DEFTZ_X64 - MENU LABEL DEFT Zero x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to DEFT Zero x64 Live - User: root, Password: toor - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then - echo -e "\e[36m add $PENTOO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PENTOO_X64 - MENU LABEL Pentoo x64 - KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo - INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- - TEXT HELP - Boot to Pentoo x64 Live - User: pentoo - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then - echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $PENTOO_BETA_X64 - MENU LABEL Pentoo Beta x64 - KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo - INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- - TEXT HELP - Boot to Pentoo Beta x64 Live - User: pentoo - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then - echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $SYSTEMRESCUE_X86 - MENU LABEL System Rescue x86 - KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32 - INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/initram.igz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG - TEXT HELP - Boot to System Rescue x86 Live - User: root - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then - echo -e "\e[36m add $DESINFECT_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DESINFECT_X86 - MENU LABEL desinfect x86 - KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to ct desinfect x86 - User: desinfect - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DESINFECT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $DESINFECT_X64 - MENU LABEL desinfect x64 - KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to ct desinfect x64 - User: desinfect - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then - echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; - [ -f "$DST_NFS_ETH0/kaspersky-rescue-x86-initrd.xz" ] || ( sudo wget -O /tmp/tmp.zip https://github.com/beta-tester/RPi-PXE-Server/files/2705800/kaspersky-rescue-x86-initrd.zip && sudo unzip /tmp/tmp.zip -d $DST_NFS_ETH0/ && sudo rm /tmp/tmp.zip ); - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $KASPERSKY_RESCUE_X86 - MENU LABEL Kaspersky Rescue Disk - KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 - INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz,$FILE_BASE$NFS_ETH0/kaspersky-rescue-x86-initrd.xz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us - TEXT HELP - Boot to Kaspersky Rescue Disk - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64" ]; then - echo -e "\e[36m add $TINYCORE_x64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -# INFO: http://wiki.tinycorelinux.net/wiki:boot_options -LABEL $TINYCORE_x64 - MENU LABEL tiny core x64 - KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/vmlinuz64 - INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x64/boot/corepure64.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us - TEXT HELP - Boot to tiny core x64 - User: tc - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$TINYCORE_x86/boot/vmlinuz" ]; then - echo -e "\e[36m add $TINYCORE_x86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -# INFO: http://wiki.tinycorelinux.net/wiki:boot_options -LABEL $TINYCORE_x86 - MENU LABEL tiny core x86 - KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_x86/boot/core.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_x86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us - TEXT HELP - Boot to tiny core x86 - User: tc - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then - echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $RPDESKTOP_X86 - MENU LABEL Raspberry Pi Desktop - KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 - INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Raspberry Pi Desktop - User: pi, Password: raspberry - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $CLONEZILLA_X64 - MENU LABEL Clonezilla x64 - KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Clonezilla x64 - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then - echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $CLONEZILLA_X86 - MENU LABEL Clonezilla x86 - KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Clonezilla x86 - User: user, Password: live - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then - echo -e "\e[36m add $OPENSUSE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: Booting live images -## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 -## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image -## https://bugzilla.opensuse.org/show_bug.cgi?id=1099548 -LABEL $OPENSUSE_X64 - MENU LABEL openSUSE Leap x64 - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image -# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- - TEXT HELP - Boot to openSUSE Leap Live - User: liveuser - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then - echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -LABEL $OPENSUSE_RESCUE_X64 - MENU LABEL openSUSE Leap Rescue x64 - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- -# APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- -# APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - TEXT HELP - Boot to openSUSE Leap Rescue Live - User: liveuser - ENDTEXT -EOF"; - fi -#=========== END =========== - -#========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then - echo -e "\e[36m add $CENTOS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel -## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup -## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc -## NOT WORKING -LABEL $CENTOS_X64 - MENU LABEL CentOS x64 - KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img - #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# mount.nfs: mountpoint /sysroot is not a directory - #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - -# Warning: Could not boot. - # Warning: /dev/mapper/live-rw does not exist - # Starting Dracut Emergency Shell - APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - - TEXT HELP - Boot to CentOS LiveGNOME - User: liveuser - ENDTEXT -EOF"; - fi +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then + echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + # INFO: https://www.archlinux.org/releng/netboot/ + LABEL $ARCH_NETBOOT_X86X64 + MENU LABEL Arch netboot x86 x64 + # KERNEL https://www.archlinux.org/static/netboot/ipxe.lkrn + KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel + TEXT HELP + Boot to Arch netboot x86 x64 + User: root + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $CLONEZILLA_X64 + MENU LABEL Clonezilla x64 + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Clonezilla x64 + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $CLONEZILLA_X86 + MENU LABEL Clonezilla x86 + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Clonezilla x86 + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then + echo -e "\e[36m add $DEBIAN_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEBIAN_X64 + MENU LABEL Debian x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Debian x64 Live LXDE + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then + echo -e "\e[36m add $DEBIAN_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEBIAN_X86 + MENU LABEL Debian x86 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Debian x86 Live LXDE + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFTZ_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEFTZ_X64 + MENU LABEL DEFT Zero x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to DEFT Zero x64 Live + User: root, Password: toor + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEFT_X64 + MENU LABEL DEFT x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to DEFT x64 Live + User: root, Password: toor + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $DEVUAN_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEVUAN_X64 + MENU LABEL Devuan x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Devuan x64 Live + User: devuan + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then + echo -e "\e[36m add $DEVUAN_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEVUAN_X86 + MENU LABEL Devuan x86 + KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Devuan x86 Live + User: devuan + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then + echo -e "\e[36m add $FEDORA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel + ## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc + ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html + LABEL $FEDORA_X64 + MENU LABEL Fedora x64 + KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + TEXT HELP + Boot to Fedora Workstation Live + User: liveuser + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then + echo -e "\e[36m add $GNURADIO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $GNURADIO_X64 + MENU LABEL GNU Radio x64 + KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi + INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to GNU Radio x64 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $KALI_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $KALI_X64 + MENU LABEL Kali x64 + KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Kali x64 Live + User: root, Password: toor + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then + echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; + [ -f "$DST_NFS_ETH0/kaspersky-rescue-x86-initrd.xz" ] || ( sudo wget -O /tmp/tmp.zip https://github.com/beta-tester/RPi-PXE-Server/files/2705800/kaspersky-rescue-x86-initrd.zip && sudo unzip /tmp/tmp.zip -d $DST_NFS_ETH0/ && sudo rm /tmp/tmp.zip ); + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $KASPERSKY_RESCUE_X86 + MENU LABEL Kaspersky Rescue Disk + KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 + INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz,$FILE_BASE$NFS_ETH0/kaspersky-rescue-x86-initrd.xz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us + TEXT HELP + Boot to Kaspersky Rescue Disk + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $LUBUNTU_DAILY_X64 + MENU LABEL lubuntu x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu x64 Daily-Live + User: lubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $LUBUNTU_LTS_X64 + MENU LABEL lubuntu LTS x64 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu LTS x64 Live + User: lubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $LUBUNTU_LTS_X86 + MENU LABEL lubuntu LTS x86 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu LTS x86 Live + User: lubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $LUBUNTU_X64 + MENU LABEL lubuntu x64 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu x64 Live + User: lubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $LUBUNTU_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $LUBUNTU_X86 + MENU LABEL lubuntu x86 + KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to lubuntu x86 Live + User: lubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $PARROT_FULL_X64 + MENU LABEL Parrot Full x64 + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Parrot Full x64 Live (Security) + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $PARROT_LITE_X64 + MENU LABEL Parrot Lite x64 + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Parrot Lite x64 Live (Home/Workstation) + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then + echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $PENTOO_BETA_X64 + MENU LABEL Pentoo Beta x64 + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + TEXT HELP + Boot to Pentoo Beta x64 Live + User: pentoo + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then + echo -e "\e[36m add $PENTOO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $PENTOO_X64 + MENU LABEL Pentoo x64 + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + TEXT HELP + Boot to Pentoo x64 Live + User: pentoo + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then + echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $RPDESKTOP_X86 + MENU LABEL Raspberry Pi Desktop + KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 + INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Raspberry Pi Desktop + User: pi, Password: raspberry + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then + echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $SYSTEMRESCUE_X86 + MENU LABEL System Rescue x86 + KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32 + INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/initram.igz + APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG + TEXT HELP + Boot to System Rescue x86 Live + User: root + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then + echo -e "\e[36m add $TINYCORE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + # INFO: http://wiki.tinycorelinux.net/wiki:boot_options + LABEL $TINYCORE_X64 + MENU LABEL tiny core x64 + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + TEXT HELP + Boot to tiny core x64 + User: tc + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]; then + echo -e "\e[36m add $TINYCORE_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + # INFO: http://wiki.tinycorelinux.net/wiki:boot_options + LABEL $TINYCORE_X86 + MENU LABEL tiny core x86 + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + TEXT HELP + Boot to tiny core x86 + User: tc + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_DAILY_X64 + MENU LABEL Ubuntu x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu x64 Daily-Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ + ## https://wiki.ubuntu.com/FirmwareTestSuite/Reference + ## http://fwts.ubuntu.com/fwts-live/?C=M;O=D + LABEL $UBUNTU_FWTS + MENU LABEL Ubuntu Live FirmwareTestSuite + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- + TEXT HELP + Boot to Ubuntu Live FirmwareTestSuite + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_LTS_X64 + MENU LABEL Ubuntu LTS x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu LTS x64 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_LTS_X86 + MENU LABEL Ubuntu LTS x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu LTS x86 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_STUDIO_DAILY_X64 + MENU LABEL Ubuntu Studio x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu Studio x64 Daily-Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_STUDIO_X64 + MENU LABEL Ubuntu Studio x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu Studio x64 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_X64 + MENU LABEL Ubuntu x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu x64 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_X86 + MENU LABEL Ubuntu x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu x86 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + + + +########################################################################## +#custom# + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $DESINFECT_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DESINFECT_X86 + MENU LABEL desinfect x86 + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to ct desinfect x86 + User: desinfect + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DESINFECT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DESINFECT_X64 + MENU LABEL desinfect x64 + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to ct desinfect x64 + User: desinfect + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $UBUNTU_NONPAE + MENU LABEL Ubuntu non-PAE x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to Ubuntu non-PAE x86 Live + User: ubuntu + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then + echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $WIN_PE_X86-pxe + MENU LABEL Windows PE x86 (PXE) + PXE pxeboot.n12 + TEXT HELP + Boot to Windows PE 32bit + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then + echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $WIN_PE_X86-iso + MENU LABEL Windows PE x86 (ISO) + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$WIN_PE_X86.iso + TEXT HELP + Boot to Windows PE 32bit ISO ~400MB + ENDTEXT +EOF"; +fi +#=========== END =========== + + + +########################################################################## +#broken# + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]; then + echo -e "\e[36m add $ANDROID_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $ANDROID_X86 + MENU LABEL Android x86 (broken) + KERNEL $FILE_BASE$NFS_ETH0/$ANDROID_X86/kernel + INITRD $FILE_BASE$NFS_ETH0/$ANDROID_X86/initrd.img + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ANDROID_X86 ro netboot=nfs root=/dev/ram0 androidboot.selinux=permissive SRC= DATA= + TEXT HELP + Boot to Android x86 Live + User: root + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then + echo -e "\e[36m add $CENTOS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel + ## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup + ## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc + ## NOT WORKING + LABEL $CENTOS_X64 + MENU LABEL CentOS x64 (broken) + KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 + INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img + #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + + # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + + # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + + # mount.nfs: mountpoint /sysroot is not a directory + #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + + # Warning: Could not boot. + # Warning: /dev/mapper/live-rw does not exist + # Starting Dracut Emergency Shell + APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + + TEXT HELP + Boot to CentOS LiveGNOME + User: liveuser + ENDTEXT +EOF"; +fi #========== END ========== #========== BEGIN ========== - if [ -f "$FILE_MENU" ] \ - && [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $TAILS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU -######################################## -## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten -## NOT WORKING -LABEL $TAILS_X64 - MENU LABEL Tails x64 - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img - #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - TEXT HELP - Boot to Tails x64 Live (modprobe r8169; exit) - ENDTEXT -EOF"; - fi +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $OPENSUSE_RESCUE_X64 + MENU LABEL openSUSE Leap Rescue x64 (broken) + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- + #APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- + #APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + TEXT HELP + Boot to openSUSE Leap Rescue Live + User: liveuser + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: Booting live images + ## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 + ## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image + ## https://bugzilla.opensuse.org/show_bug.cgi?id=1099548 + LABEL $OPENSUSE_X64 + MENU LABEL openSUSE Leap x64 (broken) + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image + #APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image + #APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- + TEXT HELP + Boot to openSUSE Leap Live + User: liveuser + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then + echo -e "\e[36m add $TAILS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten + ## NOT WORKING + LABEL $TAILS_X64 + MENU LABEL Tails x64 (broken) + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img + #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG + APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG + TEXT HELP + Boot to Tails x64 Live (modprobe r8169; exit) + ENDTEXT +EOF"; +fi #========== END ========== diff --git a/p2-include-url.sh b/p2-include-url.sh index 7a7aabd..6a74dbb 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -18,114 +18,138 @@ fi ## update the url, if iso is outdated ########################################################################## ########################################################################## -WIN_PE_X86=win-pe-x86 -WIN_PE_X86_URL= - -ARCH_NETBOOT_X86X64=arch-netboot-x86x64 -ARCH_NETBOOT_X86X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn - -FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso - -ANDROID_X86=android-x86 -ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-rc2.iso - -UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso -UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso -UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso -UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso -UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso -UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso -UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img +ARCH_NETBOOT_X64=arch-netboot-x64 +ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn -LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso -LUBUNTU_LTS_X86=lubuntu-lts-x86 -LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso -LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso -LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso -LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso +CLONEZILLA_X64=clonezilla-x64 +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-amd64.iso -UBUNTU_NONPAE=ubuntu-nopae -UBUNTU_NONPAE_URL= +CLONEZILLA_X86=clonezilla-x86 +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso DEBIAN_KVER=4.9.0-8 + DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.6.0-amd64-lxde.iso + DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.6.0-i386-lxde.iso +DEFTZ_X64=deftz-x64 +DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso + +DEFT_X64=deft-x64 +DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso + DEVUAN_X64=devuan-x64 DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso + DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso -PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-home-4.4_amd64.iso -PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-security-4.4_amd64.iso +FEDORA_X64=fedora-x64 +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso -DEFT_X64=deft-x64 -DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso -DEFTZ_X64=deftz-x64 -DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso - KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.4-amd64.iso -PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso +KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 +KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso + +LUBUNTU_DAILY_X64=lubuntu-daily-x64 +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso + +LUBUNTU_LTS_X64=lubuntu-lts-x64 +LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso + +LUBUNTU_LTS_X86=lubuntu-lts-x86 +LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso + +LUBUNTU_X64=lubuntu-x64 +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso + +LUBUNTU_X86=lubuntu-x86 +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso + +PARROT_FULL_X64=parrot-full-x64 +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-security-4.4_amd64.iso + +PARROT_LITE_X64=parrot-lite-x64 +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-home-4.4_amd64.iso + PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso +PENTOO_X64=pentoo-x64 +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso + +RPDESKTOP_X86=rpdesktop-x86 +RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest + SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.2/systemrescuecd-x86-5.3.2.iso -DESINFECT_X86=desinfect-x86 -DESINFECT_X86_URL= +TINYCORE_X64=tinycore-x64 +TINYCORE_X64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso + +TINYCORE_X86=tinycore-x86 +TINYCORE_X86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso + +UBUNTU_DAILY_X64=ubuntu-daily-x64 +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso + +UBUNTU_FWTS=ubuntu-fwts +UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img + +UBUNTU_LTS_X64=ubuntu-lts-x64 +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso + +UBUNTU_LTS_X86=ubuntu-lts-x86 +UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso + +UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso + +UBUNTU_STUDIO_X64=ubuntu-studio-x64 +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso + +UBUNTU_X64=ubuntu-x64 +UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso + + +#custom# DESINFECT_X64=desinfect-x64 DESINFECT_X64_URL= -KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 -KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso +DESINFECT_X86=desinfect-x86 +DESINFECT_X86_URL= -TINYCORE_x64=tinycore-x64 -TINYCORE_x64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_x86=tinycore-x86 -TINYCORE_x86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso +UBUNTU_NONPAE=ubuntu-nopae +UBUNTU_NONPAE_URL= -RPDESKTOP_X86=rpdesktop-x86 -RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest +WIN_PE_X86=win-pe-x86 +WIN_PE_X86_URL= -CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-amd64.iso -CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso -OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso +#broken# +ANDROID_X86=android-x86 +ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-rc2.iso + +CENTOS_X64=centos-x64 +CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso + OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso +OPENSUSE_X64=opensuse-x64 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso + TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.11/tails-amd64-3.11.iso -CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso - ########################################################################## ########################################################################## @@ -139,9 +163,13 @@ CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86 PI_CORE=pi-core PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip -RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest -RPD_FULL=rpi-raspbian-full -RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest + RPD_BASIC=rpi-raspbian-basic RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest + +RPD_FULL=rpi-raspbian-full +RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest + +RPD_LITE=rpi-raspbian-lite +RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest + From 36559a81d10025f982631b5a5923828fcebe338d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 26 Dec 2018 11:56:25 +0100 Subject: [PATCH 181/694] changed FILE_BASE honstmane to IP --- install-pxe-server_pass2.sh | 2 +- p2-include-menu.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 65bca1c..b4ca68e 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -453,7 +453,7 @@ handle_pxe_menu() { # $2 : menu file name ###################################################################### local FILE_MENU=$DST_TFTP_ETH0/$1/pxelinux.cfg/$2 - local FILE_BASE=http://$(hostname) + local FILE_BASE=http://$IP_ETH0 ###################################################################### ## INFO: ## The entry before -- means that it will be used by the live system / the installer diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 20b17bd..4f4f793 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -12,17 +12,17 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel" ]; then - echo -e "\e[36m add $ARCH_NETBOOT_X86X64\e[0m"; +&& [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X64/kernel" ]; then + echo -e "\e[36m add $ARCH_NETBOOT_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## # INFO: https://www.archlinux.org/releng/netboot/ - LABEL $ARCH_NETBOOT_X86X64 - MENU LABEL Arch netboot x86 x64 + LABEL $ARCH_NETBOOT_X64 + MENU LABEL Arch netboot x64 # KERNEL https://www.archlinux.org/static/netboot/ipxe.lkrn - KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X86X64/kernel + KERNEL $FILE_BASE$NFS_ETH0/$ARCH_NETBOOT_X64/kernel TEXT HELP - Boot to Arch netboot x86 x64 + Boot to Arch netboot x64 User: root ENDTEXT EOF"; From 2b1bf5359035d52f61980b2b5db159f4906fbf82 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 26 Dec 2018 12:15:16 +0100 Subject: [PATCH 182/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b4ca68e..7d19483 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -40,8 +40,6 @@ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # -# v2018-12-23 -# # known issues: # overlayfs can not get exported via nfs # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy From ebf9c79402154914ee369a55a4c7871ef001c90b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 26 Dec 2018 12:17:06 +0100 Subject: [PATCH 183/694] Update p2-include-menu.sh --- p2-include-menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 4f4f793..39cd133 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -883,7 +883,7 @@ if [ -f "$FILE_MENU" ] \ #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG TEXT HELP - Boot to Tails x64 Live (modprobe r8169; exit) + Boot to Tails x64 Live ENDTEXT EOF"; fi From 284b631a87497d03985a847f37349edc63075719 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 28 Dec 2018 01:07:16 +0100 Subject: [PATCH 184/694] fix: searching internal LAN adapter --- p2-include-var.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/p2-include-var.sh b/p2-include-var.sh index bf8e21a..974cb57 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -31,10 +31,17 @@ RPI_SN1=-------- RPI_SN2=-------- RPI_SN3=-------- ########################################################################## -INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) +INTERFACE_ETH0= INTERFACE_ETH1=eth1 INTERFACE_WLAN0=wlan0 ########################################################################## +if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1:1.0/net ]; then +INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1:1.0/net) +fi +if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/*/1-1.1.1:1.0/net ]; then +INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/*/1-1.1.1:1.0/net) +fi +########################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') IP_ETH0_0=$(echo $(echo $IP_ETH0_)0) From 6646cb8d2a16bc9aea2fce35017f64a84f5c770a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 28 Dec 2018 01:18:57 +0100 Subject: [PATCH 185/694] Update p2-include-handle.sh --- p2-include-handle.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 7a5f4b0..31bd6eb 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -21,7 +21,7 @@ fi ########################################################################## _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; _unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -_unhandle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEFT_X64 $DEFT_X64_URL; @@ -29,21 +29,21 @@ _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -_unhandle_iso $KALI_X64 $KALI_X64_URL; +handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; _unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; -_unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; +handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -_unhandle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; _unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; -_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; -handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; +_unhandle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; _unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; @@ -58,14 +58,14 @@ _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; #broken# -#_unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; -#_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; -#_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -#_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -#_unhandle_iso $TAILS_X64 $TAILS_X64_URL; +_unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; +_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; +_unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## -#_unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; +_unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; ########################################################################## handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; From c15fcd719043cc4baefb7db11de3808c45918a7f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 3 Jan 2019 09:07:41 +0100 Subject: [PATCH 186/694] Update README.md --- README.md | 152 ++++++++++++++---------------------------------------- 1 file changed, 39 insertions(+), 113 deletions(-) diff --git a/README.md b/README.md index 0b085c8..13854ea 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ # install-pxe-server -setup a Raspberry Pi as an PXE-Server. - -it is a private project i have made for myself. - +setup a Raspberry Pi as a PXE-Server.
+it is a private project i have made for myself.
i did not keeped an eye on network security. **USE IT AT YOUR OWN RISK.** ## what is it good for? -the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, Time, PXE server. +the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, NTP, PXE server. and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see **note4**) +**Please give me a '_Star_', if you find that project useful.** + ### overview schematic: ``` ╔══════════╗ ╔═══╗ ╔══════╗╔═════════╗ @@ -34,29 +34,31 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ ### hardware: - Raspberry Pi (with LAN) - SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) -- USB memory stick (for preloaded iso images), (e.g. 64GByte) +- USB memory stick (optional, to store preloaded iso images), (e.g. 64GByte) - working network environment with a connection to internet - optional: second ethernet interface (via USB) - optional: built-in WLAN interface (as that one of RPi3, or an external one via USB) -optional, if your SD card is too small or you dont want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the scripts. +optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspbian Stretch** or **Raspbina Stretch Lite** (2018-03-13), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspbian Stretch** or **Raspbina Stretch Lite** (2018-11-13), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2018-03-13, +- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2018-11-13, - and has a proper connection to the internet via LAN (eth0). -- and your SD card can hold all the iso images (41GB when you use unmodified script), -- and you have plugged an USB-memory-stick that has the has a label **PXE-Server** +- and your SD card can hold all the iso images (16GB when you use unmodified script) + +and optional: +- you have plugged an USB-memory-stick that has the has a label **PXE-Server** - and the folowing folder structure on the USB memory stick: ``` └── backup ├── img └── iso - + mkdir -p /backup/img mkdir -p /backup/iso ``` @@ -84,55 +86,39 @@ replace **** with the path, where you mounted your USB stick. done. ## update: -to update your images, update the url in the **install-pxe-server_pass2.sh** file and re-run `bash install-pxe-server_pass2.sh`. +to update your images, update the url in the **p2-include-url.sh** file
+and re-run `bash install-pxe-server_pass2.sh`. this will download all updated iso files. ## modifying the script: ### p2-include-var.sh includes all important variables like source and destination directories, ip-addresses, and so on. +e.g.: by changing '**DST_ROOT=/srv**' you can tell the script to download and store all iso to an external storage, instead of storing to the internal SD card. + ### p2-include-url.sh includes all url and name of images ``` e.g. -RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://.../...zip +DEBIAN_X64=debian-x64 +DEBIAN_X64_URL=https://... ``` ### p2-include-menu.sh includes all pxe-menu entries and kernel parameters +in the script, for each image there is a pxe-menu entry enclosed by
+`#========== BEGIN ==========`
+and
+`#=========== END ===========`
+comments. ### p2-include-handle.sh includes all handler to control what image to download and expose to the pxe-server -**if you don't want some iso images getting downloaded and mounted, you can comment out lines +**if you don't want some iso images getting downloaded and mounted, you can comment out lines to do not handle the image.
+or rename handle to __unhandle to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
e.g.:** ``` -###################################################################### -##handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -#handle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -#handle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -#handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; -#handle_iso $UBUNTU_X86 $UBUNTU_X86_URL; -#handle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; -##handle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -#handle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -#handle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -#handle_iso $PARROT_LITE_X86 $PARROT_LITE_X86_URL; -#handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -#handle_iso $PARROT_FULL_X86 $PARROT_FULL_X86_URL; -#handle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -#handle_iso $DEFT_X64 $DEFT_X64_URL; -#handle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; -#handle_iso $KALI_X64 $KALI_X64_URL; -#handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -#handle_iso $SYSTEMRESCTUE_X86 $SYSTEMRESCTUE_X86_URL; -##handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -handle_iso $TINYCORE_x64 $TINYCORE_x64_URL timestamping; -handle_iso $TINYCORE_x86 $TINYCORE_x86_URL timestamping; -handle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL; -#handle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -#handle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -#handle_iso $FEDORA_X64 $FEDORA_X64_URL; +#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; ... ``` **same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines @@ -144,24 +130,21 @@ handle_zip_img $RPD_LITE $RPD_LITE_URL; ``` ## what else you should know, when you make modification to the script... -there are four importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. -1. the ISO or NSF path relative to the TFTP root path.
-(on disk `/srv/tftp/iso`, `/srv/tftp/nfs` as symbolik link). -2. the ISO or NFS path relative to the pxe boot menu root path
+there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. +1. the ISO or NFS path relative to the pxe boot menu root path
(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). -3. the ISO or NFS path repative to the nfs root path
-(on disk `/srv/iso`, `/srv/nfs`).
-4. the ISO, IMG or NFS path located at /var/www/html
-(on disk /var/www/html/iso, /var/www/html/img, /var/www/html/nfs). +2. the ISO or NFS path repative to the nfs root path
+(on disk `/srv/iso`, `/srv/nfs`). +3. the ISO, IMG or NFS path located at /var/www/html
+(on disk `/var/www/html/iso`, `/var/www/html/img`, `/var/www/html/nfs`). ``` / ├── srv +| ├── img (the real physical location of IMG files) | ├── iso (the real physical location of ISO files) | ├── nfs (the real physical location of NFS files or mountpoints) -| | +| | | └── tftp (TFTP root) -| ├── iso (only a symbolic link to ISO files) -| ├── nfs (only a symbolic link to NFS files) | | | └── menu-bios (PXE boot menu root for BIOS) | ├── iso (only a symbolic link to ISO files) @@ -174,6 +157,7 @@ there are four importent locations for the pxe boot and the pxe menu that must f ├── iso (only a symbolic link to ISO files) └── nfs (only a symbolic link to NFS files) ``` + if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match pxe menu entries to file structure on disk. @@ -234,64 +218,6 @@ and another issue is, overlayfs can't handle **vfat** partitions as source (lowe ║ └───────────╥─┘ └─────────────────┘ ╚═════════════╝ ``` -## note: -the script will copy/download/mount following ISOs: -``` -win-pe-x86.iso # Microsoft Windows PE, can not be downloaded, you have to create by yourself -ubuntu-lts-x64.iso # Ubuntu LTS -ubuntu-lts-x86.iso -ubuntu-x64.iso # Ubuntu -ubuntu-x86.iso -ubuntu-nopae.iso # an old Ubuntu with non-PAE for old PCs -debian-x64.iso # Debian -debian-x86.iso -parrot-lite-x64.iso # Parrot Security + Home/Workstation -parrot-lite-x86.iso -parrot-full-x64.iso -parrot-full-x86.iso -gnuradio-x64.iso # GNU Radio -deft-x64.iso # DEFT -deftz-x64.iso -kali-x64.iso # Kali Linux -pentoo-x64.iso # Pentoo Linux -systemrescue-x86.iso # System Rescue -desinfect-x86.iso # c't desinfect, is not downloadable, you have to get by yourself -tinycore-x86.iso # tiny core ~16MB minimal linux. -tinycore-x64.iso # tiny core ~16MB minimal linux. -rpdesktop-x86.iso # Raspberry Pi Desktop for x86 PC -clonezilla-x64.iso # clonezilla -clonezilla-x86.iso -... -``` - -the following url files will contain the url of the iso image, where to download, to compare if you have the requested iso already downloaded, to prevent downloading an iso newly, when it is done already. -``` -win-pe-x86.url -ubuntu-lts-x64.url -ubuntu-lts-x86.url -ubuntu-x64.url -ubuntu-x86.url -ubuntu-nopae.url -debian-x64.url -debian-x86.url -parrot-lite-x64.url -parrot-lite-x86.url -parrot-full-x64.url -parrot-full-x86.url -gnuradio-x64.url -deft-x64.url -deftz-x64.url -kali-x64.url -pentoo-x64.url -systemrescue-x86.url -desinfect-x86.url -tinycore-x86.url -tinycore-x64.url -rpdesktop-x86.url -clonezilla-x64.url -clonezilla-x86.url -... -``` ## note2: some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). @@ -308,7 +234,7 @@ CUSTOM_TIMEZONE=Europe/Berlin ``` ## note3: -it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet, because of lack of hardware for UEFI boot +it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet by me, because of lack of hardware for UEFI boot. ## note4: NETWORK BOOTING for Raspberry Pi 3 client the server is prepared for to boot a Raspberry Pi 3 client via network. From 84eced0b21e211237f0b22d550cf36d194ba81de Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 3 Jan 2019 09:10:35 +0100 Subject: [PATCH 187/694] Win -> Unix --- README.md | 516 +++++++++++++++++++++++++++--------------------------- 1 file changed, 258 insertions(+), 258 deletions(-) diff --git a/README.md b/README.md index 13854ea..a4967a3 100644 --- a/README.md +++ b/README.md @@ -1,258 +1,258 @@ -# install-pxe-server -setup a Raspberry Pi as a PXE-Server.
-it is a private project i have made for myself.
-i did not keeped an eye on network security. - -**USE IT AT YOUR OWN RISK.** - -## what is it good for? -the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, NTP, PXE server. -and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. - -the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. - -it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see **note4**) - -**Please give me a '_Star_', if you find that project useful.** - -### overview schematic: -``` - ╔══════════╗ ╔═══╗ ╔══════╗╔═════════╗ -WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ - ╚══════════╝ ║ w ║ ║PXE- ║╚═════════╝ - ║ i ║ ║server║ ╔═══════════════════════╗ - ╔══════╗ ║ t ╟───eth0╢──┬───╟wlan0───╢ PC4 IP:192.168.251.100║ - ║ RPi3 ╟──────╢ c ║ ║ │NAT║ ╔╩══════════════════════╗╝ - ╚══════╝ ┌──╢ h ╟──┐ ║ └───╟eth1───╢ PC3 IP:192.168.250.100║ - │ ╚═══╝ │ ╚══════╝ ╚═══════════════════════╝ - ╔══╧══╗ ╔══╧══╗ - ║ PC1 ║ ║ PC2 ║ - ╚═════╝ ╚═════╝ -``` - -## requirements -### hardware: -- Raspberry Pi (with LAN) -- SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) -- USB memory stick (optional, to store preloaded iso images), (e.g. 64GByte) -- working network environment with a connection to internet -- optional: second ethernet interface (via USB) -- optional: built-in WLAN interface (as that one of RPi3, or an external one via USB) - -optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. - -### software: -- **Raspbian Stretch** or **Raspbina Stretch Lite** (2018-11-13), https://www.raspberrypi.org/downloads/raspbian/) - -## installation: -assuming, -- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2018-11-13, -- and has a proper connection to the internet via LAN (eth0). -- and your SD card can hold all the iso images (16GB when you use unmodified script) - -and optional: -- you have plugged an USB-memory-stick that has the has a label **PXE-Server** -- and the folowing folder structure on the USB memory stick: -``` - -└── backup - ├── img - └── iso - -mkdir -p /backup/img -mkdir -p /backup/iso -``` - -optional structure for win-pe pxe boot -``` - -└── backup - └── tftp - ├── Boot - └── EFI - -mkdir -p /backup/tftp/Boot -mkdir -p /backup/tftp/EFI -``` -replace **** with the path, where you mounted your USB stick. - -1. run `bash install-pxe-server_pass1.sh` to install necessary packages
-(use **_bash_** and do not run it from **_sudo_**) -2. reboot your RPi with `sudo reboot` -3. run `bash install-pxe-server_pass2.sh` to copy/download iso images of LiveDVDs, mount and export them and setup PXE menu according installed images.
-(use **_bash_** and do not run it from **_sudo_**) -4. reboot your RPi with `sudo reboot` - -done. - -## update: -to update your images, update the url in the **p2-include-url.sh** file
-and re-run `bash install-pxe-server_pass2.sh`. -this will download all updated iso files. - -## modifying the script: -### p2-include-var.sh -includes all important variables like source and destination directories, ip-addresses, and so on. -e.g.: by changing '**DST_ROOT=/srv**' you can tell the script to download and store all iso to an external storage, instead of storing to the internal SD card. - -### p2-include-url.sh -includes all url and name of images -``` -e.g. -DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://... -``` - -### p2-include-menu.sh -includes all pxe-menu entries and kernel parameters -in the script, for each image there is a pxe-menu entry enclosed by
-`#========== BEGIN ==========`
-and
-`#=========== END ===========`
-comments. - -### p2-include-handle.sh -includes all handler to control what image to download and expose to the pxe-server -**if you don't want some iso images getting downloaded and mounted, you can comment out lines to do not handle the image.
-or rename handle to __unhandle to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
-e.g.:** -``` -#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -... -``` -**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines -e.g.:** -``` -###################################################################### -handle_zip_img $RPD_LITE $RPD_LITE_URL; -# handle_zip_img $RPD_FULL $RPD_FULL_URL; -``` - -## what else you should know, when you make modification to the script... -there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. -1. the ISO or NFS path relative to the pxe boot menu root path
-(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). -2. the ISO or NFS path repative to the nfs root path
-(on disk `/srv/iso`, `/srv/nfs`). -3. the ISO, IMG or NFS path located at /var/www/html
-(on disk `/var/www/html/iso`, `/var/www/html/img`, `/var/www/html/nfs`). -``` -/ -├── srv -| ├── img (the real physical location of IMG files) -| ├── iso (the real physical location of ISO files) -| ├── nfs (the real physical location of NFS files or mountpoints) -| | -| └── tftp (TFTP root) -| | -| └── menu-bios (PXE boot menu root for BIOS) -| ├── iso (only a symbolic link to ISO files) -| └── nfs (only a symbolic link to NFS files) -| -└── var - └── www - └── html (HTML root) - ├── img (only a symbolic link to IMG files) - ├── iso (only a symbolic link to ISO files) - └── nfs (only a symbolic link to NFS files) -``` - -if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match -pxe menu entries to file structure on disk. - -what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
-the root for NFS is defined in `/etc/exports`.
-the root for HTML is defined in the **_lighttpd_** configuration file `/etc/lighttpd/lighttpd.conf`. -## mount scenarios for pxe boot: -### direct readonly mounting content of ISO: -e.g. ubuntu-lts-x64 iso image
-no problems. pxe boot job can access to required content. -``` -╔═════════════╗ -║iso-file ║ -║ ║ -║ ┌───────────╨─┐ -║ │mount loop │ -║ │ │ -║ │ ├───┤nfs* -║ │ │ -║ └───────────╥─┘ -╚═════════════╝ -``` -### mounting content of disk image and make content read/writalbe by overlayfs: -e.g. rpi-raspbian-full
-this disk image contains two partitions. the first is the boot partition and the second is the root parition. -to make the images read/writable, there is an overlayfs putted on top.
-(lowerdir is the readonly source, upperdir is the writable difference, workdir is an temporarily workfolder for internal use. the mergeddir is the sum of lower + upper. write access happens only on the upperdir with white-out and write-on-modify capability)
-but unfortunately overlayfs can't get exported directly for nfs. so putting a bindfs on top of the overlayfs makes it possible to get exported for nfs.
-and another issue is, overlayfs can't handle **vfat** partitions as source (lowerdir). putting bindfs between makes overlayfs happy.
-**note: this overlayfs+bindfs construction does NOT work reliably - data loss!** -``` -╔═════════════╗ -║img-file ║ -║ ║ -║ ┌───────────╨─┐ ┌─────────────┐ ┌─────────────────┐ ┌─────────────┐ -║ │mount loop │ │mount bindfs │ │mount overlayfs │ │mount bindfs │ -║ │ vfat │ │ prepare to │ ├───────┐ ┌───────┴─┐ │ prepage to │ -║ │ boot ├─┼ overlayfs ├─┼ lower │ │merged ├─┼ export nfs ├───┤nfs* -║ │ │ └─────────────┘ ├───────┘ └───────┬─┘ └─────────────┘ -║ │ │ │ ┌───────┴─┐ -║ │ vfat │ │ │upper ├─┤diff* -║ │ can't be │ │can't be └───────┬─┘ -║ │ handled │ │handled ┌───────┴─┐ -║ │ by │ │by │work ├─┤tmp* -║ │ overlayfs │ │exportfs └───────┬─┘ -║ └───────────╥─┘ └─────────────────┘ -║ ┌───────────╨─┐ ┌─────────────────┐ ┌─────────────┐ -║ │mount loop │ │mount overlayfs │ │mount bindfs │ -║ │ ext4 │ ├───────┐ ┌───────┴─┐ │ prepare to │ -║ │ root ├─────────────────┼ lower │ │merged ├─┼ export nfs ├───┤nfs* -║ │ │ ├───────┘ └───────┬─┘ └─────────────┘ -║ │ │ │ ┌───────┴─┐ -║ │ │ │ │upper ├─┤diff* -║ │ │ │can't be └───────┬─┘ -║ │ │ │handled ┌───────┴─┐ -║ │ │ │by │work ├─┤tmp* -║ │ │ │exportfs └───────┬─┘ -║ └───────────╥─┘ └─────────────────┘ -╚═════════════╝ -``` - -## note2: -some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). -if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries - -to easily change the language to your favorite ones, there are variables on the top part of the script. -``` -CUSTOM_LANG=de -CUSTOM_LANG_LONG=de_DE -CUSTOM_LANG_UPPER=DE -CUSTOM_LANG_WRITTEN=German -CUSTOM_LANG_EXT=de-latin1-nodeadkeys -CUSTOM_TIMEZONE=Europe/Berlin -``` - -## note3: -it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet by me, because of lack of hardware for UEFI boot. - -## note4: NETWORK BOOTING for Raspberry Pi 3 client -the server is prepared for to boot a Raspberry Pi 3 client via network. -in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
-skip the leading '00000000'. take only the last 8 digits!
-e.g. -``` -pi@raspberry-$ cat /proc/cpuinfo | grep Serial -Serial : 0000000087654321 -``` -then take ```RPI_SN0=87654321```.
-if you have more than one RPi3-client for network booting you have to add them by hand to the ```/srv/tftp``` folder on the PXE-server. - -the script will download Raspbian-Stretch-Lite and prepare it for the RPi3-client with the given serial number. - -by default, a RPi3-client is not enabled for network booting. you have to enable it once. - -for more information, - -see: [Network Booting](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md)
-see: [Network Boot Your Raspberry Pi](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md) +# install-pxe-server +setup a Raspberry Pi as a PXE-Server.
+it is a private project i have made for myself.
+i did not keeped an eye on network security. + +**USE IT AT YOUR OWN RISK.** + +## what is it good for? +the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, NTP, PXE server. +and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. + +the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. + +it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see **note4**) + +**Please give me a '_Star_', if you find that project useful.** + +### overview schematic: +``` + ╔══════════╗ ╔═══╗ ╔══════╗╔═════════╗ +WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ + ╚══════════╝ ║ w ║ ║PXE- ║╚═════════╝ + ║ i ║ ║server║ ╔═══════════════════════╗ + ╔══════╗ ║ t ╟───eth0╢──┬───╟wlan0───╢ PC4 IP:192.168.251.100║ + ║ RPi3 ╟──────╢ c ║ ║ │NAT║ ╔╩══════════════════════╗╝ + ╚══════╝ ┌──╢ h ╟──┐ ║ └───╟eth1───╢ PC3 IP:192.168.250.100║ + │ ╚═══╝ │ ╚══════╝ ╚═══════════════════════╝ + ╔══╧══╗ ╔══╧══╗ + ║ PC1 ║ ║ PC2 ║ + ╚═════╝ ╚═════╝ +``` + +## requirements +### hardware: +- Raspberry Pi (with LAN) +- SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) +- USB memory stick (optional, to store preloaded iso images), (e.g. 64GByte) +- working network environment with a connection to internet +- optional: second ethernet interface (via USB) +- optional: built-in WLAN interface (as that one of RPi3, or an external one via USB) + +optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. + +### software: +- **Raspbian Stretch** or **Raspbina Stretch Lite** (2018-11-13), https://www.raspberrypi.org/downloads/raspbian/) + +## installation: +assuming, +- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2018-11-13, +- and has a proper connection to the internet via LAN (eth0). +- and your SD card can hold all the iso images (16GB when you use unmodified script) + +and optional: +- you have plugged an USB-memory-stick that has the has a label **PXE-Server** +- and the folowing folder structure on the USB memory stick: +``` + +└── backup + ├── img + └── iso + +mkdir -p /backup/img +mkdir -p /backup/iso +``` + +optional structure for win-pe pxe boot +``` + +└── backup + └── tftp + ├── Boot + └── EFI + +mkdir -p /backup/tftp/Boot +mkdir -p /backup/tftp/EFI +``` +replace **** with the path, where you mounted your USB stick. + +1. run `bash install-pxe-server_pass1.sh` to install necessary packages
+(use **_bash_** and do not run it from **_sudo_**) +2. reboot your RPi with `sudo reboot` +3. run `bash install-pxe-server_pass2.sh` to copy/download iso images of LiveDVDs, mount and export them and setup PXE menu according installed images.
+(use **_bash_** and do not run it from **_sudo_**) +4. reboot your RPi with `sudo reboot` + +done. + +## update: +to update your images, update the url in the **p2-include-url.sh** file
+and re-run `bash install-pxe-server_pass2.sh`. +this will download all updated iso files. + +## modifying the script: +### p2-include-var.sh +includes all important variables like source and destination directories, ip-addresses, and so on. +e.g.: by changing '**DST_ROOT=/srv**' you can tell the script to download and store all iso to an external storage, instead of storing to the internal SD card. + +### p2-include-url.sh +includes all url and name of images +``` +e.g. +DEBIAN_X64=debian-x64 +DEBIAN_X64_URL=https://... +``` + +### p2-include-menu.sh +includes all pxe-menu entries and kernel parameters +in the script, for each image there is a pxe-menu entry enclosed by
+`#========== BEGIN ==========`
+and
+`#=========== END ===========`
+comments. + +### p2-include-handle.sh +includes all handler to control what image to download and expose to the pxe-server +**if you don't want some iso images getting downloaded and mounted, you can comment out lines to do not handle the image.
+or rename handle to __unhandle to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
+e.g.:** +``` +#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; +_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +... +``` +**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines +e.g.:** +``` +###################################################################### +handle_zip_img $RPD_LITE $RPD_LITE_URL; +# handle_zip_img $RPD_FULL $RPD_FULL_URL; +``` + +## what else you should know, when you make modification to the script... +there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. +1. the ISO or NFS path relative to the pxe boot menu root path
+(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). +2. the ISO or NFS path repative to the nfs root path
+(on disk `/srv/iso`, `/srv/nfs`). +3. the ISO, IMG or NFS path located at /var/www/html
+(on disk `/var/www/html/iso`, `/var/www/html/img`, `/var/www/html/nfs`). +``` +/ +├── srv +| ├── img (the real physical location of IMG files) +| ├── iso (the real physical location of ISO files) +| ├── nfs (the real physical location of NFS files or mountpoints) +| | +| └── tftp (TFTP root) +| | +| └── menu-bios (PXE boot menu root for BIOS) +| ├── iso (only a symbolic link to ISO files) +| └── nfs (only a symbolic link to NFS files) +| +└── var + └── www + └── html (HTML root) + ├── img (only a symbolic link to IMG files) + ├── iso (only a symbolic link to ISO files) + └── nfs (only a symbolic link to NFS files) +``` + +if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match +pxe menu entries to file structure on disk. + +what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
+the root for NFS is defined in `/etc/exports`.
+the root for HTML is defined in the **_lighttpd_** configuration file `/etc/lighttpd/lighttpd.conf`. +## mount scenarios for pxe boot: +### direct readonly mounting content of ISO: +e.g. ubuntu-lts-x64 iso image
+no problems. pxe boot job can access to required content. +``` +╔═════════════╗ +║iso-file ║ +║ ║ +║ ┌───────────╨─┐ +║ │mount loop │ +║ │ │ +║ │ ├───┤nfs* +║ │ │ +║ └───────────╥─┘ +╚═════════════╝ +``` +### mounting content of disk image and make content read/writalbe by overlayfs: +e.g. rpi-raspbian-full
+this disk image contains two partitions. the first is the boot partition and the second is the root parition. +to make the images read/writable, there is an overlayfs putted on top.
+(lowerdir is the readonly source, upperdir is the writable difference, workdir is an temporarily workfolder for internal use. the mergeddir is the sum of lower + upper. write access happens only on the upperdir with white-out and write-on-modify capability)
+but unfortunately overlayfs can't get exported directly for nfs. so putting a bindfs on top of the overlayfs makes it possible to get exported for nfs.
+and another issue is, overlayfs can't handle **vfat** partitions as source (lowerdir). putting bindfs between makes overlayfs happy.
+**note: this overlayfs+bindfs construction does NOT work reliably - data loss!** +``` +╔═════════════╗ +║img-file ║ +║ ║ +║ ┌───────────╨─┐ ┌─────────────┐ ┌─────────────────┐ ┌─────────────┐ +║ │mount loop │ │mount bindfs │ │mount overlayfs │ │mount bindfs │ +║ │ vfat │ │ prepare to │ ├───────┐ ┌───────┴─┐ │ prepage to │ +║ │ boot ├─┼ overlayfs ├─┼ lower │ │merged ├─┼ export nfs ├───┤nfs* +║ │ │ └─────────────┘ ├───────┘ └───────┬─┘ └─────────────┘ +║ │ │ │ ┌───────┴─┐ +║ │ vfat │ │ │upper ├─┤diff* +║ │ can't be │ │can't be └───────┬─┘ +║ │ handled │ │handled ┌───────┴─┐ +║ │ by │ │by │work ├─┤tmp* +║ │ overlayfs │ │exportfs └───────┬─┘ +║ └───────────╥─┘ └─────────────────┘ +║ ┌───────────╨─┐ ┌─────────────────┐ ┌─────────────┐ +║ │mount loop │ │mount overlayfs │ │mount bindfs │ +║ │ ext4 │ ├───────┐ ┌───────┴─┐ │ prepare to │ +║ │ root ├─────────────────┼ lower │ │merged ├─┼ export nfs ├───┤nfs* +║ │ │ ├───────┘ └───────┬─┘ └─────────────┘ +║ │ │ │ ┌───────┴─┐ +║ │ │ │ │upper ├─┤diff* +║ │ │ │can't be └───────┬─┘ +║ │ │ │handled ┌───────┴─┐ +║ │ │ │by │work ├─┤tmp* +║ │ │ │exportfs └───────┬─┘ +║ └───────────╥─┘ └─────────────────┘ +╚═════════════╝ +``` + +## note2: +some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). +if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries + +to easily change the language to your favorite ones, there are variables on the top part of the script. +``` +CUSTOM_LANG=de +CUSTOM_LANG_LONG=de_DE +CUSTOM_LANG_UPPER=DE +CUSTOM_LANG_WRITTEN=German +CUSTOM_LANG_EXT=de-latin1-nodeadkeys +CUSTOM_TIMEZONE=Europe/Berlin +``` + +## note3: +it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet by me, because of lack of hardware for UEFI boot. + +## note4: NETWORK BOOTING for Raspberry Pi 3 client +the server is prepared for to boot a Raspberry Pi 3 client via network. +in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
+skip the leading '00000000'. take only the last 8 digits!
+e.g. +``` +pi@raspberry-$ cat /proc/cpuinfo | grep Serial +Serial : 0000000087654321 +``` +then take ```RPI_SN0=87654321```.
+if you have more than one RPi3-client for network booting you have to add them by hand to the ```/srv/tftp``` folder on the PXE-server. + +the script will download Raspbian-Stretch-Lite and prepare it for the RPi3-client with the given serial number. + +by default, a RPi3-client is not enabled for network booting. you have to enable it once. + +for more information, + +see: [Network Booting](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md)
+see: [Network Boot Your Raspberry Pi](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md) From 6856b6f7190b781d35705dd5322b8e590f712e9b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 6 Jan 2019 13:58:40 +0100 Subject: [PATCH 188/694] updated ipxe download --- install-pxe-server_pass2.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 7d19483..d32a4f6 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -586,14 +586,10 @@ handle_ipxe() { # http://ipxe.org/howto/chainloading ###################################################################### - if [ -d "$SRC_TFTP_ETH0" ]; then - echo -e "\e[36m copy iPXE stuff\e[0m"; - if ! [ -f "$DST_TFTP_ETH0/undionly.kpxe" ] && [ -f "$SRC_TFTP_ETH0/undionly.kpxe" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/undionly.kpxe $DST_TFTP_ETH0/; fi - if ! [ -f "$DST_TFTP_ETH0/ipxe.efi" ] && [ -f "$SRC_TFTP_ETH0/ipxe.efi" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/ipxe.efi $DST_TFTP_ETH0/; fi - else + if (! compare_last_modification_time $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi); then echo -e "\e[36m download iPXE stuff\e[0m"; - sudo wget -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; sudo wget -O $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi; + sudo wget -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; fi } From 56fb4b0390067451dc21c09bd4c7f1511f71a05b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 10 Jan 2019 22:03:36 +0100 Subject: [PATCH 189/694] updated url (Clonezilla) --- install-pxe-server_pass1.sh | 2 +- install-pxe-server_pass2.sh | 26 ++++++++++++-------------- p2-include-url.sh | 6 +++--- p2-include-var.sh | 4 +++- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index d6098b2..c760123 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -137,7 +137,7 @@ sudo apt install -y lighttpd; sudo sh -c "cat << EOF >> /etc/lighttpd/lighttpd.conf ######################################## ## mod_install_server -dir-listing.activate = \"enable\" +dir-listing.activate = \"enable\" dir-listing.external-css = \"\" dir-listing.external-js = \"\" dir-listing.set-footer = \" 
\" diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index d32a4f6..ae57065 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -382,7 +382,7 @@ dns proxy = yes enhanced browsing = no #### Networking #### -interfaces = $IP_ETH0_0/24 $INTERFACE_ETH0 +interfaces = $IP_ETH0_0 $INTERFACE_ETH0 bind interfaces only = yes #### Debugging/Accounting #### @@ -589,6 +589,8 @@ handle_ipxe() { if (! compare_last_modification_time $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi); then echo -e "\e[36m download iPXE stuff\e[0m"; sudo wget -O $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi; + sudo wget -O $DST_TFTP_ETH0/ipxe.pxe https://boot.ipxe.org/ipxe.pxe; + sudo wget -O $DST_TFTP_ETH0/ipxe.iso https://boot.ipxe.org/ipxe.iso; sudo wget -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; fi } @@ -1535,24 +1537,20 @@ EOF"; ## network nat sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { echo -e "\e[36m setup iptables for nat\e[0m"; - sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE + sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over $INTERFACE_ETH0" sudo dpkg-reconfigure --unseen-only iptables-persistent } ###################################################################### - ## network nat limit access of eth1 - sudo iptables -t filter --list | grep -q DROP 2> /dev/null || { + ## network nat limit access of eth1 and wlan0 + sudo iptables-save | grep -q LIMIT-ACCESS 2> /dev/null || { echo -e "\e[36m setup iptables for limiting traffic of $INTERFACE_ETH1\e[0m"; - sudo iptables -A FORWARD ! -i $INTERFACE_ETH0 -d 8.8.8.8 -j DROP - sudo iptables -A FORWARD ! -i $INTERFACE_ETH0 -d 8.8.4.4 -j DROP - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 53 -j REDIRECT --to-port 53 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 53 -j REDIRECT --to-port 53 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 135 -j REDIRECT --to-port 135 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 135 -j REDIRECT --to-port 135 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 853 -j REDIRECT --to-port 853 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 853 -j REDIRECT --to-port 853 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p udp --dport 5353 -j REDIRECT --to-port 5353 - sudo iptables -t nat -A PREROUTING -i $INTERFACE_ETH1 -p tcp --dport 5353 -j REDIRECT --to-port 5353 + sudo iptables -t filter -A INPUT -s $IP_ETH1_0 ! -d $IP_ETH1_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" + sudo iptables -t filter -A INPUT -s $IP_WLAN0_0 ! -d $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" + sudo iptables -t filter -A FORWARD -s $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" + sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but $INTERFACE_ETH0 to local NTP server" sudo dpkg-reconfigure --unseen-only iptables-persistent } diff --git a/p2-include-url.sh b/p2-include-url.sh index 6a74dbb..feac4f9 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -#v 2018-12-23 +#v 2019-01-10 ########################################################################## ########################################################################## @@ -22,10 +22,10 @@ ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.0-37/clonezilla-live-2.6.0-37-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.5.6-22/clonezilla-live-2.5.6-22-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.0-37/clonezilla-live-2.6.0-37-i686.iso DEBIAN_KVER=4.9.0-8 diff --git a/p2-include-var.sh b/p2-include-var.sh index 974cb57..c756fda 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -44,7 +44,7 @@ fi ########################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') -IP_ETH0_0=$(echo $(echo $IP_ETH0_)0) +IP_ETH0_0=$(echo $(echo $IP_ETH0_)0)/24 IP_ETH0_START=$(echo $(echo $IP_ETH0_)200) IP_ETH0_END=$(echo $(echo $IP_ETH0_)250) IP_ETH0_ROUTER=$(echo $(ip rout show dev $INTERFACE_ETH0 | grep default | cut -d' ' -f3)) @@ -52,11 +52,13 @@ IP_ETH0_DNS=$IP_ETH0_ROUTER IP_ETH0_MASK=255.255.255.0 ########################################################################## IP_ETH1=192.168.250.1 +IP_ETH1_0=192.168.250.0/24 IP_ETH1_START=192.168.250.100 IP_ETH1_END=192.168.250.110 IP_ETH1_MASK=255.255.255.0 ########################################################################## IP_WLAN0=192.168.251.1 +IP_WLAN0_0=192.168.251.0/24 IP_WLAN0_START=192.168.251.100 IP_WLAN0_END=192.168.251.110 IP_WLAN0_MASK=255.255.255.0 From fbb579310bd20ae217c0de42a73f640e0995f26b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 19 Jan 2019 07:21:09 +0100 Subject: [PATCH 190/694] updated url (parrot) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index feac4f9..e556364 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -#v 2019-01-10 +#v 2019-01-19 ########################################################################## ########################################################################## @@ -75,10 +75,10 @@ LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-security-4.4_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5/Parrot-security-4.5_amd64.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.4/Parrot-home-4.4_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5/Parrot-home-4.5_amd64.iso PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso From b7b9c890c6334765aa81d318aa53d0d07c16ce32 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Jan 2019 18:58:45 +0100 Subject: [PATCH 191/694] updated url (tinycore) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index e556364..ce711c7 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -#v 2019-01-19 +#v 2019-01-22 ########################################################################## ########################################################################## @@ -93,10 +93,10 @@ SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.2/systemrescuecd-x86-5.3.2.iso TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/9.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso TINYCORE_X86=tinycore-x86 -TINYCORE_X86_URL=http://tinycorelinux.net/9.x/x86/release/TinyCore-current.iso +TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso From 7aa29e131711938a4f924715ded817d88a4ebb71 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 25 Jan 2019 00:22:56 +0100 Subject: [PATCH 192/694] updated url (debian) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index ce711c7..1c4e7cb 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -#v 2019-01-22 +# v 2019-01-25 ########################################################################## ########################################################################## @@ -30,10 +30,10 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.9.0-8 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.6.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.7.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.6.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.7.0-i386-lxde.iso DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso From 1d147427ea0a2fcef12bcef8a878d991740c587c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 30 Jan 2019 21:53:50 +0100 Subject: [PATCH 193/694] updated url (parrot) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 1c4e7cb..0e6df4d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-01-25 +# v 2019-01-30 ########################################################################## ########################################################################## @@ -75,10 +75,10 @@ LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5/Parrot-security-4.5_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5.1/Parrot-security-4.5.1_amd64.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5/Parrot-home-4.5_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5.1/Parrot-home-4.5.1_amd64.iso PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso From f424316bb91d42d9b5b3a38890b1c663aefbca7b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Feb 2019 07:59:23 +0100 Subject: [PATCH 194/694] changed daily build from pending to current --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 0e6df4d..5eef359 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-01-30 +# v 2019-02-01 ########################################################################## ########################################################################## @@ -60,7 +60,7 @@ KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/current/disco-desktop-amd64.iso LUBUNTU_LTS_X64=lubuntu-lts-x64 LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso @@ -99,7 +99,7 @@ TINYCORE_X86=tinycore-x86 TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/current/disco-desktop-amd64.iso UBUNTU_FWTS=ubuntu-fwts UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img @@ -111,7 +111,7 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/current/disco-dvd-amd64.iso UBUNTU_STUDIO_X64=ubuntu-studio-x64 UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso From 3db2bb88104f3668dc976bf079eb8830b74aa7d3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Feb 2019 08:03:19 +0100 Subject: [PATCH 195/694] updated url (tails) --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 5eef359..bcc8cd0 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -148,7 +148,7 @@ OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.11/tails-amd64-3.11.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.12/tails-amd64-3.12.iso ########################################################################## From 22a4ddfc018c998975c9906841dec9e199c268cd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Feb 2019 08:08:27 +0100 Subject: [PATCH 196/694] updated url (android) --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index bcc8cd0..1ec1844 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -136,7 +136,7 @@ WIN_PE_X86_URL= #broken# ANDROID_X86=android-x86 -ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-rc2.iso +ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-r1.iso CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso From 25bed2c154c50fb01212189da29c9ed6b22b6d14 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Feb 2019 08:14:15 +0100 Subject: [PATCH 197/694] updated url (centos) --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 1ec1844..ae85a69 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -139,7 +139,7 @@ ANDROID_X86=android-x86 ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-r1.iso CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1804.iso +CENTOS_X64_URL=http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso From dc1b538eca23c853698565ec3519a43f5e92b5b6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Feb 2019 08:27:40 +0100 Subject: [PATCH 198/694] fixed url --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index ae85a69..485dc53 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -139,7 +139,7 @@ ANDROID_X86=android-x86 ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-r1.iso CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso +CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso From 70f33fa32eea6847f54273246850c2eef43a15df Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Feb 2019 15:40:52 +0100 Subject: [PATCH 199/694] updated url (systemrescuecd) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 485dc53..1f4ef3a 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-01 +# v 2019-02-04 ########################################################################## ########################################################################## @@ -90,7 +90,7 @@ RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/5.3.2/systemrescuecd-x86-5.3.2.iso +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.0/systemrescuecd-x86-6.0.0.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso From d8985f096d831e282bef87edfd911e8abd136643 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Feb 2019 15:45:42 +0100 Subject: [PATCH 200/694] fixed url --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 1f4ef3a..b352109 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -90,7 +90,7 @@ RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.0/systemrescuecd-x86-6.0.0.iso +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.0/systemrescuecd-6.0.0.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso From 2f51006d8fdf8bf8bff894694c5d678ff4baeb9d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Feb 2019 21:37:34 +0100 Subject: [PATCH 201/694] fixed boot menu (pentoo) --- p2-include-menu.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 39cd133..3c91888 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -395,14 +395,14 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo" ]; then +&& [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo" ]; then echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL $PENTOO_BETA_X64 MENU LABEL Pentoo Beta x64 - KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo - INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/isolinux/pentoo.igz + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo.igz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- TEXT HELP Boot to Pentoo Beta x64 Live @@ -414,14 +414,14 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$PENTOO_X64/isolinux/pentoo" ]; then +&& [ -f "$DST_NFS_ETH0/$PENTOO_X64/boot/pentoo" ]; then echo -e "\e[36m add $PENTOO_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL $PENTOO_X64 MENU LABEL Pentoo x64 - KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo - INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/isolinux/pentoo.igz + KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/boot/pentoo + INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/boot/pentoo.igz APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- TEXT HELP Boot to Pentoo x64 Live From 683250e393f56255818a2b19e3e1fe4c6c06e16b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Feb 2019 22:14:51 +0100 Subject: [PATCH 202/694] restart hostapd only when its config was changed --- install-pxe-server_pass2.sh | 50 ++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index ae57065..3c065ab 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -103,8 +103,8 @@ handle_hostapd() { ###################################################################### grep -q mod_install_server /etc/hostapd/hostapd.conf || { - echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; - sudo sh -c "cat << EOF > /etc/hostapd/hostapd.conf + echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; + sudo sh -c "cat << EOF > /etc/hostapd/hostapd.conf ######################################## #/etc/hostapd/hostapd.conf ## mod_install_server @@ -145,20 +145,20 @@ wpa_psk=$(wpa_passphrase $SSID_WLAN0 $PASSWORD_WLAN0 | grep '[[:blank:]]psk' | c ##wpa_passphrase=$PASSWORD_WLAN0X #wpa_psk=$(wpa_passphrase $SSID_WLAN0X $PASSWORD_WLAN0X | grep '[[:blank:]]psk' | cut -d = -f2) EOF"; - } - ###################################################################### - grep -q mod_install_server /etc/default/hostapd || { - echo -e "\e[36m setup hostapd for wlan access point\e[0m"; - sudo sh -c "cat << EOF > /etc/default/hostapd + ###################################################################### + grep -q mod_install_server /etc/default/hostapd || { + echo -e "\e[36m setup hostapd for wlan access point\e[0m"; + sudo sh -c "cat << EOF > /etc/default/hostapd ######################################## #/etc/default/hostapd ## mod_install_server DAEMON_CONF=\"/etc/hostapd/hostapd.conf\" EOF"; - } + } - sudo systemctl restart hostapd.service; + sudo systemctl restart hostapd.service; + } } @@ -171,8 +171,8 @@ handle_dhcpcd() { echo -e "\e[36m a stretch os detected\e[0m"; ################################################################## grep -q mod_install_server /etc/dhcpcd.conf || { - echo -e "\e[36m setup dhcpcd.conf\e[0m"; - sudo sh -c "cat << EOF >> /etc/dhcpcd.conf + echo -e "\e[36m setup dhcpcd.conf\e[0m"; + sudo sh -c "cat << EOF >> /etc/dhcpcd.conf ######################################## ## mod_install_server interface $INTERFACE_ETH0 @@ -199,8 +199,8 @@ EOF"; echo -e "\e[36m a non-stretch os detected\e[0m"; ################################################################## grep -q mod_install_server /etc/network/interfaces || { - echo -e "\e[36m setup networking, disable dhcpcd\e[0m"; - sudo sh -c "cat << EOF > /etc/network/interfaces + echo -e "\e[36m setup networking, disable dhcpcd\e[0m"; + sudo sh -c "cat << EOF > /etc/network/interfaces ######################################## # interfaces(5) file used by ifup(8) and ifdown(8) @@ -253,11 +253,11 @@ iface $INTERFACE_WLAN0 inet static #bridge# bridge_fd 0 # no forwarding delay EOF"; - echo "nameserver $IP_ETH0_DNS" | sudo tee -a /etc/resolv.conf - sudo chattr +i /etc/resolv.conf - sudo rm /etc/resolvconf/update.d/dnsmasq - sudo systemctl disable dhcpcd.service; - sudo systemctl enable networking.service; + echo "nameserver $IP_ETH0_DNS" | sudo tee -a /etc/resolv.conf + sudo chattr +i /etc/resolv.conf + sudo rm /etc/resolvconf/update.d/dnsmasq + sudo systemctl disable dhcpcd.service; + sudo systemctl enable networking.service; } fi } @@ -269,8 +269,8 @@ handle_dnsmasq() { ###################################################################### [ -f /etc/dnsmasq.d/pxe-server ] || { - echo -e "\e[36m setup dnsmasq for pxe\e[0m"; - sudo sh -c "cat << EOF >> /etc/dnsmasq.d/pxe-server + echo -e "\e[36m setup dnsmasq for pxe\e[0m"; + sudo sh -c "cat << EOF >> /etc/dnsmasq.d/pxe-server ######################################## #/etc/dnsmasq.d/pxeboot ## mod_install_server @@ -357,7 +357,7 @@ dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/syslinux.efi #dhcp-boot=tag:UEFI_iPXE, ipxe.efi #dhcp-option=iPXE, 175, 8:1:1 EOF"; - sudo systemctl restart dnsmasq.service; + sudo systemctl restart dnsmasq.service; } } @@ -368,9 +368,9 @@ handle_samba() { ###################################################################### grep -q mod_install_server /etc/samba/smb.conf 2> /dev/null || ( \ - echo -e "\e[36m setup samba\e[0m"; - #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; - sudo sh -c "cat << EOF > /etc/samba/smb.conf + echo -e "\e[36m setup samba\e[0m"; + #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; + sudo sh -c "cat << EOF > /etc/samba/smb.conf ######################################## ## mod_install_server #======================= Global Settings ======================= @@ -440,7 +440,7 @@ server min protocol = SMB2 force group = root hide dot files = no EOF" - sudo systemctl restart smbd.service; + sudo systemctl restart smbd.service; ) } From 797e938678da4b89df9f27a8a0635d2616df507c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 5 Feb 2019 00:09:21 +0100 Subject: [PATCH 203/694] fixed menu (sysresccd) --- p2-include-menu.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 3c91888..bb919cd 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -452,15 +452,17 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32" ]; then +&& [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/x86_64/vmlinuz" ]; then echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL $SYSTEMRESCUE_X86 MENU LABEL System Rescue x86 - KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/rescue32 - INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/isolinux/initram.igz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 ro dodhcp -- setkmap=$CUSTOM_LANG + KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/x86_64/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/intel_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/amd_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/x86_64/sysresccd.img + #APPEND archisobasedir=sysresccd archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 + APPEND archisobasedir=sysresccd archiso_http_srv=http://$IP_ETH0$NFS_ETH0/$SYSTEMRESCUE_X86/ + SYSAPPEND 3 TEXT HELP Boot to System Rescue x86 Live User: root From 48566d962ce6acfa7c1aa133d25e9d4a17f11bc5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Feb 2019 22:07:03 +0100 Subject: [PATCH 204/694] updated url (sysresccd) --- p2-include-url.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index b352109..237478f 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-04 +# v 2019-02-09 ########################################################################## ########################################################################## @@ -60,7 +60,7 @@ KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/current/disco-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso LUBUNTU_LTS_X64=lubuntu-lts-x64 LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso @@ -90,7 +90,7 @@ RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.0/systemrescuecd-6.0.0.iso +SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.1/systemrescuecd-6.0.1.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso @@ -99,7 +99,7 @@ TINYCORE_X86=tinycore-x86 TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/current/disco-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso UBUNTU_FWTS=ubuntu-fwts UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img @@ -111,7 +111,7 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/current/disco-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso UBUNTU_STUDIO_X64=ubuntu-studio-x64 UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso From ea6f13e6330853760f8f029ce3ffc45317ad787b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Feb 2019 22:47:06 +0100 Subject: [PATCH 205/694] removed pxe boot workaround see https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1755863 --- p2-include-menu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index bb919cd..b5d9b4a 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -270,7 +270,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -521,7 +521,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -600,7 +600,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Daily-Live User: ubuntu From 1a86f4b2b16db8fa66f5a04392049df6b896d44b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Feb 2019 23:08:50 +0100 Subject: [PATCH 206/694] updated menu entry (centos) pxe boot still broken --- p2-include-menu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index b5d9b4a..b1aa8e9 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -788,7 +788,7 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0" ]; then +&& [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz" ]; then echo -e "\e[36m add $CENTOS_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## @@ -798,8 +798,8 @@ if [ -f "$FILE_MENU" ] \ ## NOT WORKING LABEL $CENTOS_X64 MENU LABEL CentOS x64 (broken) - KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz0 - INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd0.img + KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; From 28a765c59fb90832a30280a93affc682278a4069 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 11 Feb 2019 15:24:35 +0100 Subject: [PATCH 207/694] added linux-mint --- p2-include-handle.sh | 3 ++- p2-include-menu.sh | 19 +++++++++++++++++++ p2-include-url.sh | 3 +++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 31bd6eb..c354e17 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -60,6 +60,7 @@ handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; #broken# _unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +handle_iso $MINT_X64 $MINT_X64_URL; _unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $TAILS_X64 $TAILS_X64_URL; @@ -68,7 +69,7 @@ _unhandle_iso $TAILS_X64 $TAILS_X64_URL; _unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; ########################################################################## -handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; +_unhandle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; ########################################################################## diff --git a/p2-include-menu.sh b/p2-include-menu.sh index b1aa8e9..5bddaa0 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -824,6 +824,25 @@ EOF"; fi #========== END ========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $MINT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $MINT_X64 + MENU LABEL linux-mint x64 + KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to linux-mint x64 Live + User: + ENDTEXT +EOF"; +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then diff --git a/p2-include-url.sh b/p2-include-url.sh index 237478f..629c187 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -141,6 +141,9 @@ ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso +MINT_X64=mint-x64 +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso + OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso From a748a677db37d928ad8d475fd3c8126310b34d13 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 11 Feb 2019 15:34:47 +0100 Subject: [PATCH 208/694] removed linux-mint from broken section --- p2-include-handle.sh | 4 ++-- p2-include-menu.sh | 38 +++++++++++++++++++------------------- p2-include-url.sh | 8 ++++---- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index c354e17..ac3dc23 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -36,6 +36,7 @@ _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; +handle_iso $MINT_X64 $MINT_X64_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; _unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; @@ -60,7 +61,6 @@ handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; #broken# _unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; -handle_iso $MINT_X64 $MINT_X64_URL; _unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $TAILS_X64 $TAILS_X64_URL; @@ -69,7 +69,7 @@ _unhandle_iso $TAILS_X64 $TAILS_X64_URL; _unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; ########################################################################## -_unhandle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; +handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; ########################################################################## diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 5bddaa0..c706767 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -355,6 +355,25 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $MINT_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $MINT_X64 + MENU LABEL linux-mint x64 + KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to linux-mint x64 Live + User: + ENDTEXT +EOF"; +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then @@ -824,25 +843,6 @@ EOF"; fi #========== END ========== -#========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $MINT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU - ######################################## - LABEL $MINT_X64 - MENU LABEL linux-mint x64 - KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN - TEXT HELP - Boot to linux-mint x64 Live - User: - ENDTEXT -EOF"; -fi -#=========== END =========== - #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then diff --git a/p2-include-url.sh b/p2-include-url.sh index 629c187..1d25615 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-09 +# v 2019-02-11 ########################################################################## ########################################################################## @@ -74,6 +74,9 @@ LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso +MINT_X64=mint-x64 +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso + PARROT_FULL_X64=parrot-full-x64 PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5.1/Parrot-security-4.5.1_amd64.iso @@ -141,9 +144,6 @@ ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso -MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso - OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso From 7a2bda944fa70e356860cdeead7af09abfeb4fa4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 14 Feb 2019 17:14:20 +0100 Subject: [PATCH 209/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 1d25615..53012e3 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-11 +# v 2019-02-14 ########################################################################## ########################################################################## @@ -151,7 +151,7 @@ OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.12/tails-amd64-3.12.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.12.1/tails-amd64-3.12.1.iso ########################################################################## From 267191d66e49dc9a22f92f3788ffc903cec05e29 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 17 Feb 2019 07:19:08 +0100 Subject: [PATCH 210/694] updated url (ubuntu lts, lubuntu lts, debian) --- p2-include-url.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 53012e3..07415d0 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-14 +# v 2019-02-17 ########################################################################## ########################################################################## @@ -30,10 +30,10 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.9.0-8 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.7.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.8.0-amd64-lxde.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.7.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.8.0-i386-lxde.iso DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso @@ -63,10 +63,10 @@ LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-amd64.iso LUBUNTU_LTS_X86=lubuntu-lts-x86 -LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.1-desktop-i386.iso +LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-i386.iso LUBUNTU_X64=lubuntu-x64 LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso @@ -108,7 +108,7 @@ UBUNTU_FWTS=ubuntu-fwts UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.2-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso From b5098dce4446252e14dfa48d12367e4f6b12e373 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 17 Feb 2019 09:31:11 +0100 Subject: [PATCH 211/694] _unhandle now updates backup location --- install-pxe-server_pass2.sh | 87 +++++++++++++++++++++++++++++++++++++ p2-include-handle.sh | 18 ++++---- 2 files changed, 96 insertions(+), 9 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3c065ab..3777daa 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -743,6 +743,7 @@ _unhandle_iso() { # $1 : short name ###################################################################### local NAME=$1 + local URL=$2 local FILE_URL=$NAME.url local FILE_ISO=$NAME.iso ###################################################################### @@ -757,6 +758,21 @@ _unhandle_iso() { sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" + + if [ -d "$SRC_ISO" ] \ + && ( \ + ! [ -f "$SRC_ISO/$FILE_ISO" ] \ + || ! grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_ISO/$FILE_ISO $URL) \ + ); \ + then + echo -e "\e[36m download iso image to backup location\e[0m"; + sudo rm -f $SRC_ISO/$FILE_URL; + sudo rm -f $SRC_ISO/$FILE_ISO; + sudo wget -O $SRC_ISO/$FILE_ISO $URL; + sudo sh -c "echo '$URL' > $SRC_ISO/$FILE_URL"; + sudo touch -r $SRC_ISO/$FILE_ISO $SRC_ISO/$FILE_URL; + fi } @@ -955,6 +971,7 @@ _unhandle_img() { # $1 : short name ###################################################################### local NAME=$1 + local URL=$2 local FILE_URL=$NAME.url local FILE_IMG=$NAME.img ###################################################################### @@ -969,6 +986,21 @@ _unhandle_img() { sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" + + if [ -d "$SRC_IMG" ] \ + && ( \ + ! [ -f "$SRC_IMG/$FILE_IMG" ] \ + || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_IMG/$FILE_IMG $URL) \ + ); \ + then + echo -e "\e[36m download image to backup location\e[0m"; + sudo rm -f $SRC_IMG/$FILE_URL; + sudo rm -f $SRC_IMG/$FILE_IMG; + sudo wget -O $SRC_IMG/$FILE_IMG $URL; + sudo sh -c "echo '$URL' > $SRC_IMG/$FILE_URL"; + sudo touch -r $SRC_IMG/$FILE_IMG $SRC_IMG/$FILE_URL; + fi } @@ -1100,6 +1132,61 @@ handle_zip_img() { fi } +########################################################################## +_unhandle_zip_img() { + echo -e "\e[32m_unhandle_zip_img(\e[0m$1\e[32m)\e[0m"; + ###################################################################### + # $1 : short name + # $2 : download url + ###################################################################### + local NAME=$1 + local URL=$2 + local RAW_FILENAME=$(basename $URL .zip) + local RAW_FILENAME_ZIP=$RAW_FILENAME.zip + local NAME_BOOT=$NAME-boot + local NAME_ROOT=$NAME-root + local DST_NFS_BOOT=$DST_NFS_ETH0/$NAME_BOOT + local DST_NFS_ROOT=$DST_NFS_ETH0/$NAME_ROOT + local FILE_URL=$NAME.url + local FILE_IMG=$NAME.img + ###################################################################### + + ## boot + sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; + sudo umount -f $DST_NFS_BOOT 2> /dev/null; + sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" + sudo sed /etc/exports -i -e "/$NAME_BOOT/d" + + ## root + sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" + sudo sed /etc/exports -i -e "/$NAME_ROOT/d" + sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; + sudo umount -f $DST_NFS_ROOT 2> /dev/null; + + if [ -d "$SRC_IMG/$FILE_IMG" ] \ + && ( \ + ! [ -f "$SRC_IMG/$FILE_IMG" ] \ + || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ + || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_IMG/$FILE_URL $URL) \ + ); \ + then + echo -e "\e[36m download image to backup location\e[0m"; + sudo rm -f $SRC_IMG/$FILE_IMG; + sudo rm -f $SRC_IMG/$FILE_URL; + sudo wget -O $SRC_IMG/$RAW_FILENAME_ZIP $URL; + + sudo sh -c "echo '$URL' > $SRC_IMG/$FILE_URL"; + sudo touch -r $SRC_IMG/$RAW_FILENAME_ZIP $SRC_IMG/$FILE_URL; + + echo -e "\e[36m extract image to backup location\e[0m"; + sudo unzip $SRC_IMG/$RAW_FILENAME_ZIP -d $SRC_IMG > /tmp/output.tmp; + sudo rm -f $SRC_IMG/$RAW_FILENAME_ZIP; + local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) + sudo mv $SRC_IMG/$RAW_FILENAME_IMG $SRC_IMG/$FILE_IMG; + rm /tmp/output.tmp + fi +} + ########################################################################## handle_rpi_pxe_customization() { echo -e "\e[36m handle_rpi_pxe_customization()\e[0m"; diff --git a/p2-include-handle.sh b/p2-include-handle.sh index ac3dc23..ed55b44 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -31,12 +31,12 @@ handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; -_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; +#_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; -handle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; +_unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -handle_iso $MINT_X64 $MINT_X64_URL; +_unhandle_iso $MINT_X64 $MINT_X64_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; _unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; @@ -45,10 +45,10 @@ _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; _unhandle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; -_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; +#_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; +#_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; @@ -78,10 +78,10 @@ handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; ## you don't want to download, mount, export ########################################################################## ########################################################################## -#handle_zip_img $PI_CORE $PI_CORE_URL; -#handle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; -#handle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; -#handle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; +_unhandle_zip_img $PI_CORE $PI_CORE_URL; +_unhandle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; +_unhandle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; +_unhandle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; ########################################################################## ########################################################################## From 78f928aefd4a06281143fdc2212a3994d09f8cb7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 20 Feb 2019 10:45:22 +0100 Subject: [PATCH 212/694] quiet pentoo beta --- p2-include-handle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index ed55b44..aa69cdd 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -39,7 +39,7 @@ _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; _unhandle_iso $MINT_X64 $MINT_X64_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; +#_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; _unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; From c4161243d06216e8e9c26f620df32b99d7289082 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 20 Feb 2019 12:18:10 +0100 Subject: [PATCH 213/694] fixed menu entry (ubuntu/lubuntu lts) --- p2-include-menu.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index c706767..9beeb8c 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -288,7 +288,7 @@ if [ -f "$FILE_MENU" ] \ LABEL $LUBUNTU_LTS_X64 MENU LABEL lubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu LTS x64 Live @@ -501,7 +501,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL tiny core x64 KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP Boot to tiny core x64 User: tc @@ -521,7 +521,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL tiny core x86 KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 ro tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us TEXT HELP Boot to tiny core x86 User: tc @@ -580,7 +580,7 @@ if [ -f "$FILE_MENU" ] \ LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd.lz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live From 4a52dc13f17b73622a9c3ccfe301ee9c1338240d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 24 Feb 2019 08:31:48 +0100 Subject: [PATCH 214/694] updated url --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 07415d0..e00cfc2 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-17 +# v 2019-02-24 ########################################################################## ########################################################################## @@ -30,10 +30,10 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.9.0-8 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.8.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.8.0-amd64-xfce.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.8.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.8.0-i386-xfce.iso DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso @@ -148,7 +148,7 @@ OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-GNOME-Live-x86_64-Current.iso +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.12.1/tails-amd64-3.12.1.iso From 9d5b5eb76f1cc45bccfb4ae4f642dd8feaf196a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 24 Feb 2019 08:38:00 +0100 Subject: [PATCH 215/694] updated menu entry (tiny core) --- p2-include-menu.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 9beeb8c..278ef6a 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -501,7 +501,8 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL tiny core x64 KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore TEXT HELP Boot to tiny core x64 User: tc @@ -521,7 +522,8 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL tiny core x86 KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=us + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore TEXT HELP Boot to tiny core x86 User: tc From fe3cea7d6ad870bb18c5f01850c0d89794bd1ecd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Feb 2019 06:24:26 +0100 Subject: [PATCH 216/694] Update p2-include-url.sh --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index e00cfc2..6894775 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -145,7 +145,7 @@ CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso From aeda0e3c71942af0994f32efb53bc3b527b66750 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 1 Mar 2019 21:19:55 +0100 Subject: [PATCH 217/694] updated url (ubuntu lts 16.04.6 i386) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 6894775..7c62ad2 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-02-24 +# v 2019-03-01 ########################################################################## ########################################################################## @@ -111,7 +111,7 @@ UBUNTU_LTS_X64=ubuntu-lts-x64 UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.2-desktop-amd64.iso UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.5-desktop-i386.iso +UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso From fd2839ad97f655567bceabe690d24feefc8e6f06 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Mar 2019 07:13:17 +0100 Subject: [PATCH 218/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 7c62ad2..1020010 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-03-01 +# v 2019-03-03 ########################################################################## ########################################################################## @@ -54,7 +54,7 @@ GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2018.4-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/kali-images/current/kali-linux-2019.1-amd64.iso KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso From 102610ea5550aaafba8020312496c85a1361feaa Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Mar 2019 07:22:53 +0100 Subject: [PATCH 219/694] Update p2-include-url.sh --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 1020010..f45b95b 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -54,7 +54,7 @@ GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/kali-images/current/kali-linux-2019.1-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.1-amd64.iso KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso From c4742dc536d9b33324d8d2ceebd938bd959ce120 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Mar 2019 11:20:40 +0100 Subject: [PATCH 220/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index f45b95b..65edb6e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-03-03 +# v 2019-03-10 ########################################################################## ########################################################################## @@ -54,7 +54,7 @@ GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.1-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.1a-amd64.iso KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso From c1e42a2ebd6e45d4d878a96e62314c8c00180c4c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Mar 2019 20:29:46 +0100 Subject: [PATCH 221/694] fix for https://github.com/raspberrypi/documentation/issues/1018 --- install-pxe-server_pass2.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3777daa..b62c344 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -157,7 +157,9 @@ DAEMON_CONF=\"/etc/hostapd/hostapd.conf\" EOF"; } - sudo systemctl restart hostapd.service; + sudo systemctl unmask hostapd; + sudo systemctl enable hostapd; + sudo systemctl restart hostapd; } } From ce0bcc1b403a50d5dceada6ec3021e3fdf3ae35d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Mar 2019 20:34:58 +0100 Subject: [PATCH 222/694] full-upgrade --- install-pxe-server_pass1.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index c760123..27be042 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2018-05-30 +# v2019-03-10 # # known issues: # @@ -66,7 +66,7 @@ grep -q splash /boot/cmdline.txt 2> /dev/null && { ###################################################################### echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mupdate...\e[0m" && sudo apt update \ -&& echo -e "\e[32mupgrade...\e[0m" && sudo apt upgrade -y \ +&& echo -e "\e[32mupgrade...\e[0m" && sudo apt full-upgrade -y \ && echo -e "\e[32mautoremove...\e[0m" && sudo apt autoremove -y --purge \ && echo -e "\e[32mautoclean...\e[0m" && sudo apt autoclean \ && echo -e "\e[32msync...\e[0m" && sudo sync \ From cd19c5c15e8df5612fd63db4e5f35bb7e544ee94 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 15 Mar 2019 17:34:22 +0100 Subject: [PATCH 223/694] fix for #14 --- p2-include-var.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2-include-var.sh b/p2-include-var.sh index c756fda..fa05e8b 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -41,6 +41,9 @@ fi if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/*/1-1.1.1:1.0/net ]; then INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/*/1-1.1.1:1.0/net) fi +if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/*/1-1.1\:1.0/net ]; then +INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/*/1-1.1\:1.0/net) +fi ########################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') From 145c4287a05e9ea38e64cbe6e580c9c0b4b7427b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 15 Mar 2019 21:11:13 +0100 Subject: [PATCH 224/694] fix2: #14 --- p2-include-var.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/p2-include-var.sh b/p2-include-var.sh index fa05e8b..75c2404 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -35,14 +35,17 @@ INTERFACE_ETH0= INTERFACE_ETH1=eth1 INTERFACE_WLAN0=wlan0 ########################################################################## -if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1:1.0/net ]; then -INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1:1.0/net) +if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net ]; then +# RPi3B+ +INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net) fi -if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/*/1-1.1.1:1.0/net ]; then -INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/*/1-1.1.1:1.0/net) +if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net ]; then +# RPi1B rev.1, RPi1B rev.2, RPi1B+, RPi2B, RPi3B +INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) fi -if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/*/1-1.1\:1.0/net ]; then -INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/*/1-1.1\:1.0/net) +if [ -z "$INTERFACE_ETH0" ]; then +# fallback +INTERFACE_ETH0=eth0 fi ########################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') From e730b2285444b0a0916e5029dbed7d08594ff9f2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 25 Mar 2019 18:38:41 +0100 Subject: [PATCH 225/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 65edb6e..502578e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-03-10 +# v 2019-03-25 ########################################################################## ########################################################################## @@ -151,7 +151,7 @@ OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.12.1/tails-amd64-3.12.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.13.1/tails-amd64-3.13.1.iso ########################################################################## From 95d8dca0024094bc43ba279a67fbd9c55f22cf8b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Apr 2019 11:13:11 +0200 Subject: [PATCH 226/694] fix: _unhandle_zip_img() --- install-pxe-server_pass2.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b62c344..bc44974 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -619,6 +619,8 @@ try: exit_code = 0 else: exit_code = 1 + + print('file:{} <-> url:{}'.format(time.strftime("%Y-%m-%d %H:%M:%S", time_file), time.strftime("%Y-%m-%d %H:%M:%S", time_url))) except: exit_code = 1 @@ -1165,7 +1167,7 @@ _unhandle_zip_img() { sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; sudo umount -f $DST_NFS_ROOT 2> /dev/null; - if [ -d "$SRC_IMG/$FILE_IMG" ] \ + if [ -d "$SRC_IMG" ] \ && ( \ ! [ -f "$SRC_IMG/$FILE_IMG" ] \ || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ From 21b1127b2b81c76fd46d567ffb6e86e8cdaa7da9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Apr 2019 11:26:47 +0200 Subject: [PATCH 227/694] fix2: _unhandle_zip_img() --- install-pxe-server_pass2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index bc44974..55bd743 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1167,6 +1167,9 @@ _unhandle_zip_img() { sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; sudo umount -f $DST_NFS_ROOT 2> /dev/null; + sudo rm -f $DST_IMG/$FILE_IMG; + sudo rm -f $DST_IMG/$FILE_URL; + if [ -d "$SRC_IMG" ] \ && ( \ ! [ -f "$SRC_IMG/$FILE_IMG" ] \ From 36edeb27d5adabcf2fb473ca4a580432ac1f658a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Apr 2019 11:40:45 +0200 Subject: [PATCH 228/694] fix3: _unhandle_zip_img() --- install-pxe-server_pass2.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 55bd743..e54d9b6 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1158,14 +1158,16 @@ _unhandle_zip_img() { ## boot sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; sudo umount -f $DST_NFS_BOOT 2> /dev/null; + sudo rm -rf $DST_NFS_ROOT; sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" sudo sed /etc/exports -i -e "/$NAME_BOOT/d" ## root - sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" - sudo sed /etc/exports -i -e "/$NAME_ROOT/d" sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; sudo umount -f $DST_NFS_ROOT 2> /dev/null; + sudo rm -rf $DST_NFS_BOOT; + sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" + sudo sed /etc/exports -i -e "/$NAME_ROOT/d" sudo rm -f $DST_IMG/$FILE_IMG; sudo rm -f $DST_IMG/$FILE_URL; From f060c21036954e80a366e69ee38ecdbcaea36992 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Apr 2019 11:45:47 +0200 Subject: [PATCH 229/694] fix?: _unhandle_zip_img() *grrr*... hopefully i got it now... finally --- install-pxe-server_pass2.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index e54d9b6..4cde629 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1158,17 +1158,18 @@ _unhandle_zip_img() { ## boot sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; sudo umount -f $DST_NFS_BOOT 2> /dev/null; - sudo rm -rf $DST_NFS_ROOT; + sudo rm -rf $DST_NFS_BOOT; sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" sudo sed /etc/exports -i -e "/$NAME_BOOT/d" ## root sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; sudo umount -f $DST_NFS_ROOT 2> /dev/null; - sudo rm -rf $DST_NFS_BOOT; + sudo rm -rf $DST_NFS_ROOT; sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" sudo sed /etc/exports -i -e "/$NAME_ROOT/d" + ## img sudo rm -f $DST_IMG/$FILE_IMG; sudo rm -f $DST_IMG/$FILE_URL; From 00a6d16d4db94887ca9c99d8b7265a8dc76b03bb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 22 Apr 2019 19:59:13 +0000 Subject: [PATCH 230/694] updated url (ubuntu/lubuntu) --- p2-include-menu.sh | 8 ++++---- p2-include-url.sh | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 278ef6a..2be5d2f 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -327,7 +327,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -346,7 +346,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -640,7 +640,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Live User: ubuntu @@ -659,7 +659,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live User: ubuntu diff --git a/p2-include-url.sh b/p2-include-url.sh index 502578e..5158d79 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-03-25 +# v 2019-04-22 ########################################################################## ########################################################################## @@ -69,10 +69,10 @@ LUBUNTU_LTS_X86=lubuntu-lts-x86 LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-i386.iso LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-amd64.iso +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-i386.iso MINT_X64=mint-x64 MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso @@ -105,7 +105,7 @@ UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-18.12.00.img +UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-19.02.00.img UBUNTU_LTS_X64=ubuntu-lts-x64 UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.2-desktop-amd64.iso @@ -117,10 +117,10 @@ UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/18.10/release/ubuntustudio-18.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/19.04/release/ubuntustudio-19.04-dvd-amd64.iso UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/18.10/ubuntu-18.10-desktop-amd64.iso +UBUNTU_X64_URL=http://releases.ubuntu.com/19.04/ubuntu-19.04-desktop-amd64.iso #custom# From 6f4a095568dbaba20948275b3bf641957d96ee2a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 22 Apr 2019 22:10:55 +0200 Subject: [PATCH 231/694] updated url (ubuntu-daily) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 5158d79..e84c045 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -60,7 +60,7 @@ KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/disco-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/eoan-desktop-amd64.iso LUBUNTU_LTS_X64=lubuntu-lts-x64 LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-amd64.iso @@ -102,7 +102,7 @@ TINYCORE_X86=tinycore-x86 TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/disco-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/eoan-desktop-amd64.iso UBUNTU_FWTS=ubuntu-fwts UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-19.02.00.img From 7df06d9c827c16ab4653114ce41d4fb9e67b29d4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 22 Apr 2019 22:29:36 +0200 Subject: [PATCH 232/694] updated url (ubuntu-studio-daily) --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index e84c045..40402c3 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -114,7 +114,7 @@ UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/disco-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/eoan-dvd-amd64.iso UBUNTU_STUDIO_X64=ubuntu-studio-x64 UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/19.04/release/ubuntustudio-19.04-dvd-amd64.iso From 048d495d7a055665851070a28dda9997f55fb2fe Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 26 Apr 2019 23:50:07 +0200 Subject: [PATCH 233/694] updated url (parrot) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 40402c3..aa0682d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-04-22 +# v 2019-04-26 ########################################################################## ########################################################################## @@ -78,10 +78,10 @@ MINT_X64=mint-x64 MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5.1/Parrot-security-4.5.1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-security-4.6_amd64.iso PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.5.1/Parrot-home-4.5.1_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-home-4.6_amd64.iso PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso From cb76bdeb9cfb74dfc8d3618cb7315b73193b60cb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 30 Apr 2019 20:41:59 +0000 Subject: [PATCH 234/694] updated url (clonezilla, debian, fedora, parrot) --- install-pxe-server_pass2.sh | 81 +++++++++++++++++++++++-------------- p2-include-url.sh | 14 +++---- 2 files changed, 57 insertions(+), 38 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4cde629..57df803 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -72,12 +72,12 @@ echo -e "$IP_ETH0 \e[36mis used as primary IP address for PXE\e[0m"; echo -e "$RPI_SN0 \e[36mis used as SN for RPi3 network booting\e[0m"; echo -if [ "$IP_ETH0" == "" ]; then +if [ -z $IP_ETH0 ]; then echo -e "\e[1;31mIP address not found. please check your ethernet cable.\e[0m"; exit 1 fi -if [ "$IP_ETH0_ROUTER" == "" ]; then +if [ -z $IP_ETH0_ROUTER ]; then echo -e "\e[1;31mrouter IP address not found. please check your router settings.\e[0m"; exit 1 fi @@ -651,9 +651,9 @@ handle_iso() { sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; if [ "$3" == "bindfs" ]; then sudo umount -f $DST_ORIGINAL 2> /dev/null; fi - if [ "$URL" == "" ]; then - if ! [ -f "$DST_ISO/$FILE_ISO" ] \ - && [ -f "$SRC_ISO/$FILE_ISO" ] \ + if [ -z $URL ]; then + if ! [ -s "$DST_ISO/$FILE_ISO" ] \ + && [ -s "$SRC_ISO/$FILE_ISO" ] \ && [ -f "$SRC_ISO/$FILE_URL" ]; \ then echo -e "\e[36m copy iso from usb-stick\e[0m"; @@ -662,7 +662,7 @@ handle_iso() { sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; fi else - if [ -f "$SRC_ISO/$FILE_ISO" ] \ + if [ -s "$SRC_ISO/$FILE_ISO" ] \ && [ -f "$SRC_ISO/$FILE_URL" ] \ && grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ && ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ @@ -673,7 +673,7 @@ handle_iso() { sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; fi - if ! [ -f "$DST_ISO/$FILE_ISO" ] \ + if ! [ -s "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ then @@ -681,13 +681,17 @@ handle_iso() { sudo rm -f $DST_ISO/$FILE_URL; sudo rm -f $DST_ISO/$FILE_ISO; sudo wget -O $DST_ISO/$FILE_ISO $URL; - sudo sh -c "echo '$URL' > $DST_ISO/$FILE_URL"; sudo touch -r $DST_ISO/$FILE_ISO $DST_ISO/$FILE_URL; fi fi - if [ -f "$DST_ISO/$FILE_ISO" ]; then + if ! [ -s $DST_ISO/$FILE_ISO ]; then + sudo rm -f $DST_ISO/$FILE_ISO; + sudo rm -f $DST_ISO/$FILE_URL; + fi + + if [ -s "$DST_ISO/$FILE_ISO" ]; then if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then echo -e "\e[36m create nfs folder\e[0m"; sudo mkdir -p $DST_NFS_ETH0/$NAME; @@ -765,7 +769,7 @@ _unhandle_iso() { if [ -d "$SRC_ISO" ] \ && ( \ - ! [ -f "$SRC_ISO/$FILE_ISO" ] \ + ! [ -s "$SRC_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_ISO/$FILE_ISO $URL) \ ); \ @@ -799,9 +803,9 @@ handle_kernel() { sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; - if [ "$URL" == "" ]; then - if ! [ -f "$DST_ISO/$FILE_KERNEL" ] \ - && [ -f "$SRC_ISO/$FILE_KERNEL" ] \ + if [ -z $URL ]; then + if ! [ -s "$DST_ISO/$FILE_KERNEL" ] \ + && [ -s "$SRC_ISO/$FILE_KERNEL" ] \ && [ -f "$SRC_ISO/$FILE_URL" ]; \ then echo -e "\e[36m copy kernel from usb-stick\e[0m"; @@ -810,7 +814,7 @@ handle_kernel() { sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; fi else - if [ -f "$SRC_ISO/$FILE_KERNEL" ] \ + if [ -s "$SRC_ISO/$FILE_KERNEL" ] \ && [ -f "$SRC_ISO/$FILE_URL" ] \ && grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ && ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ @@ -821,7 +825,7 @@ handle_kernel() { sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; fi - if ! [ -f "$DST_ISO/$FILE_KERNEL" ] \ + if ! [ -s "$DST_ISO/$FILE_KERNEL" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_ISO/$FILE_KERNEL $URL); \ then @@ -835,7 +839,12 @@ handle_kernel() { fi fi - if [ -f "$DST_ISO/$FILE_KERNEL" ]; then + if ! [ -s $DST_ISO/$FILE_KERNEL ]; then + sudo rm -f $DST_ISO/$FILE_KERNEL; + sudo rm -f $DST_ISO/$FILE_URL; + fi + + if [ -s "$DST_ISO/$FILE_KERNEL" ]; then if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then echo -e "\e[36m create nfs folder\e[0m"; sudo mkdir -p $DST_NFS_ETH0/$NAME; @@ -899,9 +908,9 @@ handle_img() { # sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; sudo umount -f $DST_NFS_ETH0/$NAME; - if [ "$URL" == "" ]; then - if ! [ -f "$DST_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_IMG" ] \ + if [ -z $URL ]; then + if ! [ -s "$DST_IMG/$FILE_IMG" ] \ + && [ -s "$SRC_IMG/$FILE_IMG" ] \ && [ -f "$SRC_IMG/$FILE_URL" ]; \ then echo -e "\e[36m copy img from usb-stick\e[0m"; @@ -910,7 +919,7 @@ handle_img() { sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; fi else - if [ -f "$SRC_IMG/$FILE_IMG" ] \ + if [ -s "$SRC_IMG/$FILE_IMG" ] \ && [ -f "$SRC_IMG/$FILE_URL" ] \ && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ @@ -921,7 +930,7 @@ handle_img() { sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; fi - if ! [ -f "$DST_IMG/$FILE_IMG" ] \ + if ! [ -s "$DST_IMG/$FILE_IMG" ] \ || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_IMG/$FILE_URL $URL); \ then @@ -935,7 +944,12 @@ handle_img() { fi fi - if [ -f "$DST_IMG/$FILE_IMG" ]; then + if ! [ -s $DST_IMG/$FILE_IMG ]; then + sudo rm -f $DST_IMG/$FILE_IMG; + sudo rm -f $DST_IMG/$FILE_URL; + fi + + if [ -s "$DST_IMG/$FILE_IMG" ]; then local OFFSET_PART1=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $4}' | sed 's/,//'))) local SIZE_PART1=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $6}' | sed 's/,//'))) #sfdisk -d $DST_IMG/$FILE_IMG @@ -993,7 +1007,7 @@ _unhandle_img() { if [ -d "$SRC_IMG" ] \ && ( \ - ! [ -f "$SRC_IMG/$FILE_IMG" ] \ + ! [ -s "$SRC_IMG/$FILE_IMG" ] \ || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_IMG/$FILE_IMG $URL) \ ); \ @@ -1036,9 +1050,9 @@ handle_zip_img() { sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; sudo umount -f $DST_NFS_ROOT 2> /dev/null; - if [ "$URL" == "" ]; then - if ! [ -f "$DST_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_IMG" ] \ + if [ -z $URL ]; then + if ! [ -s "$DST_IMG/$FILE_IMG" ] \ + && [ -s "$SRC_IMG/$FILE_IMG" ] \ && [ -f "$SRC_IMG/$FILE_URL" ]; \ then echo -e "\e[36m copy img from usb-stick\e[0m"; @@ -1047,7 +1061,7 @@ handle_zip_img() { sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; fi else - if [ -f "$SRC_IMG/$FILE_IMG" ] \ + if [ -s "$SRC_IMG/$FILE_IMG" ] \ && [ -f "$SRC_IMG/$FILE_URL" ] \ && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ @@ -1058,7 +1072,7 @@ handle_zip_img() { sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; fi - if ! [ -f "$DST_IMG/$FILE_IMG" ] \ + if ! [ -s "$DST_IMG/$FILE_IMG" ] \ || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_IMG/$FILE_URL $URL); \ then @@ -1079,7 +1093,12 @@ handle_zip_img() { fi fi - if [ -f "$DST_IMG/$FILE_IMG" ]; then + if ! [ -s $DST_IMG/$FILE_IMG ]; then + sudo rm -f $DST_IMG/$FILE_IMG; + sudo rm -f $DST_IMG/$FILE_URL; + fi + + if [ -s "$DST_IMG/$FILE_IMG" ]; then local OFFSET_BOOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $4}' | sed 's/,//'))) local SIZE_BOOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $6}' | sed 's/,//'))) local OFFSET_ROOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\2 | awk '{print $4}' | sed 's/,//'))) @@ -1175,7 +1194,7 @@ _unhandle_zip_img() { if [ -d "$SRC_IMG" ] \ && ( \ - ! [ -f "$SRC_IMG/$FILE_IMG" ] \ + ! [ -s "$SRC_IMG/$FILE_IMG" ] \ || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_IMG/$FILE_URL $URL) \ ); \ @@ -1297,7 +1316,7 @@ network={ key_mgmt=WPA-PSK } EOF"; - if [ -f "$SRC_BACKUP/wpa_supplicant.conf" ]; then + if [ -s "$SRC_BACKUP/wpa_supplicant.conf" ]; then echo -e "\e[36m add wpa_supplicant file from backup\e[0m"; sudo rsync -xa --info=progress2 $SRC_BACKUP/wpa_supplicant.conf $DST_CUSTOM_ROOT/etc/wpa_supplicant/ fi diff --git a/p2-include-url.sh b/p2-include-url.sh index aa0682d..d66e621 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-04-26 +# v 2019-04-30 ########################################################################## ########################################################################## @@ -22,18 +22,18 @@ ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.0-37/clonezilla-live-2.6.0-37-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.1-25/clonezilla-live-2.6.1-25-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.0-37/clonezilla-live-2.6.0-37-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.1-25/clonezilla-live-2.6.1-25-i686.iso -DEBIAN_KVER=4.9.0-8 +DEBIAN_KVER=4.9.0-9 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.8.0-amd64-xfce.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.9.0-amd64-xfce.iso DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.8.0-i386-xfce.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.9.0-i386-xfce.iso DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso @@ -48,7 +48,7 @@ DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/29/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-29-1.2.iso +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-30-1.2.iso GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From bbb47be2f6e314dbe2886d65bd64d1bd08c80bb2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 30 Apr 2019 21:11:49 +0000 Subject: [PATCH 235/694] updated url (lubuntu x86) back to 18.10, the last available i386 version of lubuntu --- p2-include-menu.sh | 2 +- p2-include-url.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 2be5d2f..3cd07b3 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -346,7 +346,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live User: lubuntu diff --git a/p2-include-url.sh b/p2-include-url.sh index d66e621..7dcd45b 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -72,7 +72,7 @@ LUBUNTU_X64=lubuntu-x64 LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-amd64.iso LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-i386.iso +LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso MINT_X64=mint-x64 MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso From 4678eed942f1553c53e44f2c03ee9f5c82d4c82b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 7 May 2019 22:12:27 +0200 Subject: [PATCH 236/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 7dcd45b..73617f5 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-04-30 +# v 2019-05-07 ########################################################################## ########################################################################## @@ -151,7 +151,7 @@ OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.13.1/tails-amd64-3.13.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.13.2/tails-amd64-3.13.2.iso ########################################################################## From 290c0614c0f2a7997af2ee9f5426931d7fad1b4f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 May 2019 09:42:35 +0200 Subject: [PATCH 237/694] updated url (kali) + prepared for hash checking --- p2-include-url.sh | 70 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 73617f5..395b13d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-05-07 +# v 2019-05-21 ########################################################################## ########################################################################## @@ -31,57 +31,89 @@ DEBIAN_KVER=4.9.0-9 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.9.0-amd64-xfce.iso +DEBIAN_X64_HASH_TYPE=sha512 +DEBIAN_X64_HASH_PATTERN=SHA512SUMS DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.9.0-i386-xfce.iso +DEBIAN_X86_HASH_TYPE=sha512 +DEBIAN_X86_HASH_PATTERN=SHA512SUMS DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso +DEFTZ_X64_HASH_TYPE=md5 +DEFTZ_X64_HASH_PATTERN=.md5 DEFT_X64=deft-x64 -DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/deft-8.2.iso +DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/iso/deft-8.2.iso +DEFT_X64_HASH_TYPE=md5 +DEFT_X64_HASH_PATTERN=https://na.mirror.garr.it/mirrors/deft/md5.txt DEVUAN_X64=devuan-x64 DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso +DEVUAN_X64_HASH_TYPE=sha256 +DEVUAN_X64_HASH_PATTERN=SHA256SUMS DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso +DEVUAN_X86_HASH_TYPE=sha256 +DEVUAN_X86_HASH_PATTERN=SHA256SUMS FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-30-1.2.iso +FEDORA_X64_HASH_TYPE=sha256 +FEDORA_X64_HASH_PATTERN=-CHECKSUM GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.1a-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.2-amd64.iso +KALI_X64_HASH_TYPE=sha256 +KALI_X64_HASH_PATTERN=SHA256SUMS KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/eoan-desktop-amd64.iso +LUBUNTU_DAILY_X64_HASH_TYPE=sha256 +LUBUNTU_DAILY_X64_HASH_PATTERN=SHA256SUMS LUBUNTU_LTS_X64=lubuntu-lts-x64 LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-amd64.iso +LUBUNTU_LTS_X64_HASH_TYPE=sha256 +LUBUNTU_LTS_X64_HASH_PATTERN=SHA256SUMS LUBUNTU_LTS_X86=lubuntu-lts-x86 LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-i386.iso +LUBUNTU_LTS_X86_HASH_TYPE=sha256 +LUBUNTU_LTS_X86_HASH_PATTERN=SHA256SUMS LUBUNTU_X64=lubuntu-x64 LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-amd64.iso +LUBUNTU_X64_HASH_TYPE=sha256 +LUBUNTU_X64_HASH_PATTERN=SHA256SUMS LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso +LUBUNTU_X86_HASH_TYPE=sha256 +LUBUNTU_X86_HASH_PATTERN=SHA256SUMS MINT_X64=mint-x64 MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso +MINT_X64_HASH_TYPE=sha256 +MINT_X64_HASH_PATTERN=sha256sum.txt PARROT_FULL_X64=parrot-full-x64 PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-security-4.6_amd64.iso +PARROT_FULL_X64_HASH_TYPE=sha512 +PARROT_FULL_X64_HASH_PATTERN=signed-hashes.txt PARROT_LITE_X64=parrot-lite-x64 PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-home-4.6_amd64.iso +PARROT_LITE_X64_HASH_TYPE=sha512 +PARROT_LITE_X64_HASH_PATTERN=signed-hashes.txt PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso @@ -91,36 +123,56 @@ PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64- RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest +RPDESKTOP_X86_HASH_TYPE=sha256 +RPDESKTOP_X86_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.1/systemrescuecd-6.0.1.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_HASH_TYPE=md5 +TINYCORE_X64_HASH_PATTERN=.md5.txt TINYCORE_X86=tinycore-x86 TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso +TINYCORE_X86_HASH_TYPE=md5 +TINYCORE_X86_HASH_PATTERN=.md5.txt UBUNTU_DAILY_X64=ubuntu-daily-x64 UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/eoan-desktop-amd64.iso +UBUNTU_DAILY_X64_HASH_TYPE=sha256 +UBUNTU_DAILY_X64_HASH_PATTERN=SHA256SUMS UBUNTU_FWTS=ubuntu-fwts UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-19.02.00.img +UBUNTU_FWTS_HASH_TYPE=sha256 +UBUNTU_FWTS_HASH_PATTERN=SHA256SUMS UBUNTU_LTS_X64=ubuntu-lts-x64 UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.2-desktop-amd64.iso +UBUNTU_LTS_X64_HASH_TYPE=sha256 +UBUNTU_LTS_X64_HASH_PATTERN=SHA256SUMS UBUNTU_LTS_X86=ubuntu-lts-x86 UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso +UBUNTU_LTS_X86_HASH_TYPE=sha256 +UBUNTU_LTS_X86_HASH_PATTERN=SHA256SUMS UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/eoan-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_HASH_TYPE=sha256 +UBUNTU_STUDIO_DAILY_X64_HASH_PATTERN=SHA256SUMS UBUNTU_STUDIO_X64=ubuntu-studio-x64 UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/19.04/release/ubuntustudio-19.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_HASH_TYPE=sha256 +UBUNTU_STUDIO_X64_HASH_PATTERN=SHA256SUMS UBUNTU_X64=ubuntu-x64 UBUNTU_X64_URL=http://releases.ubuntu.com/19.04/ubuntu-19.04-desktop-amd64.iso +UBUNTU_X64_HASH_TYPE=sha256 +UBUNTU_X64_HASH_PATTERN=SHA256SUMS #custom# @@ -143,12 +195,18 @@ ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x CENTOS_X64=centos-x64 CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso +CENTOS_X64_HASH_TYPE=sha256 +CENTOS_X64_HASH_PATTERN=sha256sum.txt.asc OPENSUSE_RESCUE_X64=opensuse-rescue-x64 OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso +OPENSUSE_RESCUE_X64_HASH_TYPE=sha256 +OPENSUSE_RESCUE_X64_HASH_PATTERN=.sha256 OPENSUSE_X64=opensuse-x64 OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso +OPENSUSE_X64_HASH_TYPE=sha256 +OPENSUSE_X64_HASH_PATTERN=.sha256 TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.13.2/tails-amd64-3.13.2.iso @@ -169,10 +227,16 @@ PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_BASIC=rpi-raspbian-basic RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest +RPD_BASIC_HASH_TYPE=sha256 +RPD_BASIC_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ RPD_FULL=rpi-raspbian-full RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest +RPD_FULL_HASH_TYPE=sha256 +RPD_FULL_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ RPD_LITE=rpi-raspbian-lite RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest +RPD_LITE_HASH_TYPE=sha256 +RPD_LITE_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ From 4b35568a205b240bf76c6f31c81aa5832d80765d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 25 May 2019 18:38:48 +0200 Subject: [PATCH 238/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 395b13d..b2336a4 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-05-21 +# v 2019-05-25 ########################################################################## ########################################################################## @@ -209,7 +209,7 @@ OPENSUSE_X64_HASH_TYPE=sha256 OPENSUSE_X64_HASH_PATTERN=.sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.13.2/tails-amd64-3.13.2.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.14/tails-amd64-3.14.iso ########################################################################## From 600c719466101069f07398fe5e5fba5e0a67d8c9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 6 Jun 2019 22:05:31 +0000 Subject: [PATCH 239/694] added eset sysrescue live --- p2-include-handle.sh | 1 + p2-include-menu.sh | 18 ++++++++++++++++++ p2-include-url.sh | 5 ++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index aa69cdd..6895fc5 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -27,6 +27,7 @@ _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEFT_X64 $DEFT_X64_URL; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; +handle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $KALI_X64 $KALI_X64_URL; diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 3cd07b3..2d26691 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -181,6 +181,24 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]; then + echo -e "\e[36m add $ESET_SYSRESCUE_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $ESET_SYSRESCUE_X86 + MENU LABEL ESET SysRescue Live + KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to ESET SysRescue Live + ENDTEXT +EOF"; +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then diff --git a/p2-include-url.sh b/p2-include-url.sh index b2336a4..3c27968 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-05-25 +# v 2019-06-06 ########################################################################## ########################################################################## @@ -59,6 +59,9 @@ DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2 DEVUAN_X86_HASH_TYPE=sha256 DEVUAN_X86_HASH_PATTERN=SHA256SUMS +ESET_SYSRESCUE_X86=eset-rescue-x86 +ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso + FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-30-1.2.iso FEDORA_X64_HASH_TYPE=sha256 From 6a30a8619e06aee349d9972ac0f72213d0ba9b31 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 22 Jun 2019 14:18:05 +0200 Subject: [PATCH 240/694] updated url (parrot, tails) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 3c27968..70f829c 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-06-06 +# v 2019-06-22 ########################################################################## ########################################################################## @@ -109,12 +109,12 @@ MINT_X64_HASH_TYPE=sha256 MINT_X64_HASH_PATTERN=sha256sum.txt PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-security-4.6_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7_amd64.iso PARROT_FULL_X64_HASH_TYPE=sha512 PARROT_FULL_X64_HASH_PATTERN=signed-hashes.txt PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-home-4.6_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7_amd64.iso PARROT_LITE_X64_HASH_TYPE=sha512 PARROT_LITE_X64_HASH_PATTERN=signed-hashes.txt @@ -212,7 +212,7 @@ OPENSUSE_X64_HASH_TYPE=sha256 OPENSUSE_X64_HASH_PATTERN=.sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.14/tails-amd64-3.14.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.14.1/tails-amd64-3.14.1.iso ########################################################################## From ab9e49dfe00dd7cbe5e7aaea521544748d1cbd40 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 25 Jun 2019 10:10:23 +0200 Subject: [PATCH 241/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 70f829c..cf5140e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-06-22 +# v 2019-06-25 ########################################################################## ########################################################################## @@ -212,7 +212,7 @@ OPENSUSE_X64_HASH_TYPE=sha256 OPENSUSE_X64_HASH_PATTERN=.sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.14.1/tails-amd64-3.14.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.14.2/tails-amd64-3.14.2.iso ########################################################################## From 82d1894a883569baba01b75c788d7e807233842c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 7 Jul 2019 11:51:02 +0200 Subject: [PATCH 242/694] updated url (debian) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index cf5140e..aaf6e9c 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-06-25 +# v 2019-07-07 ########################################################################## ########################################################################## @@ -27,15 +27,15 @@ CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.1-25/clonezilla-live-2.6.1-25-i686.iso -DEBIAN_KVER=4.9.0-9 +DEBIAN_KVER=4.19.0-5 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-9.9.0-amd64-xfce.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.0.0-amd64-xfce.iso DEBIAN_X64_HASH_TYPE=sha512 DEBIAN_X64_HASH_PATTERN=SHA512SUMS DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-9.9.0-i386-xfce.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.0.0-i386-xfce.iso DEBIAN_X86_HASH_TYPE=sha512 DEBIAN_X86_HASH_PATTERN=SHA512SUMS From d1b21a4d364acddcb257c1c82b8d0880b3deb207 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Jul 2019 21:12:52 +0200 Subject: [PATCH 243/694] updated url (clonezilla, tails) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index aaf6e9c..999755b 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-07-07 +# v 2019-07-12 ########################################################################## ########################################################################## @@ -22,10 +22,10 @@ ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.1-25/clonezilla-live-2.6.1-25-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.2-15/clonezilla-live-2.6.2-15-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.1-25/clonezilla-live-2.6.1-25-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.2-15/clonezilla-live-2.6.2-15-i686.iso DEBIAN_KVER=4.19.0-5 @@ -212,7 +212,7 @@ OPENSUSE_X64_HASH_TYPE=sha256 OPENSUSE_X64_HASH_PATTERN=.sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.14.2/tails-amd64-3.14.2.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.15/tails-amd64-3.15.iso ########################################################################## From 5911f6ac012894f26641fd1ad10cbd649e20db4e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Jul 2019 23:30:22 +0200 Subject: [PATCH 244/694] comment out older syslinux patch --- install-pxe-server_pass1.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 27be042..d1e9a0f 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2019-03-10 +# v2019-07-12 # # known issues: # @@ -118,17 +118,14 @@ sudo apt install -y rsync; echo -e "\e[32minstall syslinux-common for pxe\e[0m"; sudo apt install -y pxelinux syslinux-common syslinux-efi; -sudo wget -O /tmp/temp.tar.xz https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.xz; - -echo -e "\e[32m update the 32bit efi file and ldlinux.e32 to 6.04-pre1 due to bugs\e[0m"; -sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi32/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi32/efi/syslinux.efi; -sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi32/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi32/com32/elflink/ldlinux/ldlinux.e32; - -echo -e "\e[32m update the 64bit efi file and ldlinux.e64 to 6.04-pre1 due to bugs\e[0m"; -sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi64/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi64/efi/syslinux.efi; -sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi64/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64; - -sudo rm /tmp/temp.tar.xz; +#sudo wget -O /tmp/temp.tar.xz https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.xz; +#echo -e "\e[32m update the 32bit efi file and ldlinux.e32 to 6.04-pre1 due to bugs\e[0m"; +#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi32/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi32/efi/syslinux.efi; +#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi32/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi32/com32/elflink/ldlinux/ldlinux.e32; +#echo -e "\e[32m update the 64bit efi file and ldlinux.e64 to 6.04-pre1 due to bugs\e[0m"; +#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi64/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi64/efi/syslinux.efi; +#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi64/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64; +#sudo rm /tmp/temp.tar.xz; ###################################################################### From a0a6b1a1bcc7cb5b921022b0d82f06faf0880439 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 13 Jul 2019 01:36:23 +0200 Subject: [PATCH 245/694] Update p2-include-handle.sh --- p2-include-handle.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 6895fc5..5455175 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -80,9 +80,9 @@ handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; ########################################################################## ########################################################################## _unhandle_zip_img $PI_CORE $PI_CORE_URL; -_unhandle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; -_unhandle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; -_unhandle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; +#_unhandle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; +#_unhandle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; +#_unhandle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; ########################################################################## ########################################################################## From eb9c2609adee435a1b5cc1eaf2bd8ae6112bcbca Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 13 Jul 2019 08:52:14 +0200 Subject: [PATCH 246/694] fix buster recognition --- install-pxe-server_pass2.sh | 6 +++--- p2-include-handle.sh | 2 +- p2-include-var.sh | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 57df803..b8d0758 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -169,8 +169,8 @@ handle_dhcpcd() { echo -e "\e[32mhandle_dhcpcd()\e[0m"; ###################################################################### - if grep -q stretch /etc/*-release; then - echo -e "\e[36m a stretch os detected\e[0m"; + if [ "$OS_VER" -ge "9" ]; then + echo -e "\e[36m a stretch or newer OS detected\e[0m"; ################################################################## grep -q mod_install_server /etc/dhcpcd.conf || { echo -e "\e[36m setup dhcpcd.conf\e[0m"; @@ -198,7 +198,7 @@ EOF"; sudo systemctl restart dhcpcd.service; } else - echo -e "\e[36m a non-stretch os detected\e[0m"; + echo -e "\e[36m a jessie or older os detected\e[0m"; ################################################################## grep -q mod_install_server /etc/network/interfaces || { echo -e "\e[36m setup networking, disable dhcpcd\e[0m"; diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 5455175..49b5eb6 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -42,7 +42,7 @@ handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; +#_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; _unhandle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; diff --git a/p2-include-var.sh b/p2-include-var.sh index 75c2404..9041162 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -101,3 +101,4 @@ DST_PXE_EFI64=menu-efi64 KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) +OS_VER=$(grep VERSION_ID /etc/*-release | grep -o '".*"' | sed 's/"//g') From cb21476545a63317bf899d63a58151e65726a99c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 15 Jul 2019 21:23:42 +0200 Subject: [PATCH 247/694] removed syslinux-6.04-pre1 patch because buster has more actual files now --- install-pxe-server_pass1.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index d1e9a0f..e490fcb 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2019-07-12 +# v2019-07-15 # # known issues: # @@ -118,15 +118,6 @@ sudo apt install -y rsync; echo -e "\e[32minstall syslinux-common for pxe\e[0m"; sudo apt install -y pxelinux syslinux-common syslinux-efi; -#sudo wget -O /tmp/temp.tar.xz https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/syslinux-6.04-pre1.tar.xz; -#echo -e "\e[32m update the 32bit efi file and ldlinux.e32 to 6.04-pre1 due to bugs\e[0m"; -#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi32/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi32/efi/syslinux.efi; -#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi32/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi32/com32/elflink/ldlinux/ldlinux.e32; -#echo -e "\e[32m update the 64bit efi file and ldlinux.e64 to 6.04-pre1 due to bugs\e[0m"; -#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/SYSLINUX.EFI/efi64/ --no-same-owner --no-same-permissions --strip-components=3 syslinux-6.04-pre1/efi64/efi/syslinux.efi; -#sudo tar -x -v -f /tmp/temp.tar.xz -C /usr/lib/syslinux/modules/efi64/ --no-same-owner --no-same-permissions --strip-components=5 syslinux-6.04-pre1/efi64/com32/elflink/ldlinux/ldlinux.e64; -#sudo rm /tmp/temp.tar.xz; - ###################################################################### echo -e "\e[32minstall lighttpd\e[0m"; From 77fe4c45b3fc6dbb085503497daee64b065e5249 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 15 Jul 2019 21:31:32 +0200 Subject: [PATCH 248/694] stretch -> buster --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a4967a3..eada800 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspbian Stretch** or **Raspbina Stretch Lite** (2018-11-13), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspbian Buster** or **Raspbina Buster Lite** (2019-07-10), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspbian Stretch (or Lite) from 2018-11-13, +- your Raspberry Pi is running Raspbian Buster (or Lite) from 2019-07-10, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (16GB when you use unmodified script) @@ -248,7 +248,7 @@ Serial : 0000000087654321 then take ```RPI_SN0=87654321```.
if you have more than one RPi3-client for network booting you have to add them by hand to the ```/srv/tftp``` folder on the PXE-server. -the script will download Raspbian-Stretch-Lite and prepare it for the RPi3-client with the given serial number. +the script will download Raspbian-Buster-Lite and prepare it for the RPi3-client with the given serial number. by default, a RPi3-client is not enabled for network booting. you have to enable it once. From 90b86db8a5af640c0e49f1863a427378f0f95431 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 2 Aug 2019 07:18:52 +0200 Subject: [PATCH 249/694] updated url (mint) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 999755b..40f7d31 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-07-12 +# v 2019-08-02 ########################################################################## ########################################################################## @@ -104,7 +104,7 @@ LUBUNTU_X86_HASH_TYPE=sha256 LUBUNTU_X86_HASH_PATTERN=SHA256SUMS MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.1/linuxmint-19.1-xfce-64bit.iso +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.2/linuxmint-19.2-xfce-64bit.iso MINT_X64_HASH_TYPE=sha256 MINT_X64_HASH_PATTERN=sha256sum.txt From cde4c688a00fbad282a3e0ee51f19a343527a464 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 9 Aug 2019 12:20:27 +0200 Subject: [PATCH 250/694] disable wpa_supplicant in hostapd setup --- install-pxe-server_pass2.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b8d0758..0715939 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -157,6 +157,10 @@ DAEMON_CONF=\"/etc/hostapd/hostapd.conf\" EOF"; } + sudo systemctl stop wpa_supplicant; + sudo systemctl disable wpa_supplicant; + sudo rfkill unblock wlan; + sudo systemctl unmask hostapd; sudo systemctl enable hostapd; sudo systemctl restart hostapd; From bc950417f55fec5420736ad5721a8eaf5ebf1a0b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 13 Aug 2019 13:13:46 +0200 Subject: [PATCH 251/694] updated url (parrot) --- p2-include-url.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 40f7d31..5ce56ae 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-08-02 +# v 2019-08-13 ########################################################################## ########################################################################## @@ -109,12 +109,12 @@ MINT_X64_HASH_TYPE=sha256 MINT_X64_HASH_PATTERN=sha256sum.txt PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7-1_amd64.iso PARROT_FULL_X64_HASH_TYPE=sha512 PARROT_FULL_X64_HASH_PATTERN=signed-hashes.txt PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7-2019.08.06_amd64.iso PARROT_LITE_X64_HASH_TYPE=sha512 PARROT_LITE_X64_HASH_PATTERN=signed-hashes.txt @@ -242,4 +242,3 @@ RPD_LITE=rpi-raspbian-lite RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest RPD_LITE_HASH_TYPE=sha256 RPD_LITE_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ - From 96510a657d124db668fca8e6e356ec64bda20ee7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 13 Aug 2019 20:29:28 +0200 Subject: [PATCH 252/694] kaspersky fixed the init file see https://community.kaspersky.com/kaspersky-rescue-disk-78/please-fix-init-file-of-the-rescure-dvd-for-proper-pxe-boot-970#post14691 --- p2-include-menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 2d26691..170aa69 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -269,7 +269,7 @@ if [ -f "$FILE_MENU" ] \ LABEL $KASPERSKY_RESCUE_X86 MENU LABEL Kaspersky Rescue Disk KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 - INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz,$FILE_BASE$NFS_ETH0/kaspersky-rescue-x86-initrd.xz + INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us TEXT HELP Boot to Kaspersky Rescue Disk From 4c12939a3894590acfc69ea1867e4013e82a9391 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 5 Sep 2019 21:22:16 +0200 Subject: [PATCH 253/694] updated url (tails) (parrot down to 4.6) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 5ce56ae..451c9e5 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-08-13 +# v 2019-09-05 ########################################################################## ########################################################################## @@ -109,12 +109,12 @@ MINT_X64_HASH_TYPE=sha256 MINT_X64_HASH_PATTERN=sha256sum.txt PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7-1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-security-4.6_amd64.iso PARROT_FULL_X64_HASH_TYPE=sha512 PARROT_FULL_X64_HASH_PATTERN=signed-hashes.txt PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7-2019.08.06_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-home-4.6_amd64.iso PARROT_LITE_X64_HASH_TYPE=sha512 PARROT_LITE_X64_HASH_PATTERN=signed-hashes.txt @@ -212,7 +212,7 @@ OPENSUSE_X64_HASH_TYPE=sha256 OPENSUSE_X64_HASH_PATTERN=.sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.15/tails-amd64-3.15.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.16/tails-amd64-3.16.iso ########################################################################## From 43149e29a2b3aad79addcb470c8aaa9340e00429 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 14 Sep 2019 21:11:25 +0200 Subject: [PATCH 254/694] updated url (debian) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 451c9e5..b170a7c 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-09-05 +# v 2019-09-14 ########################################################################## ########################################################################## @@ -30,12 +30,12 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.19.0-5 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.0.0-amd64-xfce.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.1.0-amd64-xfce.iso DEBIAN_X64_HASH_TYPE=sha512 DEBIAN_X64_HASH_PATTERN=SHA512SUMS DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.0.0-i386-xfce.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.1.0-i386-xfce.iso DEBIAN_X86_HASH_TYPE=sha512 DEBIAN_X86_HASH_PATTERN=SHA512SUMS From b28410a33d1b348e55a99471164c173dec0f71f0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 14 Sep 2019 23:29:03 +0200 Subject: [PATCH 255/694] fixed: DEBIAN_KVER=4.19.0-6 --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index b170a7c..32862ca 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -27,7 +27,7 @@ CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.2-15/clonezilla-live-2.6.2-15-i686.iso -DEBIAN_KVER=4.19.0-5 +DEBIAN_KVER=4.19.0-6 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.1.0-amd64-xfce.iso From 461e4bbbf2c94a2947d93daa488d97ac7cee6ed4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 17 Sep 2019 19:26:29 +0200 Subject: [PATCH 256/694] updated url (clonezilla) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 32862ca..f7368d8 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-09-14 +# v 2019-09-17 ########################################################################## ########################################################################## @@ -22,10 +22,10 @@ ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.2-15/clonezilla-live-2.6.2-15-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.3-7/clonezilla-live-2.6.3-7-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.2-15/clonezilla-live-2.6.2-15-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.3-7/clonezilla-live-2.6.3-7-i686.iso DEBIAN_KVER=4.19.0-6 From dc119ca9f7b91d92fbbaa094e0e0cde0710c6fea Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 21 Sep 2019 20:41:37 +0200 Subject: [PATCH 257/694] updated url (parrot) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index f7368d8..9b91c35 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-09-17 +# v 2019-09-21 ########################################################################## ########################################################################## @@ -109,12 +109,12 @@ MINT_X64_HASH_TYPE=sha256 MINT_X64_HASH_PATTERN=sha256sum.txt PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-security-4.6_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7_x64.iso PARROT_FULL_X64_HASH_TYPE=sha512 PARROT_FULL_X64_HASH_PATTERN=signed-hashes.txt PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.6/Parrot-home-4.6_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7_x64.iso PARROT_LITE_X64_HASH_TYPE=sha512 PARROT_LITE_X64_HASH_PATTERN=signed-hashes.txt From ff64c45b7fd01e1cfd4c3ae3585c563f07711cd0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 23 Sep 2019 11:56:53 +0200 Subject: [PATCH 258/694] fix UEFI boot file names --- install-pxe-server_pass2.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 0715939..75725da 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -348,16 +348,16 @@ tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3 pxe-service=tag:ARM_RPI3,0, \"Raspberry Pi Boot \", bootcode.bin pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/lpxelinux -pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/syslinux.efi -pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/syslinux.efi -pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/syslinux.efi +pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/bootia32.efi +pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/bootx64.efi +pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/bootx64.efi #pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe #pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi dhcp-boot=tag:ARM_RPI3, bootcode.bin dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 -dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/syslinux.efi -dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/syslinux.efi +dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/bootia32.efi +dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/bootx64.efi #dhcp-boot=tag:x86_iPXE, http://$(hostname)/real_boot_script.php #dhcp-boot=tag:x86_iPXE, undionly.kpxe #dhcp-boot=tag:UEFI_iPXE, ipxe.efi @@ -556,7 +556,7 @@ handle_pxe() { ###################################################################### echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/bootia32.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI32/bootia32.efi; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; @@ -570,7 +570,7 @@ handle_pxe() { ###################################################################### echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/syslinux.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/bootx64.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI64/bootx64.efi; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; From c622b93e151e2f45b52c7a057bbcf0b1e35b74a0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 23 Sep 2019 23:20:09 +0200 Subject: [PATCH 259/694] added wimboot --- install-pxe-server_pass2.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 75725da..7cb600f 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -537,7 +537,6 @@ handle_pxe() { # fi #done - ###################################################################### echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; @@ -551,6 +550,12 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/memdisk" ] || sudo ln -s /usr/lib/syslinux/memdisk $DST_TFTP_ETH0/$DST_PXE_BIOS/; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_BIOS/nfs; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; + + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot" ] \ + || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz \ + || tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot > /dev/null \ + handle_pxe_menu $DST_PXE_BIOS default; ###################################################################### @@ -565,6 +570,12 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI32/nfs; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; + + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] \ + || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz \ + || tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot > /dev/null \ + handle_pxe_menu $DST_PXE_EFI32 default; ###################################################################### @@ -579,6 +590,12 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI64/nfs; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; + + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; + [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] \ + || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz \ + || tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot > /dev/null \ + handle_pxe_menu $DST_PXE_EFI64 default; } From 0bc22fdf8809af429a3aebbc8bd7417c44033364 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 23 Sep 2019 23:33:56 +0200 Subject: [PATCH 260/694] added wimboot --- install-pxe-server_pass2.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 7cb600f..38bc0c4 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -552,9 +552,9 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot" ] \ - || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz \ - || tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot > /dev/null \ + [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot" ] \ + || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot > /dev/null; handle_pxe_menu $DST_PXE_BIOS default; @@ -572,9 +572,9 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] \ - || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz \ - || tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot > /dev/null \ + [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] \ + || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot > /dev/null; handle_pxe_menu $DST_PXE_EFI32 default; @@ -592,9 +592,9 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] \ - || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz \ - || tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot > /dev/null \ + [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] \ + || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot > /dev/null; handle_pxe_menu $DST_PXE_EFI64 default; } From 8da2f3126e5bbcd43cedd6da771997df4fcdb4ee Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 23 Sep 2019 23:47:00 +0200 Subject: [PATCH 261/694] added wimboot for WinPE --- p2-include-menu.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 170aa69..ed2ad9c 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -801,6 +801,24 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_TFTP_ETH0/$1/wimboot" ] \ +&& [ -f "$DST_NFS_ETH0/$WIN_PE_X86/sources/boot.wim" ]; then + echo -e "\e[36m add $WIN_PE_X86 (WIM)\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $WIN_PE_X86-pxe + MENU LABEL Windows PE x86 (WIM) + COM32 linux.c32 wimboot + APPEND initrdfile=$FILE_BASE$NFS_ETH0/$WIN_PE_X86/Boot/BCD,$FILE_BASE$NFS_ETH0/$WIN_PE_X86/Boot/boot.sdi,$FILE_BASE$NFS_ETH0/$WIN_PE_X86/sources/boot.wim + TEXT HELP + Boot to Windows PE 32bit + ENDTEXT +EOF"; +fi +#=========== END =========== + ########################################################################## From 0ca970dabecec77d33a08b81c9597363e3c5e3c9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 24 Sep 2019 11:56:29 +0200 Subject: [PATCH 262/694] Update install-pxe-server_pass2.sh --- install-pxe-server_pass2.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 38bc0c4..4cf14d0 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -552,9 +552,9 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot" ] \ - || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot > /dev/null; + [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot" ] || ( \ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot > /dev/null); handle_pxe_menu $DST_PXE_BIOS default; @@ -572,9 +572,9 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] \ - || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot > /dev/null; + [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] || ( \ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot > /dev/null); handle_pxe_menu $DST_PXE_EFI32 default; @@ -592,9 +592,9 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] \ - || wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot > /dev/null; + [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] || (\ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot > /dev/null); handle_pxe_menu $DST_PXE_EFI64 default; } From 4959336eb9bb0df8eb0ced1b82a02671135ae6c0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 25 Sep 2019 12:59:31 +0200 Subject: [PATCH 263/694] updated url (CentOS) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 9b91c35..eecc0f0 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-09-21 +# v 2019-09-25 ########################################################################## ########################################################################## @@ -197,7 +197,7 @@ ANDROID_X86=android-x86 ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-r1.iso CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso +CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso CENTOS_X64_HASH_TYPE=sha256 CENTOS_X64_HASH_PATTERN=sha256sum.txt.asc From 6f9757d9d3d5e7a71223c4a44b29dfb8cbbf96d5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 1 Oct 2019 20:42:34 +0200 Subject: [PATCH 264/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index eecc0f0..87ba01d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-09-25 +# v 2019-10-01 ########################################################################## ########################################################################## @@ -71,7 +71,7 @@ GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.2-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.3-amd64.iso KALI_X64_HASH_TYPE=sha256 KALI_X64_HASH_PATTERN=SHA256SUMS From caca84440d26102aabdb4e527fdeefc00950279e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 1 Oct 2019 21:05:05 +0200 Subject: [PATCH 265/694] Update p2-include-url.sh --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 87ba01d..9d3d84d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -197,7 +197,7 @@ ANDROID_X86=android-x86 ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-r1.iso CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.rrzn.uni-hannover.de/centos/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso +CENTOS_X64_URL=http://ftp.tu-chemnitz.de/pub/linux/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1908.iso CENTOS_X64_HASH_TYPE=sha256 CENTOS_X64_HASH_PATTERN=sha256sum.txt.asc From 419df9c7172b7582ece960984909e4bb25949bc5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Oct 2019 16:48:50 +0200 Subject: [PATCH 266/694] updates url (ubuntu) --- p2-include-menu.sh | 42 ++++++-- p2-include-url.sh | 245 +++++++++++++++++++++++++++++---------------- 2 files changed, 193 insertions(+), 94 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index ed2ad9c..51304f5 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -288,7 +288,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -345,7 +345,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -364,7 +364,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -560,7 +560,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -582,7 +582,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Live FirmwareTestSuite KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper toram -- TEXT HELP Boot to Ubuntu Live FirmwareTestSuite User: ubuntu @@ -639,7 +639,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Daily-Live User: ubuntu @@ -658,7 +658,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Live User: ubuntu @@ -677,7 +677,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -947,3 +947,29 @@ if [ -f "$FILE_MENU" ] \ EOF"; fi #========== END ========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then + echo -e "\e[36m add $KNOPPIX_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## NOT WORKING + ## $ knoppix-terminalserver + ## $ cat /etc/exports + ## /mnt-system 192.168.1.0/255.255.255.0(ro,no_root_squash,no_subtree_check,async,fsid=0) + ## $ cat /tmp/tftpboot/pxelinux.cfg/default + ## APPEND secure nfsdir=192.168.1.1:/mnt-system nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix + ## #INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/minirt.gz + ## #APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 lang=de apm=power-off nomce hpsa.hpsa_allow_any=1 loglevel=1 debug forensic + LABEL $KNOPPIX_X86 + MENU LABEL Knoppix x86 (broken) + KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux + INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86-miniroot.gz + APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix debug + TEXT HELP + Boot to Knoppix x86 Live + ENDTEXT +EOF"; +fi +#========== END ========== diff --git a/p2-include-url.sh b/p2-include-url.sh index 9d3d84d..53700d6 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,53 @@ then fi ########################################################################## -# v 2019-10-01 +# v 2019-10-17 + +########################################################################## +# winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install +# https://www.heise.de/ct/artikel/c-t-Notfall-Windows-2020-4514169.html +# https://github.com/pebakery/pebakery +# arch https://www.archlinux.org/download/ +# fedora https://getfedora.org/en/workstation/download/ +# ubuntu http://releases.ubuntu.com/ +# http://cdimage.ubuntu.com/ubuntu/releases/ +# http://cdimage.ubuntu.com/daily-live/ +# ubuntu studio http://cdimage.ubuntu.com/ubuntustudio/releases/ +# http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ +# lubuntu http://cdimage.ubuntu.com/lubuntu/releases/ +# http://cdimage.ubuntu.com/lubuntu/daily-live/pending/ +# debian https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ +# https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ +# devuan https://files.devuan.org/devuan_ascii/desktop-live/ +# gnuradio https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment +# parrotsec https://cdimage.parrotsec.org/parrot/iso/ +# kali http://cdimage.kali.org/kali-images/current/ +# http://cdimage.kali.org/kali-images/kali-weekly/ +# pentoo https://www.pentoo.ch/isos/Pentoo_Full_amd64_hardened/ +# https://www.pentoo.ch/isos/Beta/Pentoo_Full_amd64_hardened/ +# deft http://www.deftlinux.net/ +# clonezilla https://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/ +# system rescue cd https://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/ +# http://beta.system-rescue-cd.org/ +# tiny core http://tinycorelinux.net/downloads.html +# rpdesktop https://downloads.raspberrypi.org/rpd_x86/images/ +# gentoo https://www.gentoo.org/downloads/ +# http://distfiles.gentoo.org/releases/amd64/ +# http://distfiles.gentoo.org/releases/x86/ +# opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ +# centos https://www.centos.org/download/ +# tail https://tails.boum.org/install/download/ +# knoppix http://www.knopper.net/knoppix-mirrors/index-en.html +# kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk +# bitdefender https://download.bitdefender.com/rescue_cd/latest/ +# ESET SysRescue Live https://www.eset.com/int/download-utilities/#content-c10295 +# linuxmint https://www.linuxmint.com/download.php +# https://mirrors.edge.kernel.org/linuxmint/stable/ +# android x86 https://osdn.net/projects/android-x86/ +# rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ +# piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ +# http://tinycorelinux.net/9.x/armv7/releases/RPi/ + ########################################################################## ########################################################################## @@ -21,102 +67,113 @@ fi ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn + CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.3-7/clonezilla-live-2.6.3-7-amd64.iso - CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.3-7/clonezilla-live-2.6.3-7-i686.iso -DEBIAN_KVER=4.19.0-6 +DEBIAN_KVER=4.19.0-6 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.1.0-amd64-xfce.iso -DEBIAN_X64_HASH_TYPE=sha512 -DEBIAN_X64_HASH_PATTERN=SHA512SUMS +DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS +DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.1.0-i386-xfce.iso -DEBIAN_X86_HASH_TYPE=sha512 -DEBIAN_X86_HASH_PATTERN=SHA512SUMS +DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS +DEBIAN_X86_SUM_TYPE=sha256 + DEFTZ_X64=deftz-x64 DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso -DEFTZ_X64_HASH_TYPE=md5 -DEFTZ_X64_HASH_PATTERN=.md5 +DEFTZ_X64_SUM=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso.md5 +DEFTZ_X64_SUM_TYPE=md5 DEFT_X64=deft-x64 DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/iso/deft-8.2.iso -DEFT_X64_HASH_TYPE=md5 -DEFT_X64_HASH_PATTERN=https://na.mirror.garr.it/mirrors/deft/md5.txt +DEFT_X64_SUM=https://na.mirror.garr.it/mirrors/deft/md5.txt +DEFT_X64_SUM_TYPE=md5 + DEVUAN_X64=devuan-x64 DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso -DEVUAN_X64_HASH_TYPE=sha256 -DEVUAN_X64_HASH_PATTERN=SHA256SUMS +DEVUAN_X64_SUM=https://files.devuan.org/devuan_ascii/desktop-live/SHA256SUMS +DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso -DEVUAN_X86_HASH_TYPE=sha256 -DEVUAN_X86_HASH_PATTERN=SHA256SUMS +DEVUAN_X86_SUM=https://files.devuan.org/devuan_ascii/desktop-live/SHA256SUMS +DEVUAN_X86_SUM_TYPE=sha256 + ESET_SYSRESCUE_X86=eset-rescue-x86 ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso + FEDORA_X64=fedora-x64 FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-30-1.2.iso -FEDORA_X64_HASH_TYPE=sha256 -FEDORA_X64_HASH_PATTERN=-CHECKSUM +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-30-1.2-x86_64-CHECKSUM +FEDORA_X64_SUM_TYPE=sha256 + GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso + KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.3-amd64.iso -KALI_X64_HASH_TYPE=sha256 -KALI_X64_HASH_PATTERN=SHA256SUMS +KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS +KALI_X64_SUM_TYPE=sha256 + KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso + LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/eoan-desktop-amd64.iso -LUBUNTU_DAILY_X64_HASH_TYPE=sha256 -LUBUNTU_DAILY_X64_HASH_PATTERN=SHA256SUMS +LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/focal-desktop-amd64.iso +LUBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS +LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-amd64.iso -LUBUNTU_LTS_X64_HASH_TYPE=sha256 -LUBUNTU_LTS_X64_HASH_PATTERN=SHA256SUMS - -LUBUNTU_LTS_X86=lubuntu-lts-x86 -LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.2-desktop-i386.iso -LUBUNTU_LTS_X86_HASH_TYPE=sha256 -LUBUNTU_LTS_X86_HASH_PATTERN=SHA256SUMS +LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.3-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS +LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.04/release/lubuntu-19.04-desktop-amd64.iso -LUBUNTU_X64_HASH_TYPE=sha256 -LUBUNTU_X64_HASH_PATTERN=SHA256SUMS +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.10/release/lubuntu-19.10-desktop-amd64.iso +LUBUNTU_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/19.10/release/SHA256SUMS +LUBUNTU_X64_SUM_TYPE=sha256 + +LUBUNTU_LTS_X86=lubuntu-lts-x86 +LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.3-desktop-i386.iso +LUBUNTU_LTS_X86_SUM=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS +LUBUNTU_LTS_X86_SUM_TYPE=sha256 LUBUNTU_X86=lubuntu-x86 LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso -LUBUNTU_X86_HASH_TYPE=sha256 -LUBUNTU_X86_HASH_PATTERN=SHA256SUMS +LUBUNTU_X86_SUM=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/SHA256SUMS +LUBUNTU_X86_SUM_TYPE=sha256 + MINT_X64=mint-x64 MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.2/linuxmint-19.2-xfce-64bit.iso -MINT_X64_HASH_TYPE=sha256 -MINT_X64_HASH_PATTERN=sha256sum.txt +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/19.2/sha256sum.txt +MINT_X64_SUM_TYPE=sha256 + PARROT_FULL_X64=parrot-full-x64 PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7_x64.iso -PARROT_FULL_X64_HASH_TYPE=sha512 -PARROT_FULL_X64_HASH_PATTERN=signed-hashes.txt +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.7/signed-hashes.txt +PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7_x64.iso -PARROT_LITE_X64_HASH_TYPE=sha512 -PARROT_LITE_X64_HASH_PATTERN=signed-hashes.txt +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.7/signed-hashes.txt +PARROT_LITE_X64_SUM_TYPE=sha256 + PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso @@ -124,58 +181,62 @@ PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-f PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso + RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest -RPDESKTOP_X86_HASH_TYPE=sha256 -RPDESKTOP_X86_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ +RPDESKTOP_X86_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ +RPDESKTOP_X86_SUM_TYPE=sha256 + SYSTEMRESCUE_X86=systemrescue-x86 SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.1/systemrescuecd-6.0.1.iso + TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_HASH_TYPE=md5 -TINYCORE_X64_HASH_PATTERN=.md5.txt +TINYCORE_X64_SUM=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso -TINYCORE_X86_HASH_TYPE=md5 -TINYCORE_X86_HASH_PATTERN=.md5.txt +TINYCORE_X86_SUM=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso.md5.txt +TINYCORE_X86_SUM_TYPE=md5 + UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/eoan-desktop-amd64.iso -UBUNTU_DAILY_X64_HASH_TYPE=sha256 -UBUNTU_DAILY_X64_HASH_PATTERN=SHA256SUMS +UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/focal-desktop-amd64.iso +UBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS +UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-19.02.00.img -UBUNTU_FWTS_HASH_TYPE=sha256 -UBUNTU_FWTS_HASH_PATTERN=SHA256SUMS +UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-19.09.00.img.xz +UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM +UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.2-desktop-amd64.iso -UBUNTU_LTS_X64_HASH_TYPE=sha256 -UBUNTU_LTS_X64_HASH_PATTERN=SHA256SUMS - -UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso -UBUNTU_LTS_X86_HASH_TYPE=sha256 -UBUNTU_LTS_X86_HASH_PATTERN=SHA256SUMS +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=http://releases.ubuntu.com/18.04/SHA256SUMS +UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/eoan-dvd-amd64.iso -UBUNTU_STUDIO_DAILY_X64_HASH_TYPE=sha256 -UBUNTU_STUDIO_DAILY_X64_HASH_PATTERN=SHA256SUMS +UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/focal-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS +UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/19.04/release/ubuntustudio-19.04-dvd-amd64.iso -UBUNTU_STUDIO_X64_HASH_TYPE=sha256 -UBUNTU_STUDIO_X64_HASH_PATTERN=SHA256SUMS +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/19.10/release/ubuntustudio-19.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/releases/19.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/19.04/ubuntu-19.04-desktop-amd64.iso -UBUNTU_X64_HASH_TYPE=sha256 -UBUNTU_X64_HASH_PATTERN=SHA256SUMS +UBUNTU_X64_URL=http://releases.ubuntu.com/19.10/ubuntu-19.10-desktop-amd64.iso +UBUNTU_X64_SUM=http://releases.ubuntu.com/19.10/SHA256SUMS +UBUNTU_X64_SUM_TYPE=sha256 + +UBUNTU_LTS_X86=ubuntu-lts-x86 +UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso +UBUNTU_LTS_X86_SUM=http://releases.ubuntu.com/16.04/SHA256SUMS +UBUNTU_LTS_X86_SUM_TYPE=sha256 #custom# @@ -185,36 +246,45 @@ DESINFECT_X64_URL= DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= + UBUNTU_NONPAE=ubuntu-nopae UBUNTU_NONPAE_URL= + WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= #broken# ANDROID_X86=android-x86 -ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86_64-8.1-r1.iso +ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86-8.1-r2.iso + CENTOS_X64=centos-x64 -CENTOS_X64_URL=http://ftp.tu-chemnitz.de/pub/linux/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1908.iso -CENTOS_X64_HASH_TYPE=sha256 -CENTOS_X64_HASH_PATTERN=sha256sum.txt.asc +CENTOS_X64_URL=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1908.iso +CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.txt +CENTOS_X64_SUM_TYPE=sha256 + OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso -OPENSUSE_RESCUE_X64_HASH_TYPE=sha256 -OPENSUSE_RESCUE_X64_HASH_PATTERN=.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso.sha256 +OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.1/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso -OPENSUSE_X64_HASH_TYPE=sha256 -OPENSUSE_X64_HASH_PATTERN=.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso.sha256 +OPENSUSE_X64_SUM_TYPE=sha256 + TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.16/tails-amd64-3.16.iso +KNOPPIX_X86=knoppix-x86 +KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6-2019-08-08-DE.iso + + ########################################################################## ########################################################################## ## url to zip files, @@ -230,15 +300,18 @@ PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_BASIC=rpi-raspbian-basic RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest -RPD_BASIC_HASH_TYPE=sha256 -RPD_BASIC_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ +RPD_BASIC_SUM=https://www.raspberrypi.org/downloads/raspbian/ +RPD_BASIC_SUM_TYPE=sha256 RPD_FULL=rpi-raspbian-full RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest -RPD_FULL_HASH_TYPE=sha256 -RPD_FULL_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ +RPD_FULL_SUM=https://www.raspberrypi.org/downloads/raspbian/ +RPD_FULL_SUM_TYPE=sha256 RPD_LITE=rpi-raspbian-lite RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest -RPD_LITE_HASH_TYPE=sha256 -RPD_LITE_HASH_PATTERN=https://www.raspberrypi.org/downloads/raspbian/ +RPD_LITE_SUM=https://www.raspberrypi.org/downloads/raspbian/ +RPD_LITE_SUM_TYPE=sha256 + + +########################################################################## From e2703e2330ad7b2e06cb0a680fe5270895d64ab4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Oct 2019 08:36:26 +0200 Subject: [PATCH 267/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 53700d6..88c5c84 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-10-17 +# v 2019-10-22 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -278,7 +278,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-3.16/tails-amd64-3.16.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.0/tails-amd64-4.0.iso KNOPPIX_X86=knoppix-x86 From 21924569f5427ea27e35983a5f1484732426114c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Oct 2019 09:57:00 +0200 Subject: [PATCH 268/694] added knoppix --- p2-include-menu.sh | 56 ++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 51304f5..b56836c 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -263,7 +263,6 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; - [ -f "$DST_NFS_ETH0/kaspersky-rescue-x86-initrd.xz" ] || ( sudo wget -O /tmp/tmp.zip https://github.com/beta-tester/RPi-PXE-Server/files/2705800/kaspersky-rescue-x86-initrd.zip && sudo unzip /tmp/tmp.zip -d $DST_NFS_ETH0/ && sudo rm /tmp/tmp.zip ); sudo sh -c "cat << EOF >> $FILE_MENU ######################################## LABEL $KASPERSKY_RESCUE_X86 @@ -278,6 +277,28 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ] \ +&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot.gz" ]; then + echo -e "\e[36m add $KNOPPIX_X86\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: + ## $ knoppix-terminalserver + ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz + LABEL $KNOPPIX_X86 + MENU LABEL Knoppix x86 + KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux + INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86-miniroot.gz + APPEND secure nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix + TEXT HELP + Boot to Knoppix x86 Live + ENDTEXT +EOF"; +fi +#========== END ========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then @@ -830,6 +851,7 @@ if [ -f "$FILE_MENU" ] \ echo -e "\e[36m add $ANDROID_X86\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## + ## NOT WORKING LABEL $ANDROID_X86 MENU LABEL Android x86 (broken) KERNEL $FILE_BASE$NFS_ETH0/$ANDROID_X86/kernel @@ -849,10 +871,10 @@ if [ -f "$FILE_MENU" ] \ echo -e "\e[36m add $CENTOS_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## + ## NOT WORKING ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel ## https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/installation_guide/chap-installation-server-setup ## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc - ## NOT WORKING LABEL $CENTOS_X64 MENU LABEL CentOS x64 (broken) KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz @@ -887,6 +909,7 @@ if [ -f "$FILE_MENU" ] \ echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## + ## NOT WORKING LABEL $OPENSUSE_RESCUE_X64 MENU LABEL openSUSE Leap Rescue x64 (broken) KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux @@ -908,6 +931,7 @@ if [ -f "$FILE_MENU" ] \ echo -e "\e[36m add $OPENSUSE_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## + ## NOT WORKING ## INFO: Booting live images ## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 ## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image @@ -933,8 +957,8 @@ if [ -f "$FILE_MENU" ] \ echo -e "\e[36m add $TAILS_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## - ## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten ## NOT WORKING + ## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten LABEL $TAILS_X64 MENU LABEL Tails x64 (broken) KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz @@ -947,29 +971,3 @@ if [ -f "$FILE_MENU" ] \ EOF"; fi #========== END ========== - -#========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then - echo -e "\e[36m add $KNOPPIX_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU - ######################################## - ## NOT WORKING - ## $ knoppix-terminalserver - ## $ cat /etc/exports - ## /mnt-system 192.168.1.0/255.255.255.0(ro,no_root_squash,no_subtree_check,async,fsid=0) - ## $ cat /tmp/tftpboot/pxelinux.cfg/default - ## APPEND secure nfsdir=192.168.1.1:/mnt-system nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix - ## #INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/minirt.gz - ## #APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 lang=de apm=power-off nomce hpsa.hpsa_allow_any=1 loglevel=1 debug forensic - LABEL $KNOPPIX_X86 - MENU LABEL Knoppix x86 (broken) - KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86-miniroot.gz - APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix debug - TEXT HELP - Boot to Knoppix x86 Live - ENDTEXT -EOF"; -fi -#========== END ========== From 1b0921e262b57b793421cc4acba42db3ee1e9e1b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Oct 2019 09:59:31 +0200 Subject: [PATCH 269/694] added knoppix --- p2-include-handle.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 49b5eb6..9afc015 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -32,6 +32,7 @@ handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $KALI_X64 $KALI_X64_URL; handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; +handle_iso $KNOPPIX_X86 $KNOPPIX_X86_URL; #_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; From df6f9ed39ed487c1dbe38376bc24571ae1e50049 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Oct 2019 10:30:18 +0200 Subject: [PATCH 270/694] issue #27 --- p2-include-menu.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index b56836c..396c5dc 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -279,18 +279,18 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ] \ -&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot.gz" ]; then +&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then echo -e "\e[36m add $KNOPPIX_X86\e[0m"; + [ -f "$DST_NFS_ETH0/knoppix-x86-miniroot.gz" ] || ( sudo wget -O $DST_NFS_ETH0/knoppix-x86-miniroot.gz https://github.com/beta-tester/RPi-PXE-Server/files/3754352/knoppix-x86-miniroot.gz ); sudo sh -c "cat << EOF >> $FILE_MENU ######################################## - ## INFO: + ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 ## $ knoppix-terminalserver ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz LABEL $KNOPPIX_X86 MENU LABEL Knoppix x86 KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86-miniroot.gz + INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot.gz APPEND secure nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix TEXT HELP Boot to Knoppix x86 Live From 394161677744f46a9b9cb05192c3c32cf41f0027 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Oct 2019 10:44:50 +0200 Subject: [PATCH 271/694] Update p2-include-url.sh --- p2-include-url.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 88c5c84..69c19cf 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -132,6 +132,12 @@ KASPERSKY_RESCUE_X86=kaspersky-rescue-x86 KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/krd.iso +KNOPPIX_X86=knoppix-x86 +KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6-2019-08-08-DE.iso +KNOPPIX_X86_SUM=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6-2019-08-08-DE.iso.sha256 +KNOPPIX_X86_SUM_TYPE=sha256 + + LUBUNTU_DAILY_X64=lubuntu-daily-x64 LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/focal-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS @@ -281,10 +287,6 @@ TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.0/tails-amd64-4.0.iso -KNOPPIX_X86=knoppix-x86 -KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6-2019-08-08-DE.iso - - ########################################################################## ########################################################################## ## url to zip files, From 4a432ad5d7de8d167d6fcf10087d59b9e77208dd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 23 Oct 2019 22:30:24 +0200 Subject: [PATCH 272/694] issue #27 (mem=800M) --- p2-include-menu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 396c5dc..3c688bd 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -281,7 +281,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then echo -e "\e[36m add $KNOPPIX_X86\e[0m"; - [ -f "$DST_NFS_ETH0/knoppix-x86-miniroot.gz" ] || ( sudo wget -O $DST_NFS_ETH0/knoppix-x86-miniroot.gz https://github.com/beta-tester/RPi-PXE-Server/files/3754352/knoppix-x86-miniroot.gz ); + [ -f "$DST_NFS_ETH0/knoppix-x86-miniroot.gz" ] || ( sudo wget -O $DST_NFS_ETH0/knoppix-x86-miniroot.gz https://github.com/beta-tester/RPi-PXE-Server/files/3764311/knoppix-x86-miniroot.gz ); sudo sh -c "cat << EOF >> $FILE_MENU ######################################## ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 @@ -291,7 +291,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Knoppix x86 KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot.gz - APPEND secure nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix + APPEND secure nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de mem=800M ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix TEXT HELP Boot to Knoppix x86 Live ENDTEXT From 7cf47617e7f67d02ccaeb29b1291b9a6875723f0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 29 Oct 2019 14:42:27 +0100 Subject: [PATCH 273/694] Update p2-include-menu.sh --- p2-include-menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 3c688bd..fdb45d1 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -291,7 +291,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Knoppix x86 KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot.gz - APPEND secure nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp lang=de mem=800M ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix + APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp mem=800M ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de TEXT HELP Boot to Knoppix x86 Live ENDTEXT From 2339a13a68f73530807ccfe4c4e42316e73ee822 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 29 Oct 2019 20:46:22 +0100 Subject: [PATCH 274/694] updated url (fedora) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 69c19cf..44f2688 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-10-22 +# v 2019-10-29 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -113,8 +113,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-30-1.2.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/30/Workstation/x86_64/iso/Fedora-Workstation-30-1.2-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/31/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-31-1.9.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/31/Workstation/x86_64/iso/Fedora-Workstation-31-1.9-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 From 0c3054ca8e35959612cf25f3cd6d41ae86155c02 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 Nov 2019 07:43:53 +0100 Subject: [PATCH 275/694] updated url (clonezilla) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 44f2688..599dc7f 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-10-29 +# v 2019-11-07 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -69,9 +69,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.3-7/clonezilla-live-2.6.3-7-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.4-10/clonezilla-live-2.6.4-10-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.3-7/clonezilla-live-2.6.3-7-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.4-10/clonezilla-live-2.6.4-10-i686.iso DEBIAN_KVER=4.19.0-6 From a84a52aa5745f3487397882f5351bf151d014be4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 Nov 2019 17:41:35 +0100 Subject: [PATCH 276/694] updated url (devuan) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 599dc7f..850a803 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -98,12 +98,12 @@ DEFT_X64_SUM_TYPE=md5 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_amd64_desktop-live.iso +DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.1_amd64_desktop-live.iso DEVUAN_X64_SUM=https://files.devuan.org/devuan_ascii/desktop-live/SHA256SUMS DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.0.0_i386_desktop-live.iso +DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.1_i386_desktop-live.iso DEVUAN_X86_SUM=https://files.devuan.org/devuan_ascii/desktop-live/SHA256SUMS DEVUAN_X86_SUM_TYPE=sha256 From aa9cfb456b215b518ad7d0a41fd754a0681838e9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 Nov 2019 17:50:56 +0100 Subject: [PATCH 277/694] removed link header --- install-pxe-server_pass2.sh | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4cf14d0..8c246ea 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -1,45 +1,6 @@ #!/bin/bash ########################################################################## -# winpe https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx -# arch https://www.archlinux.org/download/ -# fedora https://getfedora.org/en/workstation/download/ -# ubuntu http://releases.ubuntu.com/ -# http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ -# http://cdimage.ubuntu.com/daily-live/ -# ubuntu studio http://cdimage.ubuntu.com/ubuntustudio/releases/18.04/release/ -# http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ -# lubuntu http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/ -# http://cdimage.ubuntu.com/lubuntu/daily-live/pending/ -# debian https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ -# https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ -# devuan https://files.devuan.org/devuan_ascii/desktop-live/ -# gnuradio https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment -# parrotsec https://cdimage.parrotsec.org/parrot/iso/ -# kali http://cdimage.kali.org/kali-images/current/ -# http://cdimage.kali.org/kali-images/kali-weekly/ -# pentoo https://www.pentoo.ch/isos/Pentoo_amd64_hardened/ -# https://www.pentoo.ch/isos/Beta/Pentoo_Full_amd64_hardened/ -# deft http://www.deftlinux.net/ -# clonezilla https://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/ -# system rescue cd https://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/ -# http://beta.system-rescue-cd.org/ -# tiny core http://tinycorelinux.net/downloads.html -# rpdesktop https://downloads.raspberrypi.org/rpd_x86/images/ -# gentoo https://www.gentoo.org/downloads/ -# http://distfiles.gentoo.org/releases/amd64/ -# http://distfiles.gentoo.org/releases/x86/ -# opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ -# centos https://www.centos.org/download/ -# tail https://tails.boum.org/install/download/ -# knoppix http://www.knopper.net/knoppix-mirrors/index-en.html -# kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk -# android x86 https://osdn.net/projects/android-x86/ -# -# rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ -# piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ -# http://tinycorelinux.net/9.x/armv7/releases/RPi/ -# # known issues: # overlayfs can not get exported via nfs # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy From 693cc73a420e6ddf13e93dc780568e51b3942d2d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 20 Nov 2019 20:58:57 +0100 Subject: [PATCH 278/694] updated url (debian) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 850a803..fc7fff9 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-11-07 +# v 2019-11-20 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -76,12 +76,12 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.19.0-6 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.1.0-amd64-xfce.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.2.0-amd64-xfce.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.1.0-i386-xfce.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.2.0-i386-xfce.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 91285eaba592cef32f061262139ff1e5aa5d446f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Nov 2019 09:59:09 +0100 Subject: [PATCH 279/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index fc7fff9..efa0f0b 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-11-20 +# v 2019-11-28 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -123,7 +123,7 @@ GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.3-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.4-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 23977d0ff7e8a855c8aa6c3cdee010e003f30ee2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 6 Dec 2019 11:54:36 +0100 Subject: [PATCH 280/694] updated url (knoppix & tails) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index efa0f0b..86a9588 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-11-28 +# v 2019-12-06 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -133,8 +133,8 @@ KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/ KNOPPIX_X86=knoppix-x86 -KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6-2019-08-08-DE.iso -KNOPPIX_X86_SUM=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6-2019-08-08-DE.iso.sha256 +KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6.1-2019-10-14-DE.iso +KNOPPIX_X86_SUM=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6.1-2019-10-14-DE.iso.sha256 KNOPPIX_X86_SUM_TYPE=sha256 @@ -284,7 +284,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.0/tails-amd64-4.0.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.1/tails-amd64-4.1.iso ########################################################################## From a0cdd393a3f95d5649d332476ac56656a6fa45cd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 6 Dec 2019 13:25:23 +0100 Subject: [PATCH 281/694] updated miniroot 8.6.1 --- p2-include-menu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index fdb45d1..974c496 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -281,7 +281,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then echo -e "\e[36m add $KNOPPIX_X86\e[0m"; - [ -f "$DST_NFS_ETH0/knoppix-x86-miniroot.gz" ] || ( sudo wget -O $DST_NFS_ETH0/knoppix-x86-miniroot.gz https://github.com/beta-tester/RPi-PXE-Server/files/3764311/knoppix-x86-miniroot.gz ); + [ -f "$DST_NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz" ] || ( sudo wget -O $DST_NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/knoppix-x86-miniroot-8.6.1.gz ); sudo sh -c "cat << EOF >> $FILE_MENU ######################################## ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 @@ -290,8 +290,8 @@ if [ -f "$FILE_MENU" ] \ LABEL $KNOPPIX_X86 MENU LABEL Knoppix x86 KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot.gz - APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp mem=800M ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de + INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz + APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de TEXT HELP Boot to Knoppix x86 Live ENDTEXT From b74ddbc1b6b1e7e2298a413b3326a46ab37ab12c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 7 Dec 2019 23:03:00 +0100 Subject: [PATCH 282/694] --no-install-recommends --- install-pxe-server_pass1.sh | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index e490fcb..2bb44cd 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -76,17 +76,17 @@ echo -e "\e[32msync...\e[0m" && sudo sync \ ###################################################################### echo -e "\e[32minstall debconf-utils\e[0m"; -sudo apt install -y debconf-utils; +sudo apt install -y --no-install-recommends debconf-utils; ###################################################################### echo -e "\e[32minstall uuid\e[0m"; -sudo apt install -y uuid; +sudo apt install -y --no-install-recommends uuid; ###################################################################### echo -e "\e[32minstall nfs-kernel-server for pxe\e[0m"; -sudo apt install -y nfs-kernel-server; +sudo apt install -y --no-install-recommends nfs-kernel-server; sudo systemctl enable nfs-kernel-server.service; sudo systemctl restart nfs-kernel-server.service; @@ -99,29 +99,30 @@ sudo systemctl restart rpcbind.service; ###################################################################### echo -e "\e[32minstall dnsmasq for pxe\e[0m"; -sudo apt install -y dnsmasq +sudo apt install -y --no-install-recommends dnsmasq sudo systemctl enable dnsmasq.service; sudo systemctl restart dnsmasq.service; ###################################################################### echo -e "\e[32minstall samba\e[0m"; -sudo apt install -y samba; +echo "samba-common samba-common/dhcp boolean false" | sudo debconf-set-selections; +sudo apt install -y --no-install-recommends samba; ###################################################################### echo -e "\e[32minstall rsync\e[0m"; -sudo apt install -y rsync; +sudo apt install -y --no-install-recommends rsync; ###################################################################### echo -e "\e[32minstall syslinux-common for pxe\e[0m"; -sudo apt install -y pxelinux syslinux-common syslinux-efi; +sudo apt install -y --no-install-recommends pxelinux syslinux-common syslinux-efi; ###################################################################### echo -e "\e[32minstall lighttpd\e[0m"; -sudo apt install -y lighttpd; +sudo apt install -y --no-install-recommends lighttpd; sudo sh -c "cat << EOF >> /etc/lighttpd/lighttpd.conf ######################################## ## mod_install_server @@ -136,35 +137,35 @@ sudo rm /var/www/html/index.lighttpd.html ###################################################################### echo -e "\e[32minstall apt-cacher-ng\e[0m"; -sudo apt install -y apt-cacher-ng; +sudo apt install -y --no-install-recommends apt-cacher-ng; ###################################################################### echo -e "\e[32minstall bindfs\e[0m"; -sudo apt install -y fuse bindfs; +sudo apt install -y --no-install-recommends fuse bindfs; ###################################################################### echo -e "\e[32minstall wlan access point\e[0m"; -sudo apt install -y hostapd +sudo apt install -y --no-install-recommends hostapd ###################################################################### #bridge#echo -e "\e[32minstall network bridge\e[0m"; -#bridge#sudo apt install -y bridge-utils +#bridge#sudo apt install -y --no-install-recommends bridge-utils ###################################################################### echo -e "\e[32minstall iptables for network address translation (NAT)\e[0m"; echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | sudo debconf-set-selections; echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | sudo debconf-set-selections; -sudo apt install -y iptables iptables-persistent +sudo apt install -y --no-install-recommends iptables iptables-persistent ###################################################################### $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { echo -e "\e[32minstall chrony as ntp client and ntp server\e[0m"; -sudo apt install -y chrony; +sudo apt install -y --no-install-recommends chrony; sudo systemctl enable chronyd.service; sudo systemctl restart chronyd.service; } @@ -172,7 +173,7 @@ sudo systemctl restart chronyd.service; ###################################################################### ###################################################################### echo -e "\e[32minstall real-vnc-server\e[0m"; -sudo apt install -y realvnc-vnc-server +sudo apt install -y --no-install-recommends realvnc-vnc-server sudo systemctl enable vncserver-x11-serviced.service; sudo systemctl restart vncserver-x11-serviced.service; @@ -187,11 +188,11 @@ sudo systemctl restart vncserver-x11-serviced.service; ## optional echo -e "\e[32minstall wireshark\e[0m"; echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; -sudo apt install -y tshark wireshark +sudo apt install -y --no-install-recommends tshark wireshark sudo usermod -a -G wireshark $USER echo -e "\e[32minstall other useful stuff\e[0m"; -sudo apt install -y xterm transmission-gtk +sudo apt install -y --no-install-recommends xterm transmission-gtk echo -e "\e[32mreduce annoying networktraffic\e[0m"; sudo systemctl stop avahi-daemon.service From 9f374eeb63a64c38bcb617f1b80b1ddef8b8e5ed Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Dec 2019 20:52:38 +0100 Subject: [PATCH 283/694] updated url (tails) --- p2-include-url.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 86a9588..9c442af 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-12-06 +# v 2019-12-16 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -284,8 +284,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.1/tails-amd64-4.1.iso - +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.1.1/tails-amd64-4.1.1.iso ########################################################################## ########################################################################## From 9f0129f228cb86d61516f186fd4022027df24b4b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 20 Dec 2019 20:37:32 +0100 Subject: [PATCH 284/694] updated url (mint) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 9c442af..d6401b6 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-12-16 +# v 2019-12-20 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -165,8 +165,8 @@ LUBUNTU_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.2/linuxmint-19.2-xfce-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/19.2/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.3/linuxmint-19.3-xfce-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/19.3/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From 8d74cdc964135528a0000ec4b818e660482a4b18 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 6 Jan 2020 08:49:16 +0100 Subject: [PATCH 285/694] pentoo webpage seems to have issues down, certificate errors, ... ? --- p2-include-handle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 9afc015..aeba126 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -42,7 +42,7 @@ _unhandle_iso $MINT_X64 $MINT_X64_URL; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; -handle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; +#_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; From 169071ef94f20af69dd4dbac29f6b14703b0db90 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 8 Jan 2020 12:18:59 +0100 Subject: [PATCH 286/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index d6401b6..6038250 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2019-12-20 +# v 2020-01-08 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -284,7 +284,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.1.1/tails-amd64-4.1.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.2/tails-amd64-4.2.iso ########################################################################## ########################################################################## From 544cb2165bc7acc0883ca51ccca766eb3609f236 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 11 Jan 2020 22:27:06 +0100 Subject: [PATCH 287/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 6038250..0c4d58e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-01-08 +# v 2020-01-11 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -284,7 +284,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.2/tails-amd64-4.2.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.2.1/tails-amd64-4.2.1.iso ########################################################################## ########################################################################## From 4e959a8a351c1addbe9ec578b99c4ae7c1c2646d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 14 Jan 2020 10:43:39 +0100 Subject: [PATCH 288/694] updates url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 0c4d58e..fb2a397 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-01-11 +# v 2020-01-14 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -284,7 +284,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.2.1/tails-amd64-4.2.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.2.2/tails-amd64-4.2.2.iso ########################################################################## ########################################################################## From 00b64c561a7f240088cfbb40f177bf4cdbd5c6fb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Jan 2020 20:05:40 +0100 Subject: [PATCH 289/694] Update p2-include-url.sh --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index fb2a397..ed61189 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-01-14 +# v 2020-01-26 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -76,12 +76,12 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.19.0-6 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.2.0-amd64-xfce.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.2.0-amd64-lxde.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.2.0-i386-xfce.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.2.0-i386-lxde.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 4547f5dfad5bfc706cad93ccbfe7a445c4945622 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 28 Jan 2020 14:19:50 +0100 Subject: [PATCH 290/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index ed61189..81124ef 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-01-26 +# v 2020-01-28 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -123,7 +123,7 @@ GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2019.4-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.1-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From c2ec085016de6f88fd154afd3662e19d9a06795f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 28 Jan 2020 15:52:17 +0100 Subject: [PATCH 291/694] changed kali login --- p2-include-menu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 974c496..7cff9aa 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -250,10 +250,10 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Kali x64 KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=root hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Kali x64 Live - User: root, Password: toor + User: kali, Password: kali ENDTEXT EOF"; fi From 454181989aa28d7866af8ddd7bbca581a81bb32e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 9 Feb 2020 14:20:24 +0100 Subject: [PATCH 292/694] updated url (debian) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 81124ef..98ee103 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-01-28 +# v 2020-02-09 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -76,12 +76,12 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.19.0-6 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.2.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.3.0-amd64-lxde.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.2.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.3.0-i386-lxde.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 67abff6d6956404dd5ca4e3de5bc110ae24188b6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 9 Feb 2020 14:32:51 +0100 Subject: [PATCH 293/694] updated debian kernel version --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 98ee103..5146f80 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -74,7 +74,7 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.4-10/clonezilla-live-2.6.4-10-i686.iso -DEBIAN_KVER=4.19.0-6 +DEBIAN_KVER=4.19.0-8 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.3.0-amd64-lxde.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS From 4d4f3845345f76ea5f89bc56d953175a6f0d8497 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 10 Feb 2020 23:10:57 +0100 Subject: [PATCH 294/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 5146f80..f145504 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-02-09 +# v 2020-02-10 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -284,7 +284,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.2.2/tails-amd64-4.2.2.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.3/tails-amd64-4.3.iso ########################################################################## ########################################################################## From 479a60365570936fee13033f1c6f7e0cb468a5a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 11 Feb 2020 12:07:21 +0100 Subject: [PATCH 295/694] updated url (TinyCore) --- p2-include-url.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index f145504..c94845e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-02-10 +# v 2020-02-11 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -199,13 +199,13 @@ SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/10.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 -TINYCORE_X86_URL=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso -TINYCORE_X86_SUM=http://tinycorelinux.net/10.x/x86/release/TinyCore-current.iso.md5.txt +TINYCORE_X86_URL=http://tinycorelinux.net/11.x/x86/release/TinyCore-current.iso +TINYCORE_X86_SUM=http://tinycorelinux.net/11.x/x86/release/TinyCore-current.iso.md5.txt TINYCORE_X86_SUM_TYPE=md5 From 29bf80c1541102a36b970d3bd346d5ca652b8022 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 26 Feb 2020 00:33:35 +0100 Subject: [PATCH 296/694] added backup.tar.xz - added backing up configuration files, before applying modifications. - added ipv6 stuff --- install-pxe-server_pass1.sh | 198 ++++----------- install-pxe-server_pass2.sh | 470 +++++++++++++++++------------------- 2 files changed, 263 insertions(+), 405 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 2bb44cd..7c80f36 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,62 +2,35 @@ ###################################################################### # -# v2019-07-15 +# v2020-02-25 # # known issues: # +BACKUP_FILE=backup.tar.xz +tar -ravf $BACKUP_FILE -C / boot/cmdline.txt ###################################################################### -# disable screensaver on console -echo -e "\e[36m disable term screensaver temporary\e[0m"; -setterm -blank 0 -powerdown 0 2> /dev/null; -xset s off 2> /dev/null; -echo -e "\e[36m done.\e[0m"; -echo -e "\e[36m disable X screensaver temporary\e[0m"; -xset -dpms 2> /dev/null; -echo -e "\e[36m done.\e[0m"; - - -###################################################################### -echo -e "\e[32msetup variables\e[0m"; -SRC_MOUNT=/media/server - - -###################################################################### -## optional -grep mod_install_server /etc/fstab > /dev/null || ( \ -echo -e "\e[32madd usb-stick to fstab\e[0m"; -[ -d "$SRC_MOUNT/" ] || sudo mkdir -p $SRC_MOUNT; -sudo sh -c "echo ' -## mod_install_server -LABEL=PXE-Server $SRC_MOUNT auto noatime,nofail,auto,x-systemd.automount,x-systemd.device-timeout=5,x-systemd.mount-timeout=5 0 0 -' >> /etc/fstab" -sudo mount -a; -) - - -###################################################################### -grep -q max_loop /boot/cmdline.txt 2> /dev/null || { +grep -q max_loop /boot/cmdline.txt &>/dev/null || { echo -e "\e[32msetup cmdline.txt for more loop devices\e[0m"; sudo sed -i '1 s/$/ max_loop=64/' /boot/cmdline.txt; } ###################################################################### -grep -q net.ifnames /boot/cmdline.txt 2> /dev/null || { +grep -q net.ifnames /boot/cmdline.txt &>/dev/null || { echo -e "\e[32msetup cmdline.txt for old style network interface names\e[0m"; sudo sed -i '1 s/$/ net.ifnames=0/' /boot/cmdline.txt; } ###################################################################### -grep -q quiet /boot/cmdline.txt 2> /dev/null && { +grep -q quiet /boot/cmdline.txt &>/dev/null && { echo -e "\e[32msetup cmdline.txt for more boot output\e[0m"; sudo sed -i '1 s/ quiet//' /boot/cmdline.txt; } ###################################################################### -grep -q splash /boot/cmdline.txt 2> /dev/null && { +grep -q splash /boot/cmdline.txt &>/dev/null && { echo -e "\e[32msetup cmdline.txt for no splash screen\e[0m"; sudo sed -i '1 s/ splash//' /boot/cmdline.txt; } @@ -71,6 +44,7 @@ echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mautoclean...\e[0m" && sudo apt autoclean \ && echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mDone.\e[0m" \ +&& sync \ ; @@ -123,38 +97,27 @@ sudo apt install -y --no-install-recommends pxelinux syslinux-common syslinux-ef ###################################################################### echo -e "\e[32minstall lighttpd\e[0m"; sudo apt install -y --no-install-recommends lighttpd; -sudo sh -c "cat << EOF >> /etc/lighttpd/lighttpd.conf +grep -q mod_install_server /etc/lighttpd/lighttpd.conf &>/dev/null || { + tar -ravf $BACKUP_FILE -C / etc/lighttpd/lighttpd.conf + cat << EOF | sudo tee -a /etc/lighttpd/lighttpd.conf &>/dev/null ######################################## ## mod_install_server -dir-listing.activate = \"enable\" -dir-listing.external-css = \"\" -dir-listing.external-js = \"\" -dir-listing.set-footer = \" 
\" -dir-listing.exclude = ( \"[.]*\.url\" ) -EOF"; +dir-listing.activate = "enable" +dir-listing.external-css = "" +dir-listing.external-js = "" +dir-listing.set-footer = " 
" +dir-listing.exclude = ( "[.]*\.url" ) +EOF +} +tar -ravf $BACKUP_FILE -C / var/www/html/index.lighttpd.html sudo rm /var/www/html/index.lighttpd.html -###################################################################### -echo -e "\e[32minstall apt-cacher-ng\e[0m"; -sudo apt install -y --no-install-recommends apt-cacher-ng; - - -###################################################################### -echo -e "\e[32minstall bindfs\e[0m"; -sudo apt install -y --no-install-recommends fuse bindfs; - - ###################################################################### echo -e "\e[32minstall wlan access point\e[0m"; sudo apt install -y --no-install-recommends hostapd -###################################################################### -#bridge#echo -e "\e[32minstall network bridge\e[0m"; -#bridge#sudo apt install -y --no-install-recommends bridge-utils - - ###################################################################### echo -e "\e[32minstall iptables for network address translation (NAT)\e[0m"; echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | sudo debconf-set-selections; @@ -164,24 +127,36 @@ sudo apt install -y --no-install-recommends iptables iptables-persistent ###################################################################### $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { -echo -e "\e[32minstall chrony as ntp client and ntp server\e[0m"; -sudo apt install -y --no-install-recommends chrony; -sudo systemctl enable chronyd.service; -sudo systemctl restart chronyd.service; + echo -e "\e[32minstall chrony as ntp client and ntp server\e[0m"; + sudo apt install -y --no-install-recommends chrony; + sudo systemctl enable chronyd.service; + sudo systemctl restart chronyd.service; } ###################################################################### ###################################################################### echo -e "\e[32minstall real-vnc-server\e[0m"; -sudo apt install -y --no-install-recommends realvnc-vnc-server +sudo apt install -y --no-install-recommends realvnc-vnc-server realvnc-vnc-viewer sudo systemctl enable vncserver-x11-serviced.service; sudo systemctl restart vncserver-x11-serviced.service; -[ -f $SRC_MOUNT/backup/vncserver-x11 ] && { - echo -e "\e[32msetup real-vnc-server\e[0m"; - sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/vncserver-x11 /root/.vnc/config.d/ - sudo systemctl restart vncserver-x11-serviced.service; -} + +###################################################################### +## optional +#echo -e "\e[32minstall apt-cacher-ng\e[0m"; +#sudo apt install -y --no-install-recommends apt-cacher-ng; + + +###################################################################### +## optional +#echo -e "\e[32minstall bindfs\e[0m"; +#sudo apt install -y --no-install-recommends fuse bindfs; + + +###################################################################### +## optional +#bridge#echo -e "\e[32minstall network bridge\e[0m"; +#bridge#sudo apt install -y --no-install-recommends bridge-utils ###################################################################### @@ -201,20 +176,6 @@ sudo systemctl stop minissdpd.service sudo systemctl disable minissdpd.service -###################################################################### -## optional -grep -q mod_install_server /etc/rc.local 2> /dev/null || { -echo -e "\e[32m... disable screensaver\e[0m"; -sudo sed /etc/rc.local -i -e "s/^exit 0$/########################################\n## mod_install_server\nsetterm -blank 0 -powerdown 0;\n\nexit 0/" -sudo sh -c "echo '######################################## -## mod_install_server -setterm -blank 0 -powerdown 0; -xset s off; -xset -dpms; -' >> /etc/X11/Xsession.d/40x11-common_xsessionrc"; -} - - ###################################################################### ## optional grep -q logo.nologo /boot/cmdline.txt 2> /dev/null || { @@ -226,83 +187,12 @@ sudo sed -i '1 s/$/ logo.nologo/' /boot/cmdline.txt; ###################################################################### ## optional echo -e "\e[32mchange hostname\e[0m"; -sudo sh -c "echo pxe-server > /etc/hostname" +tar -ravf $BACKUP_FILE -C / etc/hostname +echo pxe-server | sudo tee /etc/hostname &>/dev/null +tar -ravf $BACKUP_FILE -C / etc/hosts sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts -###################################################################### -## optional -grep -q mod_install_server /boot/config.txt 2> /dev/null || { -echo -e "\e[32msetup /boot/config.txt\e[0m"; -sudo sh -c "echo '######################################## -## mod_install_server -dtparam=audio=on - -max_usb_current=1 -#force_turbo=1 - -disable_overscan=1 -hdmi_force_hotplug=1 -config_hdmi_boost=4 - -hdmi_ignore_cec_init=1 -cec_osd_name=PXE-Server - -######################################### -# standard resolution -#hdmi_drive=2 - -######################################### -# custom resolution -# 4k@24Hz or 25Hz custom DMT - mode -gpu_mem=128 -hdmi_group=2 -hdmi_mode=87 -hdmi_pixel_freq_limit=400000000 -max_framebuffer_width=3840 -max_framebuffer_height=2160 - - #### implicit timing #### - #hdmi_cvt 3840 2160 24 - ##hdmi_cvt 3840 2160 25 - - #### explicit timing #### - #hdmi_ignore_edid=0xa5000080 - hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 - ##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 - #framebuffer_width=3840 - #framebuffer_height=2160 -' > /boot/config.txt" -} - - -###################################################################### -## optional -grep -q mod_install_server /etc/rc.local 2> /dev/null || { -echo -e "\e[32mdisable screensaver\e[0m"; -sudo sed /etc/rc.local -i -e 's/^exit 0$/\########################################\n## mod_install_server\nsetterm -blank 0 -powerdown 0;\n\nexit 0/' -sudo sh -c "echo '######################################## -## mod_install_server -setterm -blank 0 -powerdown 0; -xset s off; -xset -dpms; -' >> /etc/X11/Xsession.d/40x11-common_xsessionrc"; -} - - -###################################################################### -## optional -! [ -f /etc/ssh/mod_install_server ] && [ -d $SRC_MOUNT/backup/ssh/ ] && { -echo -e "\e[32mcopy predefined ssh keys\e[0m"; -sudo touch /etc/ssh/mod_install_server -sudo rsync -xa --info=progress2 $SRC_MOUNT/backup/ssh/* /etc/ssh/ -sudo chmod 0600 /etc/ssh/*key -sudo ssh-keygen -A -sudo systemctl disable regenerate_ssh_host_keys.service -# sudo rm -f /etc/systemd/system/multi-user.target.wants/regenerate_ssh_host_keys.service -} - - ###################################################################### sync echo -e "\e[32mDone.\e[0m"; diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8c246ea..45fdd15 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -5,11 +5,13 @@ # overlayfs can not get exported via nfs # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy # note: this overlayfs+bindfs construction does NOT work reliably - data loss! -# solution: maybe linux kernel 4.16 +# solution: maybe linux kernel 5.6 script_dir=$(dirname "$BASH_SOURCE") +BACKUP_FILE=backup.tar.xz + ########################################################################## echo -e "\e[36msetup variables\e[0m"; @@ -65,57 +67,92 @@ handle_hostapd() { ###################################################################### grep -q mod_install_server /etc/hostapd/hostapd.conf || { echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; - sudo sh -c "cat << EOF > /etc/hostapd/hostapd.conf + tar -ravf $BACKUP_FILE -C / etc/hostapd/hostapd.conf + cat << EOF | sudo tee /etc/hostapd/hostapd.conf &>/dev/null ######################################## #/etc/hostapd/hostapd.conf ## mod_install_server interface=$INTERFACE_WLAN0 driver=$DRIVER_WLAN0 + +##### IEEE 802.11 related configuration ####################################### country_code=$COUNTRY_WLAN0 ieee80211d=1 +##### 802.11b +#hw_mode=b +#channel=1 +#channel=6 +#channel=11 + +##### 802.11g hw_mode=g -ieee80211n=1 -channel=7 +channel=1 +#channel=5 +#channel=9 +#channel=13 -wmm_enabled=1 +#channel=1 +#channel=6 +#channel=11 + +##### 802.11n (hw_mode=g + ieee80211n=1) +#channel=3 +#channel=11 + +##### 802.11a +#hw_mode=a +#channel=36 + +#macaddr_acl=1 +#accept_mac_file=/etc/hostapd.accept -## -ssid=$SSID_WLAN0 ignore_broadcast_ssid=0 -macaddr_acl=0 + +# QoS support (gives different packages different priority) +#wmm_enabled=1 + + +##### IEEE 802.11n related configuration ###################################### +ieee80211n=1 + + +##### WPA/IEEE 802.11i configuration ########################################## +# bit 0 (1) = WPA; bit 1 (2) = WEP; (3) = WPA + WEP auth_algs=1 +# bit 0 (1) = WPA; bit 1 (2) = WPA2 (IEEE822.11i/RSN); (3) = WPA + WPA2 wpa=2 wpa_key_mgmt=WPA-PSK -wpa_pairwise=TKIP +# WPA2 encryption algorithm rsn_pairwise=CCMP + #wpa_passphrase=$PASSWORD_WLAN0 wpa_psk=$(wpa_passphrase $SSID_WLAN0 $PASSWORD_WLAN0 | grep '[[:blank:]]psk' | cut -d = -f2) +ssid=$SSID_WLAN0 + ## optional: create virtual wlan adapter -#bss=$INTERFACE_WLAN0X -#ssid=$SSID_WLAN0X -#ignore_broadcast_ssid=0 -#macaddr_acl=0 #auth_algs=1 #wpa=2 #wpa_key_mgmt=WPA-PSK -#wpa_pairwise=TKIP #rsn_pairwise=CCMP ##wpa_passphrase=$PASSWORD_WLAN0X #wpa_psk=$(wpa_passphrase $SSID_WLAN0X $PASSWORD_WLAN0X | grep '[[:blank:]]psk' | cut -d = -f2) -EOF"; +#ssid=$SSID_WLAN0X +#bss=$INTERFACE_WLAN0X +EOF ###################################################################### grep -q mod_install_server /etc/default/hostapd || { - echo -e "\e[36m setup hostapd for wlan access point\e[0m"; - sudo sh -c "cat << EOF > /etc/default/hostapd + echo -e "\e[36m setup hostapd for wlan access point\e[0m"; + tar -ravf $BACKUP_FILE -C / etc/default/hostapd + cat << EOF | sudo tee /etc/default/hostapd &>/dev/null ######################################## #/etc/default/hostapd ## mod_install_server -DAEMON_CONF=\"/etc/hostapd/hostapd.conf\" -EOF"; +DAEMON_CONF="/etc/hostapd/hostapd.conf" +EOF } sudo systemctl stop wpa_supplicant; @@ -134,99 +171,41 @@ handle_dhcpcd() { echo -e "\e[32mhandle_dhcpcd()\e[0m"; ###################################################################### - if [ "$OS_VER" -ge "9" ]; then - echo -e "\e[36m a stretch or newer OS detected\e[0m"; - ################################################################## - grep -q mod_install_server /etc/dhcpcd.conf || { - echo -e "\e[36m setup dhcpcd.conf\e[0m"; - sudo sh -c "cat << EOF >> /etc/dhcpcd.conf + echo -e "\e[36m a stretch or newer OS detected\e[0m"; + ################################################################## + grep -q mod_install_server /etc/dhcpcd.conf || { + echo -e "\e[36m setup dhcpcd.conf\e[0m"; + tar -ravf $BACKUP_FILE -C / etc/dhcpcd.conf + cat << EOF | sudo tee -a /etc/dhcpcd.conf &>/dev/null + ######################################## ## mod_install_server interface $INTERFACE_ETH0 -static ip_address=$IP_ETH0/24 -static routers=$IP_ETH0_ROUTER -static domain_name_servers=$IP_ETH0_ROUTER + slaac private + static ip_address=$IP_ETH0/24 + static ip6_address=fd80::$IP_ETH0/120 + static routers=$IP_ETH0_ROUTER + static domain_name_servers=$IP_ETH0_ROUTER 8.8.8.8 fd51:42f8:caae:d92e::1 ######################################## interface $INTERFACE_ETH1 -static ip_address=$IP_ETH1/24 -static routers=$IP_ETH1_ROUTER -static domain_name_servers=$IP_ETH1_ROUTER + slaac private + static ip_address=$IP_ETH1/24 + static ip6_address=fd80::$IP_ETH1/120 + static routers=$IP_ETH1_ROUTER + static domain_name_servers=$IP_ETH1_ROUTER ######################################## interface $INTERFACE_WLAN0 -static ip_address=$IP_WLAN0/24 -static routers=$IP_WLAN0_ROUTER -static domain_name_servers=$IP_WLAN0_ROUTER -EOF"; - sudo systemctl daemon-reload; - sudo systemctl restart dhcpcd.service; - } - else - echo -e "\e[36m a jessie or older os detected\e[0m"; - ################################################################## - grep -q mod_install_server /etc/network/interfaces || { - echo -e "\e[36m setup networking, disable dhcpcd\e[0m"; - sudo sh -c "cat << EOF > /etc/network/interfaces -######################################## -# interfaces(5) file used by ifup(8) and ifdown(8) - -# Please note that this file is written to be used with dhcpcd -# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' - -# Include files from /etc/network/interfaces.d: -source-directory /etc/network/interfaces.d - -auto lo -iface lo inet loopback - -allow-hotplug wlan0 -iface wlan0 inet manual - wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf - -allow-hotplug wlan1 -iface wlan1 inet manual - wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf - -## mod_install_server -auto $INTERFACE_ETH0 -iface $INTERFACE_ETH0 inet static - address $IP_ETH0 - netmask $IP_ETH0_MASK - gateway $IP_ETH0_ROUTER - -auto $INTERFACE_ETH1 -iface $INTERFACE_ETH1 inet static - address $IP_ETH1 - netmask $IP_ETH1_MASK - gateway $IP_ETH1_ROUTER - hwaddress 88:88:88:11:11:11 - -auto $INTERFACE_WLAN0 -iface $INTERFACE_WLAN0 inet static - address $IP_WLAN0 - netmask $IP_WLAN0_MASK - gateway $IP_WLAN0_ROUTER - hwaddress 88:88:88:22:22:22 - -#bridge#auto br0 -#bridge#iface br0 inet static -#bridge# bridge_ports eth1 wlan0 wlan1 -#bridge# hwaddress 88:88:88:88:88:88 -#bridge# address $IP_BR0 -#bridge# netmask $IP_BR0_MASK -#bridge# bridge_stp off # disable Spanning Tree Protocol -#bridge# bridge_waitport 0 # no delay before a port becomes available -#bridge# bridge_fd 0 # no forwarding delay -EOF"; - - echo "nameserver $IP_ETH0_DNS" | sudo tee -a /etc/resolv.conf - sudo chattr +i /etc/resolv.conf - sudo rm /etc/resolvconf/update.d/dnsmasq - sudo systemctl disable dhcpcd.service; - sudo systemctl enable networking.service; - } - fi + slaac private + static ip_address=$IP_WLAN0/24 + static ip6_address=fd80::$IP_WLAN0/120 + static routers=$IP_WLAN0_ROUTER + static domain_name_servers=$IP_WLAN0_ROUTER +EOF + sudo systemctl daemon-reload; + sudo systemctl restart dhcpcd.service; + } } @@ -237,7 +216,8 @@ handle_dnsmasq() { ###################################################################### [ -f /etc/dnsmasq.d/pxe-server ] || { echo -e "\e[36m setup dnsmasq for pxe\e[0m"; - sudo sh -c "cat << EOF >> /etc/dnsmasq.d/pxe-server + tar -ravf $BACKUP_FILE -C / etc/dnsmasq.d/10-pxe-server + cat << EOF | sudo tee /etc/dnsmasq.d/10-pxe-server &>/dev/null ######################################## #/etc/dnsmasq.d/pxeboot ## mod_install_server @@ -245,85 +225,108 @@ handle_dnsmasq() { log-dhcp #log-queries +# for local resolve +interface=lo + # interface selection interface=$INTERFACE_ETH0 interface=$INTERFACE_ETH1 interface=$INTERFACE_WLAN0 +except-interface=wlan1mon +except-interface=wlan2mon # bind-dynamic -domain-needed -bogus-priv +########## # TFTP_ETH0 (enabled) -enable-tftp +enable-tftp=$INTERFACE_ETH0 #tftp-lowercase tftp-root=$DST_TFTP_ETH0/, $INTERFACE_ETH0 -dhcp-option=$INTERFACE_ETH0, option:tftp-server, 0.0.0.0 +dhcp-option=tag:$INTERFACE_ETH0, option:tftp-server, 0.0.0.0 # -dhcp-option=$INTERFACE_ETH1, option:nis-domain, eth-nis -dhcp-option=$INTERFACE_ETH1, option:domain-name, eth-domain.local -dhcp-option=$INTERFACE_WLAN0, option:nis-domain, wlan-nis -dhcp-option=$INTERFACE_WLAN0, option:domain-name, wlan-domain.local +dhcp-option=tag:$INTERFACE_ETH1, option:nis-domain, eth-nis +dhcp-option=tag:$INTERFACE_ETH1, option:domain-name, eth-domain.local +dhcp-option=tag:$INTERFACE_WLAN0, option:nis-domain, wlan-nis +dhcp-option=tag:$INTERFACE_WLAN0, option:domain-name, wlan-domain.local +########## # Time Server -dhcp-option=$INTERFACE_ETH0, option:ntp-server, 0.0.0.0 -dhcp-option=$INTERFACE_ETH1, option:ntp-server, 0.0.0.0 -dhcp-option=$INTERFACE_WLAN0, option:ntp-server, 0.0.0.0 - +dhcp-option=tag:$INTERFACE_ETH0, option:ntp-server, 0.0.0.0 +dhcp-option=tag:$INTERFACE_ETH1, option:ntp-server, 0.0.0.0 +dhcp-option=tag:$INTERFACE_WLAN0, option:ntp-server, 0.0.0.0 +dhcp-option=tag:$INTERFACE_ETH0, option6:ntp-server, [::] +dhcp-option=tag:$INTERFACE_ETH1, option6:ntp-server, [::] +dhcp-option=tag:$INTERFACE_WLAN0, option6:ntp-server, [::] + +########## # DHCP -# do not give IPs that are in pool of DSL routers DHCP -dhcp-range=$INTERFACE_ETH0, $IP_ETH0_START, $IP_ETH0_END, 24h -dhcp-range=$INTERFACE_ETH1, $IP_ETH1_START, $IP_ETH1_END, 24h -dhcp-range=$INTERFACE_WLAN0, $IP_WLAN0_START, $IP_WLAN0_END, 24h - -# some examples for pre-defined static IPs by MAC or by name -#dhcp-host=$INTERFACE_ETH0, 11:11:11:11:11:11, 192.168.0.100 -#dhcp-host=$INTERFACE_ETH0, MySmartHome, 192.168.0.101 -#dhcp-host=$INTERFACE_ETH1, 22:22:22:22:22:22, 192.168.250.100 -#dhcp-host=$INTERFACE_ETH1, MySmartTV, 192.168.250.101 -#dhcp-host=$INTERFACE_WLAN0, 33:33:33:33:33:33, 192.168.251.100 -#dhcp-host=$INTERFACE_WLAN0, MySmartPhone, 192.168.251.101 +log-dhcp +#enable-ra + +# block NETGEAR managed switch +dhcp-mac=set:block, 28:c6:8e:*:*:* + +# static IP +#dhcp-host=set:known_128, 08:08:08:08:08:08, 192.168.1.128, [fd80::192.168.1.128], infinite +#dhcp-host=set:known_129, client_acb, 192.168.1.129, [fd80::192.168.1.129], infinite + +# dynamic IP +dhcp-range=tag:$INTERFACE_ETH0, tag:!block, fd80::$IP_ETH0_START, fd80::$IP_ETH0_END, 120, 1h +dhcp-range=tag:$INTERFACE_ETH1, fd80::$IP_ETH1_START, fd80::$IP_ETH1_END, 120, 1h +dhcp-range=tag:$INTERFACE_WLAN0, fd80::$IP_WLAN0_START, fd80::$IP_WLAN0_END, 120, 1h +dhcp-range=tag:$INTERFACE_ETH0, tag:!block, $IP_ETH0_START, $IP_ETH0_END, 255.255.255.0, 1h +dhcp-range=tag:$INTERFACE_ETH1, $IP_ETH1_START, $IP_ETH1_END, 255.255.255.0, 1h +dhcp-range=tag:$INTERFACE_WLAN0, $IP_WLAN0_START, $IP_WLAN0_END, 255.255.255.0, 1h +########## # DNS (enabled) port=53 +#log-queries dns-loop-detect +stop-dns-rebind +bogus-priv +domain-needed +dhcp-option=tag:$INTERFACE_ETH0, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:$INTERFACE_ETH1, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:$INTERFACE_WLAN0, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:$INTERFACE_ETH0, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:$INTERFACE_ETH1, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:$INTERFACE_WLAN0, option:netbios-dd, 0.0.0.0 # PXE (enabled) # warning: unfortunately, a RPi3 identifies itself as of architecture x86PC (x86PC=0) -# luckily the RPi3 seems to use always the same UUID 44444444-4444-4444-4444-444444444444 -dhcp-match=set:UUID_RPI3, option:client-machine-id, 00:44:44:44:44:44:44:44:44:44:44:44:44:44:44:44:44 +dhcp-mac=set:IS_RPI3,B8:27:EB:*:*:* +dhcp-mac=set:IS_RPI4,DC:A6:32:*:*:* dhcp-match=set:ARCH_0, option:client-arch, 0 + +# test if it is a RPi or a regular x86PC +tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI3 +tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI4 + +########## +# RPi 3 +pxe-service=tag:IS_RPI3,0, "Raspberry Pi Boot ", bootcode.bin +dhcp-boot=tag:IS_RPI3, bootcode.bin + +########## +# PXE Linux dhcp-match=set:x86_UEFI, option:client-arch, 6 dhcp-match=set:x64_UEFI, option:client-arch, 7 dhcp-match=set:x64_UEFI, option:client-arch, 9 -#dhcp-match=set:iPXE, option:user-class, iPXE - -# test if it is a RPi3 or a regular x86PC -tag-if=set:ARM_RPI3, tag:ARCH_0, tag:UUID_RPI3 -tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3 -#tag-if=set:x86_BIOS, tag:ARCH_0, tag:!UUID_RPI3, tag:!iPXE -#tag-if=set:x86_iPXE, tag:ARCH_0, tag:!UUID_RPI3, tag:iPXE -#tag-if=set:UEFI_iPXE, tag:!ARCH_0, tag:!UUID_RPI3, tag:iPXE - -pxe-service=tag:ARM_RPI3,0, \"Raspberry Pi Boot \", bootcode.bin -pxe-service=tag:x86_BIOS,x86PC, \"PXE Boot Menu (BIOS 00:00)\", $DST_PXE_BIOS/lpxelinux -pxe-service=6, \"PXE Boot Menu (UEFI 00:06)\", $DST_PXE_EFI32/bootia32.efi -pxe-service=x86-64_EFI, \"PXE Boot Menu (UEFI 00:07)\", $DST_PXE_EFI64/bootx64.efi -pxe-service=9, \"PXE Boot Menu (UEFI 00:09)\", $DST_PXE_EFI64/bootx64.efi -#pxe-service=tag:x86_iPXE,x86PC, \"iPXE Boot Menu (iPXE 00:00)\", undionly.kpxe -#pxe-service=tag:UEFI_iPXE,x86PC, \"iPXE Boot Menu (iPXE UEFI)\", ipxe.efi - -dhcp-boot=tag:ARM_RPI3, bootcode.bin +tag-if=set:x86_BIOS, tag:ARCH_0, tag:!ARM_RPI +#pxe-service=tag:x86_BIOS,x86PC, "PXE Boot Menu (BIOS 00:00)", $DST_PXE_BIOS/lpxelinux +#pxe-service=6, "PXE Boot Menu (UEFI 00:06)", $DST_PXE_EFI32/bootia32.efi +#pxe-service=tag:x86-64_EFI, "PXE Boot Menu (UEFI 00:07)", $DST_PXE_EFI64/bootx64.efi +#pxe-service=9, "PXE Boot Menu (UEFI 00:09)", $DST_PXE_EFI64/bootx64.efi dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/bootia32.efi dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/bootx64.efi -#dhcp-boot=tag:x86_iPXE, http://$(hostname)/real_boot_script.php -#dhcp-boot=tag:x86_iPXE, undionly.kpxe -#dhcp-boot=tag:UEFI_iPXE, ipxe.efi -#dhcp-option=iPXE, 175, 8:1:1 -EOF"; +dhcp-option=tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_BIOS/lpxelinux.0 +dhcp-option=tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI32/bootia32.efi +dhcp-option=tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI64/bootx64.efi +EOF sudo systemctl restart dnsmasq.service; } } @@ -336,8 +339,9 @@ handle_samba() { ###################################################################### grep -q mod_install_server /etc/samba/smb.conf 2> /dev/null || ( \ echo -e "\e[36m setup samba\e[0m"; + tar -ravf $BACKUP_FILE -C / etc/samba/smb.conf #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; - sudo sh -c "cat << EOF > /etc/samba/smb.conf + cat << EOF | sudo tee /etc/samba/smb.conf &>/dev/null ######################################## ## mod_install_server #======================= Global Settings ======================= @@ -360,7 +364,6 @@ bind interfaces only = yes ####### Authentication ####### server role = standalone server - passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u @@ -373,9 +376,6 @@ bind interfaces only = yes ############ Misc ############ usershare allow guests = yes -# https://www.samba.org/samba/security/CVE-2017-14746.html -server min protocol = SMB2 - #======================= Share Definitions ======================= [srv] path = $DST_ROOT @@ -406,7 +406,7 @@ server min protocol = SMB2 force user = root force group = root hide dot files = no -EOF" +EOF sudo systemctl restart smbd.service; ) } @@ -436,7 +436,7 @@ handle_pxe_menu() { echo -e "\e[36m setup sys menu for pxe\e[0m"; if ! [ -d "$DST_TFTP_ETH0/$1/pxelinux.cfg" ]; then sudo mkdir -p $DST_TFTP_ETH0/$1/pxelinux.cfg; fi if [ -d "$DST_TFTP_ETH0/$1/pxelinux.cfg" ]; then - sudo sh -c "cat << EOF > $FILE_MENU + cat << EOF | sudo tee $FILE_MENU &>/dev/null ######################################## # $FILE_MENU @@ -469,10 +469,10 @@ LABEL poweroff COM32 poweroff.c32 -EOF"; +EOF fi -. "$script_dir/p2-include-menu.sh" + . "$script_dir/p2-include-menu.sh" } @@ -489,14 +489,6 @@ handle_pxe() { if ! [ -d "$DST_TFTP_ETH0/Boot" ] && [ -d "$SRC_TFTP_ETH0/Boot" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/Boot $DST_TFTP_ETH0/; fi fi [ -h "$DST_TFTP_ETH0/sources" ] || sudo ln -s $DST_NFS_ETH0/$WIN_PE_X86/sources/ $DST_TFTP_ETH0/sources; - #for SRC in `find /srv/tftp/Boot -depth` - #do - # DST=`dirname "${SRC}"`/`basename "${SRC}" | tr '[A-Z]' '[a-z]'` - # if [ "${SRC}" != "${DST}" ] - # then - # [ ! -e "${DST}" ] && sudo mv -T "${SRC}" "${DST}" || echo "${SRC} was not renamed" - # fi - #done ###################################################################### echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; @@ -535,7 +527,7 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] || ( \ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot > /dev/null); + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot &>/dev/null); handle_pxe_menu $DST_PXE_EFI32 default; @@ -555,7 +547,7 @@ handle_pxe() { [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] || (\ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot > /dev/null); + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot &>/dev/null); handle_pxe_menu $DST_PXE_EFI64 default; } @@ -1216,45 +1208,29 @@ handle_rpi_pxe_customization() { ################################################################## if (echo $FLAGS | grep -q config); then echo -e "\e[36m add config file\e[0m"; - sudo sh -c "cat << EOF > $DST_CUSTOM_BOOT/config.txt -######################################## + cat << EOF | sudo tee $DST_CUSTOM_BOOT/config.txt +# Enable audio (loads snd_bcm2835) dtparam=audio=on -max_usb_current=1 -#force_turbo=1 +[pi4] +# Enable DRM VC4 V3D driver on top of the dispmanx display stack +dtoverlay=vc4-fkms-v3d +max_framebuffers=2 + +[all] +#dtoverlay=vc4-fkms-v3d disable_overscan=1 +max_usb_current=1 + hdmi_force_hotplug=1 -config_hdmi_boost=4 +#hdmi_ignore_cec=1 #hdmi_ignore_cec_init=1 cec_osd_name=NetBoot -######################################### -# standard resolution -hdmi_drive=2 - -######################################### -# custom resolution -# 4k@24Hz or 25Hz custom DMT - mode -#gpu_mem=128 -#hdmi_group=2 -#hdmi_mode=87 -#hdmi_pixel_freq_limit=400000000 -#max_framebuffer_width=3840 -#max_framebuffer_height=2160 -# -# #### implicit timing #### -# hdmi_cvt 3840 2160 24 -# #hdmi_cvt 3840 2160 25 -# -# #### explicit timing #### -# #hdmi_ignore_edid=0xa5000080 -# #hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 24 0 211190000 3 -# ##hdmi_timings=3840 1 48 32 80 2160 1 3 5 54 0 0 0 25 0 220430000 3 -# #framebuffer_width=3840 -# #framebuffer_height=2160 -EOF"; +disable_splash=1 +EOF fi ################################################################## @@ -1268,19 +1244,19 @@ EOF"; ############################################################## if (echo $FLAGS | grep -q fstab); then echo -e "\e[36m add fstab file\e[0m"; - sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/fstab + cat << EOF | sudo tee $DST_CUSTOM_ROOT/etc/fstab &>/dev/null ######################################## proc /proc proc defaults 0 0 $IP_ETH0:$DST_NFS_ROOT / nfs defaults,noatime 0 1 $IP_ETH0:$DST_NFS_BOOT /boot nfs defaults,noatime 0 2 -EOF"; +EOF sudo rm $DST_CUSTOM_ROOT/etc/init.d/resize2fs_once; fi ############################################################## if (echo $FLAGS | grep -q wpa); then echo -e "\e[36m add wpa_supplicant template file\e[0m"; - sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/wpa_supplicant/wpa_supplicant.conf + cat << EOF | sudo tee $DST_CUSTOM_ROOT/etc/wpa_supplicant/wpa_supplicant.conf &>/dev/null ######################################## country=$COUNTRY_WLAN0 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev @@ -1297,7 +1273,7 @@ network={ scan_ssid=1 key_mgmt=WPA-PSK } -EOF"; +EOF if [ -s "$SRC_BACKUP/wpa_supplicant.conf" ]; then echo -e "\e[36m add wpa_supplicant file from backup\e[0m"; sudo rsync -xa --info=progress2 $SRC_BACKUP/wpa_supplicant.conf $DST_CUSTOM_ROOT/etc/wpa_supplicant/ @@ -1307,7 +1283,7 @@ EOF"; ############################################################## if (echo $FLAGS | grep -q history); then echo -e "\e[36m add .bash_history file\e[0m"; - sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/home/pi/.bash_history + cat << EOF | sudo tee $DST_CUSTOM_ROOT/home/pi/.bash_history &>/dev/null sudo poweroff sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y --purge && sudo apt autoclean -y && sync && echo Done. sudo nano /etc/resolv.conf @@ -1318,7 +1294,7 @@ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf wpa_passphrase sudo iwlist wlan0 scan [essid ] sudo raspi-config -EOF"; +EOF sudo chown 1000:1000 $DST_CUSTOM_ROOT/home/pi/.bash_history; fi @@ -1327,9 +1303,9 @@ EOF"; ############################################################## if ! [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then echo -e "\e[36m add apt proxy file\e[0m"; - sudo sh -c "cat << EOF > $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy -Acquire::http::Proxy \"http://$IP_ETH0:3142\"; -EOF"; + cat << EOF | sudo tee $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy &>/dev/null +Acquire::http::Proxy "http://$IP_ETH0:3142"; +EOF fi fi fi @@ -1609,71 +1585,62 @@ handle_rpi_pxe() { handle_optional() { echo -e "\e[32mhandle_optional()\e[0m"; - ###################################################################### - #sudo chmod 755 $(find $DST_TFTP_ETH0/ -type d) 2>/dev/null - #sudo chmod 644 $(find $DST_TFTP_ETH0/ -type f) 2>/dev/null - #sudo chmod 755 $(find $DST_TFTP_ETH0/ -type l) 2>/dev/null - #sudo chown -R root:root /srv/ 2>/dev/null - #sudo chown -R root:root $DST_TFTP_ETH0 2>/dev/null - #sudo chown -R root:root $DST_TFTP_ETH0/ 2>/dev/null - - ###################################################################### ## network nat grep -q mod_install_server /etc/sysctl.conf 2> /dev/null || { - echo -e "\e[36m setup sysctrl for nat\e[0m"; - sudo sh -c "cat << EOF >> /etc/sysctl.conf + echo -e "\e[36m setup sysctrl for nat\e[0m"; + tar -ravf $BACKUP_FILE -C / etc/sysctl.conf + cat << EOF | sudo tee -a /etc/sysctl.conf &>/dev/null ######################################## ## mod_install_server net.ipv4.ip_forward=1 -#net.ipv6.conf.all.forwarding=1 -EOF"; +net.ipv6.conf.all.forwarding=1 +net.ipv6.conf.$INTERFACE_ETH0.accept_ra=2 +net.ipv6.conf.$INTERFACE_ETH1.accept_ra=2 +net.ipv6.conf.$INTERFACE_WLAN0.accept_ra=2 +EOF + sudo sysctl -p &>/dev/null + sudo sysctl --system &>/dev/null } ###################################################################### ## network nat sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { - echo -e "\e[36m setup iptables for nat\e[0m"; - sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over $INTERFACE_ETH0" - sudo dpkg-reconfigure --unseen-only iptables-persistent + echo -e "\e[36m setup iptables for nat\e[0m"; + sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over $INTERFACE_ETH0" + sudo dpkg-reconfigure --unseen-only iptables-persistent } ###################################################################### ## network nat limit access of eth1 and wlan0 sudo iptables-save | grep -q LIMIT-ACCESS 2> /dev/null || { - echo -e "\e[36m setup iptables for limiting traffic of $INTERFACE_ETH1\e[0m"; - sudo iptables -t filter -A INPUT -s $IP_ETH1_0 ! -d $IP_ETH1_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" - sudo iptables -t filter -A INPUT -s $IP_WLAN0_0 ! -d $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" - sudo iptables -t filter -A FORWARD -s $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" - sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but $INTERFACE_ETH0 to local NTP server" - sudo dpkg-reconfigure --unseen-only iptables-persistent + echo -e "\e[36m setup iptables for limiting traffic of $INTERFACE_ETH1\e[0m"; + sudo iptables -t filter -A INPUT -s $IP_ETH1_0 ! -d $IP_ETH1_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" + sudo iptables -t filter -A INPUT -s $IP_WLAN0_0 ! -d $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" + sudo iptables -t filter -A FORWARD -s $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" + sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but $INTERFACE_ETH0 to local NTP server" + sudo dpkg-reconfigure --unseen-only iptables-persistent } ###################################################################### ## chrony grep -q mod_install_server /etc/chrony/chrony.conf 2> /dev/null || { - echo -e "\e[36m setup chrony\e[0m"; - sudo sh -c "cat << EOF > /etc/chrony/chrony.conf + echo -e "\e[36m setup chrony\e[0m"; + tar -ravf $BACKUP_FILE -C / etc/chrony/chrony.conf + cat << EOF | sudo tee /etc/chrony/chrony.conf &>/dev/null ######################################## ## mod_install_server allow -#server stratum1.domain.local iburst minpoll 5 maxpoll 5 server ptbtime1.ptb.de iburst server ptbtime2.ptb.de iburst server ptbtime3.ptb.de iburst server ntp1.oma.be iburst server ntp2.oma.be iburst -server ntp.certum.pl iburst -server ntp1.sp.se iburst -server ntp2.sp.se iburst - -server char-ntp-pool.charite.de -server isis.uni-paderborn.de pool $CUSTOM_LANG.pool.ntp.org iburst @@ -1683,8 +1650,8 @@ logdir /var/log/chrony maxupdateskew 100.0 hwclockfile /etc/adjtime rtcsync -makestep 1 3 -EOF"; +makestep 1 5 +EOF } } @@ -1698,9 +1665,10 @@ sudo mkdir -p $DST_NFS_ETH0; ########################################################################## if [ -d "/var/www/html" ]; then - [ -h "/var/www/html$ISO" ] || sudo ln -s $DST_ISO /var/www/html$ISO; - [ -h "/var/www/html$IMG" ] || sudo ln -s $DST_IMG /var/www/html$IMG; - [ -h "/var/www/html$NFS_ETH0" ] || sudo ln -s $DST_NFS_ETH0 /var/www/html$NFS_ETH0; + [ -d "/var/www/html/srv" ] || sudo mkdir -p /var/www/html/srv + [ -h "/var/www/html/srv$ISO" ] || sudo ln -s $DST_ISO /var/www/html/srv$ISO; + [ -h "/var/www/html/srv$IMG" ] || sudo ln -s $DST_IMG /var/www/html/srv$IMG; + [ -h "/var/www/html/srv$NFS_ETH0" ] || sudo ln -s $DST_NFS_ETH0 /var/www/html/srv$NFS_ETH0; fi @@ -1730,12 +1698,12 @@ handle_ipxe; ########################################################################## -if [ -d "$SRC_ISO" ]; then +if [ -d "$SRC_ISO" ] && ! [ "$SRC_ISO" == "$DST_ISO" ]; then echo -e "\e[32mbackup new iso images to usb-stick\e[0m"; sudo rsync -xa --info=progress2 $DST_ISO/*.iso $DST_ISO/*.url $SRC_ISO/ 2>/dev/null fi ###################################################################### -if [ -d "$SRC_IMG" ]; then +if [ -d "$SRC_IMG" ] && ! [ "$SRC_IMG" == "$DST_IMG" ]; then echo -e "\e[32mbackup new images to usb-stick\e[0m"; sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ 2>/dev/null fi From d1ba49905f51629a54e1188f24f41974451d6062 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 Feb 2020 08:39:41 +0100 Subject: [PATCH 297/694] updated to 2020-02-13 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eada800..acae944 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspbian Buster** or **Raspbina Buster Lite** (2019-07-10), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspbian Buster** or **Raspbina Buster Lite** (2020-02-13), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspbian Buster (or Lite) from 2019-07-10, +- your Raspberry Pi is running Raspbian Buster (or Lite) from 2020-02-13, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (16GB when you use unmodified script) From c2e72660471f110fd5c4c1873703bf4718b4e908 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 Feb 2020 08:49:41 +0100 Subject: [PATCH 298/694] backup.tar.xz --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index acae944..da9d380 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ setup a Raspberry Pi as a PXE-Server.
it is a private project i have made for myself.
i did not keeped an eye on network security. +**the script will override some existing configurations**
+(a backup of the changed configuration files will be stored to **backup.tar.xz**) + **USE IT AT YOUR OWN RISK.** ## what is it good for? From ba2b1bbfb80235b4565e2cded01bb5cbac63605f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 Feb 2020 14:43:09 +0100 Subject: [PATCH 299/694] removed forgotten stretch cleanup --- install-pxe-server_pass2.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 45fdd15..41948fb 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -45,8 +45,8 @@ if [ -z $IP_ETH0_ROUTER ]; then exit 1 fi -sudo umount -f $SRC_MOUNT 2> /dev/null; -sudo mount $SRC_MOUNT 2> /dev/null; +sudo umount -f $SRC_MOUNT &>/dev/null; +sudo mount $SRC_MOUNT &>/dev/null; ########################################################################## ########################################################################## @@ -170,8 +170,6 @@ EOF handle_dhcpcd() { echo -e "\e[32mhandle_dhcpcd()\e[0m"; - ###################################################################### - echo -e "\e[36m a stretch or newer OS detected\e[0m"; ################################################################## grep -q mod_install_server /etc/dhcpcd.conf || { echo -e "\e[36m setup dhcpcd.conf\e[0m"; @@ -1624,8 +1622,10 @@ EOF sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but $INTERFACE_ETH0 to local NTP server" sudo dpkg-reconfigure --unseen-only iptables-persistent } +} +handle_chrony() { ###################################################################### ## chrony grep -q mod_install_server /etc/chrony/chrony.conf 2> /dev/null || { @@ -1652,8 +1652,8 @@ hwclockfile /etc/adjtime rtcsync makestep 1 5 EOF + sudo systemctl restart chronyd.service; } - } @@ -1678,6 +1678,7 @@ handle_dhcpcd; handle_dnsmasq; handle_samba; handle_optional; +handle_chrony; ########################################################################## From 3a0ad891d500ac98ac61b610a5b9041ad4279ed8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 Feb 2020 14:53:01 +0100 Subject: [PATCH 300/694] automount removed --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index da9d380..5f76833 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ assuming, - and your SD card can hold all the iso images (16GB when you use unmodified script) and optional: -- you have plugged an USB-memory-stick that has the has a label **PXE-Server** +- you have plugged an USB-memory-stick that is mounted at /media/server (SRC_MOUNT=/media/server) - and the folowing folder structure on the USB memory stick: ``` From 883d1b713c36d6412745a0489618275fd20fb818 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 3 Mar 2020 12:09:41 +0100 Subject: [PATCH 301/694] fix http/src & updated url (sysrescue) --- install-pxe-server_pass2.sh | 2 +- p2-include-handle.sh | 10 +++++----- p2-include-menu.sh | 22 +++++++++++----------- p2-include-url.sh | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 41948fb..7d7ef42 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -416,7 +416,7 @@ handle_pxe_menu() { # $2 : menu file name ###################################################################### local FILE_MENU=$DST_TFTP_ETH0/$1/pxelinux.cfg/$2 - local FILE_BASE=http://$IP_ETH0 + local FILE_BASE=http://$IP_ETH0/srv ###################################################################### ## INFO: ## The entry before -- means that it will be used by the live system / the installer diff --git a/p2-include-handle.sh b/p2-include-handle.sh index aeba126..5847e51 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -27,24 +27,24 @@ _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEFT_X64 $DEFT_X64_URL; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; -handle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; +_unhandle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; handle_iso $KALI_X64 $KALI_X64_URL; -handle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; -handle_iso $KNOPPIX_X86 $KNOPPIX_X86_URL; +_unhandle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; +_unhandle_iso $KNOPPIX_X86 $KNOPPIX_X86_URL; #_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; _unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; _unhandle_iso $MINT_X64 $MINT_X64_URL; -handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +_unhandle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; #_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -_unhandle_iso $SYSTEMRESCUE_X86 $SYSTEMRESCUE_X86_URL; +handle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; _unhandle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; #_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 7cff9aa..eb5c496 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -510,19 +510,19 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/x86_64/vmlinuz" ]; then - echo -e "\e[36m add $SYSTEMRESCUE_X86\e[0m"; +&& [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz" ]; then + echo -e "\e[36m add $SYSTEMRESCUE_X64\e[0m"; sudo sh -c "cat << EOF >> $FILE_MENU ######################################## - LABEL $SYSTEMRESCUE_X86 - MENU LABEL System Rescue x86 - KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/x86_64/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/intel_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/amd_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X86/sysresccd/boot/x86_64/sysresccd.img - #APPEND archisobasedir=sysresccd archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X86 - APPEND archisobasedir=sysresccd archiso_http_srv=http://$IP_ETH0$NFS_ETH0/$SYSTEMRESCUE_X86/ + LABEL $SYSTEMRESCUE_X64 + MENU LABEL System Rescue x64 + KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/intel_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/amd_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/sysresccd.img + #APPEND archisobasedir=sysresccd archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X64 + APPEND archisobasedir=sysresccd archiso_http_srv=$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/ SYSAPPEND 3 TEXT HELP - Boot to System Rescue x86 Live + Boot to System Rescue x64 Live User: root ENDTEXT EOF"; @@ -915,7 +915,7 @@ if [ -f "$FILE_MENU" ] \ KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- - #APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- + #APPEND root=live:$FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- #APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 TEXT HELP Boot to openSUSE Leap Rescue Live @@ -941,7 +941,7 @@ if [ -f "$FILE_MENU" ] \ KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image - #APPEND root=live:http://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image + #APPEND root=live:$FILE_BASE$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image #APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- TEXT HELP Boot to openSUSE Leap Live diff --git a/p2-include-url.sh b/p2-include-url.sh index c94845e..3c7456e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -194,8 +194,8 @@ RPDESKTOP_X86_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ RPDESKTOP_X86_SUM_TYPE=sha256 -SYSTEMRESCUE_X86=systemrescue-x86 -SYSTEMRESCUE_X86_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.0.1/systemrescuecd-6.0.1.iso +SYSTEMRESCUE_X64=systemrescue-x64 +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.0/systemrescuecd-amd64-6.1.0.iso TINYCORE_X64=tinycore-x64 From 9482421f3a6b8761e2b8a7cc3d05dbf0a2a50be1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 5 Mar 2020 07:30:30 +0100 Subject: [PATCH 302/694] RPi4B net --- p2-include-var.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2-include-var.sh b/p2-include-var.sh index 9041162..bc71623 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -35,6 +35,10 @@ INTERFACE_ETH0= INTERFACE_ETH1=eth1 INTERFACE_WLAN0=wlan0 ########################################################################## +if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/scb/fd580000.genet/net ]; then +# RPi4B +INTERFACE_ETH0=$(ls /sys/devices/platform/scb/fd580000.genet/net) +fi if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net ]; then # RPi3B+ INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net) From f437ce8e3c0cb500d99d6a88fd818f827dee378c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 11 Mar 2020 22:43:47 +0100 Subject: [PATCH 303/694] updated url (clonzilla) --- p2-include-url.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 3c7456e..123e5d6 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -69,10 +69,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.4-10/clonezilla-live-2.6.4-10-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.5-21/clonezilla-live-2.6.5-21-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.4-10/clonezilla-live-2.6.4-10-i686.iso - +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.5-21/clonezilla-live-2.6.5-21-i686.iso DEBIAN_KVER=4.19.0-8 DEBIAN_X64=debian-x64 From fad8701793a398ca7e363eaa8e5ac37777847a62 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 13 Mar 2020 06:25:36 +0100 Subject: [PATCH 304/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 123e5d6..2dca662 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-02-11 +# v 2020-03-13 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -283,7 +283,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.3/tails-amd64-4.3.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.4/tails-amd64-4.4.iso ########################################################################## ########################################################################## From c190faf52ebdb089097435be11efd2dbffdba436 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 14 Mar 2020 17:37:56 +0100 Subject: [PATCH 305/694] fix for 10-pxe-server --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 7d7ef42..9d19f2b 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -212,7 +212,7 @@ handle_dnsmasq() { echo -e "\e[32mhandle_dnsmasq()\e[0m"; ###################################################################### - [ -f /etc/dnsmasq.d/pxe-server ] || { + [ -f /etc/dnsmasq.d/10-pxe-server ] || { echo -e "\e[36m setup dnsmasq for pxe\e[0m"; tar -ravf $BACKUP_FILE -C / etc/dnsmasq.d/10-pxe-server cat << EOF | sudo tee /etc/dnsmasq.d/10-pxe-server &>/dev/null From 6fa61934059e0f4042911fed15117e18ba430a72 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 14 Mar 2020 19:41:00 +0100 Subject: [PATCH 306/694] changed dns server --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 9d19f2b..0516a28 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -183,7 +183,7 @@ interface $INTERFACE_ETH0 static ip_address=$IP_ETH0/24 static ip6_address=fd80::$IP_ETH0/120 static routers=$IP_ETH0_ROUTER - static domain_name_servers=$IP_ETH0_ROUTER 8.8.8.8 fd51:42f8:caae:d92e::1 + static domain_name_servers=$IP_ETH0_ROUTER 1.1.1.1 2606:4700:4700::1111 ######################################## interface $INTERFACE_ETH1 From 8f299926a968eac0a95b16f55fdcc2792000ada0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 15 Mar 2020 23:04:22 +0100 Subject: [PATCH 307/694] updated url (sysrescue) --- p2-include-url.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 2dca662..068379e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-03-13 +# v 2020-03-15 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -194,8 +194,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.0/systemrescuecd-amd64-6.1.0.iso - +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.1/systemrescuecd-amd64-6.1.1.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso From 6901b8bddd005f1b67395c09bb81cc5d26830137 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 18 Mar 2020 18:42:23 +0100 Subject: [PATCH 308/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 068379e..42d9454 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-03-15 +# v 2020-03-18 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -122,7 +122,7 @@ GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.1-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.1b-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From acc85efb15628890c661b6bf669adf4e26527587 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 25 Mar 2020 15:16:23 +0100 Subject: [PATCH 309/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 42d9454..dafbc4b 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-03-18 +# v 2020-03-25 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -282,7 +282,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.4/tails-amd64-4.4.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.4.1/tails-amd64-4.4.1.iso ########################################################################## ########################################################################## From 93e79344643f0b1563a85888a689c7ed83549385 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 27 Mar 2020 21:23:01 +0100 Subject: [PATCH 310/694] updated url (parrot) --- p2-include-url.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index dafbc4b..b6d771c 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-03-25 +# v 2020-03-27 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -170,13 +170,13 @@ MINT_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-security-4.7_x64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.7/signed-hashes.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.8/Parrot-security-4.8_x64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.8/sha256.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.7/Parrot-home-4.7_x64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.7/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.8/Parrot-home-4.8_x64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.8/sha256.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 8d04b1d46d7b127e5b1ad6affb5f0612cc45676f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 31 Mar 2020 21:44:21 +0200 Subject: [PATCH 311/694] updated url (sysrescue) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index b6d771c..53f648e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-03-27 +# v 2020-03-31 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -194,7 +194,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.1/systemrescuecd-amd64-6.1.1.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.2/systemrescuecd-amd64-6.1.2.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso From a3b32374c08ec20d578690103b7722b1d975965d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 9 Apr 2020 12:43:32 +0200 Subject: [PATCH 312/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 53f648e..588c274 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-03-31 +# v 2020-04-09 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -282,7 +282,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.4.1/tails-amd64-4.4.1.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.5/tails-amd64-4.5.iso ########################################################################## ########################################################################## From 9253207a554ffd5df9d99082af4f9eac9634edc5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 16 Apr 2020 07:54:23 +0200 Subject: [PATCH 313/694] moved Tails from broken to regular --- p2-include-handle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 5847e51..997308e 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -46,6 +46,7 @@ _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; handle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; +handle_iso $TAILS_X64 $TAILS_X64_URL; _unhandle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; #_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; @@ -65,7 +66,6 @@ _unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; _unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; _unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -_unhandle_iso $TAILS_X64 $TAILS_X64_URL; ########################################################################## _unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; From 78bb7958fb3e73e1042aa961d4c67def94eeb8cc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 16 Apr 2020 08:05:01 +0200 Subject: [PATCH 314/694] moved Tails from broke to regular --- p2-include-menu.sh | 84 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 63 insertions(+), 21 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index eb5c496..f87dfce 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -67,6 +67,25 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]; then + echo -e "\e[36m add $DEBIAN_TESTING_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + LABEL $DEBIAN_TESTING_X64 + MENU LABEL Debian x64 (testing) + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/initrd.img-$DEBIAN_TESTING_KVER-amd64 + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Debian x64 Live (testing) + User: user, Password: live + ENDTEXT +EOF"; +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then @@ -529,6 +548,29 @@ EOF"; fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ] \ +&& [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then + echo -e "\e[36m add $TAILS_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + ## see: + ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + ######################################## + LABEL $TAILS_X64 + MENU LABEL Tails x64 + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + APPEND fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt + TEXT HELP + Boot to Tails x64 Live + ENDTEXT +EOF"; +fi +#========== END ========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then @@ -542,6 +584,27 @@ if [ -f "$FILE_MENU" ] \ INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore #APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 tz=Europe/Berlin noswap norestore settime showapps pause + TEXT HELP + Boot to tiny core x64 + User: tc + ENDTEXT +EOF"; +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then + echo -e "\e[36m add $TINYCORE_X64\e[0m"; + sudo sh -c "cat << EOF >> $FILE_MENU + ######################################## + # INFO: http://wiki.tinycorelinux.net/wiki:boot_options + LABEL $TINYCORE_X64 (ISO) + MENU LABEL tiny core x64 (ISO) + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$TINYCORE_X64.iso TEXT HELP Boot to tiny core x64 User: tc @@ -950,24 +1013,3 @@ if [ -f "$FILE_MENU" ] \ EOF"; fi #=========== END =========== - -#========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then - echo -e "\e[36m add $TAILS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU - ######################################## - ## NOT WORKING - ## INFO: https://www.com-magazin.de/praxis/nas/multi-boot-nas-server-232864.html?page=10_tails-vom-nas-booten - LABEL $TAILS_X64 - MENU LABEL Tails x64 (broken) - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img - #APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64 ro netboot=nfs boot=live config loglevel=7 -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - APPEND fetch=$IP_ETH0:$DST_NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable nopersistent noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 nox11autologin module=Tails -- break locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG - TEXT HELP - Boot to Tails x64 Live - ENDTEXT -EOF"; -fi -#========== END ========== From 92de30cf426e207fcdcb6f91f898da3461dd39b9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 16 Apr 2020 08:28:21 +0200 Subject: [PATCH 315/694] add optional tools to create initrd images --- install-pxe-server_pass1.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 7c80f36..0dd34b8 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -141,6 +141,12 @@ sudo systemctl enable vncserver-x11-serviced.service; sudo systemctl restart vncserver-x11-serviced.service; +###################################################################### +## optional +echo -e "\e[32minstall tools to create initrd images\e[0m"; +sudo apt install -y --no-install-recommends squashfs-tools initramfs-tools xz-utils; + + ###################################################################### ## optional #echo -e "\e[32minstall apt-cacher-ng\e[0m"; From 60f5949b6aee3496fa8f6519002c2bab6a07c468 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 17 Apr 2020 11:31:34 +0200 Subject: [PATCH 316/694] improved handling of Tails --- install-pxe-server_pass2.sh | 8 +- p2-include-menu.sh | 277 +++++++++++++++++++----------------- 2 files changed, 151 insertions(+), 134 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 0516a28..b62aafc 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -562,10 +562,10 @@ handle_ipxe() { ###################################################################### if (! compare_last_modification_time $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi); then echo -e "\e[36m download iPXE stuff\e[0m"; - sudo wget -O $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi; - sudo wget -O $DST_TFTP_ETH0/ipxe.pxe https://boot.ipxe.org/ipxe.pxe; - sudo wget -O $DST_TFTP_ETH0/ipxe.iso https://boot.ipxe.org/ipxe.iso; - sudo wget -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; + sudo wget --quiet -O $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi; + sudo wget --quiet -O $DST_TFTP_ETH0/ipxe.pxe https://boot.ipxe.org/ipxe.pxe; + sudo wget --quiet -O $DST_TFTP_ETH0/ipxe.iso https://boot.ipxe.org/ipxe.iso; + sudo wget --quiet -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; fi } diff --git a/p2-include-menu.sh b/p2-include-menu.sh index f87dfce..83a0c90 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -14,7 +14,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X64/kernel" ]; then echo -e "\e[36m add $ARCH_NETBOOT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## # INFO: https://www.archlinux.org/releng/netboot/ LABEL $ARCH_NETBOOT_X64 @@ -25,7 +25,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Arch netboot x64 User: root ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -33,7 +33,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $CLONEZILLA_X64 MENU LABEL Clonezilla x64 @@ -44,7 +44,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Clonezilla x64 User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -52,7 +52,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $CLONEZILLA_X86 MENU LABEL Clonezilla x86 @@ -63,7 +63,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Clonezilla x86 User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -71,7 +71,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]; then echo -e "\e[36m add $DEBIAN_TESTING_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_TESTING_X64 MENU LABEL Debian x64 (testing) @@ -82,7 +82,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Debian x64 Live (testing) User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -90,7 +90,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then echo -e "\e[36m add $DEBIAN_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X64 MENU LABEL Debian x64 @@ -101,7 +101,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Debian x64 Live LXDE User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -109,7 +109,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X86 MENU LABEL Debian x86 @@ -120,7 +120,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Debian x86 Live LXDE User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -128,7 +128,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $DEFTZ_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEFTZ_X64 MENU LABEL DEFT Zero x64 @@ -139,7 +139,7 @@ if [ -f "$FILE_MENU" ] \ Boot to DEFT Zero x64 Live User: root, Password: toor ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -147,7 +147,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $DEFT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEFT_X64 MENU LABEL DEFT x64 @@ -158,7 +158,7 @@ if [ -f "$FILE_MENU" ] \ Boot to DEFT x64 Live User: root, Password: toor ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -166,7 +166,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then echo -e "\e[36m add $DEVUAN_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEVUAN_X64 MENU LABEL Devuan x64 @@ -177,7 +177,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Devuan x64 Live User: devuan ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -185,7 +185,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then echo -e "\e[36m add $DEVUAN_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEVUAN_X86 MENU LABEL Devuan x86 @@ -196,7 +196,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Devuan x86 Live User: devuan ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -204,7 +204,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $ESET_SYSRESCUE_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $ESET_SYSRESCUE_X86 MENU LABEL ESET SysRescue Live @@ -214,7 +214,7 @@ if [ -f "$FILE_MENU" ] \ TEXT HELP Boot to ESET SysRescue Live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -222,7 +222,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then echo -e "\e[36m add $FEDORA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel ## https://github.com/haraldh/dracut/blob/master/dracut.cmdline.7.asc @@ -236,7 +236,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Fedora Workstation Live User: liveuser ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -244,7 +244,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then echo -e "\e[36m add $GNURADIO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $GNURADIO_X64 MENU LABEL GNU Radio x64 @@ -255,7 +255,7 @@ if [ -f "$FILE_MENU" ] \ Boot to GNU Radio x64 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -263,7 +263,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then echo -e "\e[36m add $KALI_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $KALI_X64 MENU LABEL Kali x64 @@ -274,7 +274,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Kali x64 Live User: kali, Password: kali ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -282,7 +282,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $KASPERSKY_RESCUE_X86 MENU LABEL Kaspersky Rescue Disk @@ -292,29 +292,37 @@ if [ -f "$FILE_MENU" ] \ TEXT HELP Boot to Kaspersky Rescue Disk ENDTEXT -EOF"; +EOF fi #=========== END =========== #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then - echo -e "\e[36m add $KNOPPIX_X86\e[0m"; - [ -f "$DST_NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz" ] || ( sudo wget -O $DST_NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/knoppix-x86-miniroot-8.6.1.gz ); - sudo sh -c "cat << EOF >> $FILE_MENU - ######################################## - ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 - ## $ knoppix-terminalserver - ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz - LABEL $KNOPPIX_X86 - MENU LABEL Knoppix x86 - KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz - APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de - TEXT HELP - Boot to Knoppix x86 Live - ENDTEXT -EOF"; + if ! [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]; then + echo -e "\e[36m download patch for $KNOPPIX_X86\e[0m"; + sudo wget --quiet -O $DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/$KNOPPIX_X86-miniroot-8.6.1.gz + fi + if [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]; then + echo -e "\e[36m add $KNOPPIX_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 + ## $ knoppix-terminalserver + ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz + LABEL $KNOPPIX_X86 + MENU LABEL Knoppix x86 + KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux + INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz + APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de + TEXT HELP + Boot to Knoppix x86 Live + ENDTEXT +EOF + else + echo -e "\e[1;31m failed $KNOPPIX_X86,\e[0m" + echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/27\e[0m"; + fi fi #========== END ========== @@ -322,7 +330,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_DAILY_X64 MENU LABEL lubuntu x64 Daily-Live @@ -333,7 +341,7 @@ if [ -f "$FILE_MENU" ] \ Boot to lubuntu x64 Daily-Live User: lubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -341,7 +349,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_LTS_X64 MENU LABEL lubuntu LTS x64 @@ -352,7 +360,7 @@ if [ -f "$FILE_MENU" ] \ Boot to lubuntu LTS x64 Live User: lubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -360,7 +368,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_LTS_X86 MENU LABEL lubuntu LTS x86 @@ -371,7 +379,7 @@ if [ -f "$FILE_MENU" ] \ Boot to lubuntu LTS x86 Live User: lubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -379,7 +387,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_X64 MENU LABEL lubuntu x64 @@ -390,7 +398,7 @@ if [ -f "$FILE_MENU" ] \ Boot to lubuntu x64 Live User: lubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -398,7 +406,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $LUBUNTU_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_X86 MENU LABEL lubuntu x86 @@ -409,7 +417,7 @@ if [ -f "$FILE_MENU" ] \ Boot to lubuntu x86 Live User: lubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -417,7 +425,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $MINT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $MINT_X64 MENU LABEL linux-mint x64 @@ -428,7 +436,7 @@ if [ -f "$FILE_MENU" ] \ Boot to linux-mint x64 Live User: ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -436,7 +444,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PARROT_FULL_X64 MENU LABEL Parrot Full x64 @@ -447,7 +455,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Parrot Full x64 Live (Security) User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -455,7 +463,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PARROT_LITE_X64 MENU LABEL Parrot Lite x64 @@ -466,7 +474,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -474,7 +482,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo" ]; then echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PENTOO_BETA_X64 MENU LABEL Pentoo Beta x64 @@ -485,7 +493,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Pentoo Beta x64 Live User: pentoo ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -493,7 +501,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PENTOO_X64/boot/pentoo" ]; then echo -e "\e[36m add $PENTOO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PENTOO_X64 MENU LABEL Pentoo x64 @@ -504,7 +512,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Pentoo x64 Live User: pentoo ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -512,7 +520,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $RPDESKTOP_X86 MENU LABEL Raspberry Pi Desktop @@ -523,7 +531,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Raspberry Pi Desktop User: pi, Password: raspberry ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -531,7 +539,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz" ]; then echo -e "\e[36m add $SYSTEMRESCUE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $SYSTEMRESCUE_X64 MENU LABEL System Rescue x64 @@ -544,30 +552,39 @@ if [ -f "$FILE_MENU" ] \ Boot to System Rescue x64 Live User: root ENDTEXT -EOF"; +EOF fi #=========== END =========== #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ] \ -&& [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then - echo -e "\e[36m add $TAILS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU - ######################################## - ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - ## see: - ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 - ######################################## - LABEL $TAILS_X64 - MENU LABEL Tails x64 - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt - TEXT HELP - Boot to Tails x64 Live - ENDTEXT -EOF"; +&& [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then + if ! [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then + #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; + #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz + : + fi + if [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then + echo -e "\e[36m add $TAILS_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + ## see: + ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + ######################################## + LABEL $TAILS_X64 + MENU LABEL Tails x64 + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + APPEND fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt + TEXT HELP + Boot to Tails x64 Live + ENDTEXT +EOF + else + echo -e "\e[1;31m failed $TAILS_X64,\e[0m" + echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31\e[0m"; + fi fi #========== END ========== @@ -575,7 +592,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then echo -e "\e[36m add $TINYCORE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options LABEL $TINYCORE_X64 @@ -589,7 +606,7 @@ if [ -f "$FILE_MENU" ] \ Boot to tiny core x64 User: tc ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -597,7 +614,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then echo -e "\e[36m add $TINYCORE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options LABEL $TINYCORE_X64 (ISO) @@ -609,7 +626,7 @@ if [ -f "$FILE_MENU" ] \ Boot to tiny core x64 User: tc ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -617,7 +634,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]; then echo -e "\e[36m add $TINYCORE_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options LABEL $TINYCORE_X86 @@ -630,7 +647,7 @@ if [ -f "$FILE_MENU" ] \ Boot to tiny core x86 User: tc ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -638,7 +655,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_DAILY_X64 MENU LABEL Ubuntu x64 Daily-Live @@ -649,7 +666,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu x64 Daily-Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -657,7 +674,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ ## https://wiki.ubuntu.com/FirmwareTestSuite/Reference @@ -671,7 +688,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu Live FirmwareTestSuite User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -679,7 +696,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 @@ -690,7 +707,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu LTS x64 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -698,7 +715,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_LTS_X86 MENU LABEL Ubuntu LTS x86 @@ -709,7 +726,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu LTS x86 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -717,7 +734,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_STUDIO_DAILY_X64 MENU LABEL Ubuntu Studio x64 Daily-Live @@ -728,7 +745,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu Studio x64 Daily-Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -736,7 +753,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_STUDIO_X64 MENU LABEL Ubuntu Studio x64 @@ -747,7 +764,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu Studio x64 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -755,7 +772,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_X64 MENU LABEL Ubuntu x64 @@ -766,7 +783,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu x64 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -774,7 +791,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_X86 MENU LABEL Ubuntu x86 @@ -785,7 +802,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu x86 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -798,7 +815,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then echo -e "\e[36m add $DESINFECT_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DESINFECT_X86 MENU LABEL desinfect x86 @@ -809,7 +826,7 @@ if [ -f "$FILE_MENU" ] \ Boot to ct desinfect x86 User: desinfect ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -817,7 +834,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then echo -e "\e[36m add $DESINFECT_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DESINFECT_X64 MENU LABEL desinfect x64 @@ -828,7 +845,7 @@ if [ -f "$FILE_MENU" ] \ Boot to ct desinfect x64 User: desinfect ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -836,7 +853,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_NONPAE MENU LABEL Ubuntu non-PAE x86 @@ -847,7 +864,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Ubuntu non-PAE x86 Live User: ubuntu ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -855,7 +872,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $WIN_PE_X86-pxe MENU LABEL Windows PE x86 (PXE) @@ -863,7 +880,7 @@ if [ -f "$FILE_MENU" ] \ TEXT HELP Boot to Windows PE 32bit ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -871,7 +888,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $WIN_PE_X86-iso MENU LABEL Windows PE x86 (ISO) @@ -881,7 +898,7 @@ if [ -f "$FILE_MENU" ] \ TEXT HELP Boot to Windows PE 32bit ISO ~400MB ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -890,7 +907,7 @@ if [ -f "$FILE_MENU" ] \ && [ -f "$DST_TFTP_ETH0/$1/wimboot" ] \ && [ -f "$DST_NFS_ETH0/$WIN_PE_X86/sources/boot.wim" ]; then echo -e "\e[36m add $WIN_PE_X86 (WIM)\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $WIN_PE_X86-pxe MENU LABEL Windows PE x86 (WIM) @@ -899,7 +916,7 @@ if [ -f "$FILE_MENU" ] \ TEXT HELP Boot to Windows PE 32bit ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -912,7 +929,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]; then echo -e "\e[36m add $ANDROID_X86\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## NOT WORKING LABEL $ANDROID_X86 @@ -924,7 +941,7 @@ if [ -f "$FILE_MENU" ] \ Boot to Android x86 Live User: root ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -932,7 +949,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz" ]; then echo -e "\e[36m add $CENTOS_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## NOT WORKING ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel @@ -962,7 +979,7 @@ if [ -f "$FILE_MENU" ] \ Boot to CentOS LiveGNOME User: liveuser ENDTEXT -EOF"; +EOF fi #========== END ========== @@ -970,7 +987,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## NOT WORKING LABEL $OPENSUSE_RESCUE_X64 @@ -984,7 +1001,7 @@ if [ -f "$FILE_MENU" ] \ Boot to openSUSE Leap Rescue Live User: liveuser ENDTEXT -EOF"; +EOF fi #=========== END =========== @@ -992,7 +1009,7 @@ fi if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then echo -e "\e[36m add $OPENSUSE_X64\e[0m"; - sudo sh -c "cat << EOF >> $FILE_MENU + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## NOT WORKING ## INFO: Booting live images @@ -1010,6 +1027,6 @@ if [ -f "$FILE_MENU" ] \ Boot to openSUSE Leap Live User: liveuser ENDTEXT -EOF"; +EOF fi #=========== END =========== From afd5f8910fa132ccacadc272d9f411d40a309fb2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 17 Apr 2020 14:30:15 +0200 Subject: [PATCH 317/694] Update install-pxe-server_pass1.sh --- install-pxe-server_pass1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 0dd34b8..06ba7ae 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,7 +2,7 @@ ###################################################################### # -# v2020-02-25 +# v2020-04-16 # # known issues: # From 3c3eb55549bdffe0a145130f0d04d3766154ae59 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 17 Apr 2020 14:31:33 +0200 Subject: [PATCH 318/694] Update p2-include-menu.sh --- p2-include-menu.sh | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 83a0c90..282bb42 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -306,18 +306,18 @@ if [ -f "$FILE_MENU" ] \ if [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]; then echo -e "\e[36m add $KNOPPIX_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 - ## $ knoppix-terminalserver - ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz - LABEL $KNOPPIX_X86 - MENU LABEL Knoppix x86 - KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz - APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de - TEXT HELP - Boot to Knoppix x86 Live - ENDTEXT + ######################################## + ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 + ## $ knoppix-terminalserver + ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz + LABEL $KNOPPIX_X86 + MENU LABEL Knoppix x86 + KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux + INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz + APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de + TEXT HELP + Boot to Knoppix x86 Live + ENDTEXT EOF else echo -e "\e[1;31m failed $KNOPPIX_X86,\e[0m" @@ -567,19 +567,19 @@ if [ -f "$FILE_MENU" ] \ if [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then echo -e "\e[36m add $TAILS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - ## see: - ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 - ######################################## - LABEL $TAILS_X64 - MENU LABEL Tails x64 - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt - TEXT HELP - Boot to Tails x64 Live - ENDTEXT + ######################################## + ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + ## see: + ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + ######################################## + LABEL $TAILS_X64 + MENU LABEL Tails x64 + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + APPEND fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC -- keyboard-layouts=$CUSTOM_LANG + TEXT HELP + Boot to Tails x64 Live + ENDTEXT EOF else echo -e "\e[1;31m failed $TAILS_X64,\e[0m" From 6f2f250f21614b9ba12b6b6dd3421ba23eb77f5a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 18 Apr 2020 19:04:25 +0200 Subject: [PATCH 319/694] updated url (sysrescure) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 588c274..55e3e3f 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-04-09 +# v 2020-04-18 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -194,7 +194,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.2/systemrescuecd-amd64-6.1.2.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.3/systemrescuecd-amd64-6.1.3.iso TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso From 35899d4018d5e7caf55321982b4282708b9e0468 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 24 Apr 2020 05:32:59 +0200 Subject: [PATCH 320/694] updated url (ubuntu) --- p2-include-url.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 55e3e3f..20b1d46 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-04-18 +# v 2020-04-24 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -143,13 +143,13 @@ LUBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA25 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.3-desktop-amd64.iso -LUBUNTU_LTS_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS +LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/19.10/release/lubuntu-19.10-desktop-amd64.iso -LUBUNTU_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/19.10/release/SHA256SUMS +LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso +LUBUNTU_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -218,8 +218,8 @@ UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=http://releases.ubuntu.com/18.04/SHA256SUMS +UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=http://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 @@ -228,13 +228,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/S UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/19.10/release/ubuntustudio-19.10-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/releases/19.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/ubuntustudio-20.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/19.10/ubuntu-19.10-desktop-amd64.iso -UBUNTU_X64_SUM=http://releases.ubuntu.com/19.10/SHA256SUMS +UBUNTU_X64_URL=http://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso +UBUNTU_X64_SUM=http://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 2d7878d3e9798c6e5872918eefe19970477fa5d6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 28 Apr 2020 23:30:41 +0200 Subject: [PATCH 321/694] updated url (fedora) --- p2-include-url.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 20b1d46..18e2fae 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-04-24 +# v 2020-04-28 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -112,8 +112,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/31/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-31-1.9.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/31/Workstation/x86_64/iso/Fedora-Workstation-31-1.9-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/32/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-32-1.6.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/32/Workstation/x86_64/iso/Fedora-Workstation-32-1.6-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 @@ -196,6 +196,11 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.3/systemrescuecd-amd64-6.1.3.iso + +TAILS_X64=tails-x64 +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.5/tails-amd64-4.5.iso + + TINYCORE_X64=tinycore-x64 TINYCORE_X64_URL=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso TINYCORE_X64_SUM=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso.md5.txt @@ -281,9 +286,6 @@ OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/liv OPENSUSE_X64_SUM_TYPE=sha256 -TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.5/tails-amd64-4.5.iso - ########################################################################## ########################################################################## ## url to zip files, From e017366dd153a12012154e8fa49fced3cec5c3c5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 May 2020 22:47:28 +0200 Subject: [PATCH 322/694] updated url (clonezilla, parrot, tails) --- p2-include-url.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 18e2fae..73f466d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-04-28 +# v 2020-05-07 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -69,9 +69,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.5-21/clonezilla-live-2.6.5-21-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.6-15/clonezilla-live-2.6.6-15-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.5-21/clonezilla-live-2.6.5-21-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.6-15/clonezilla-live-2.6.6-15-i686.iso DEBIAN_KVER=4.19.0-8 DEBIAN_X64=debian-x64 @@ -170,13 +170,13 @@ MINT_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.8/Parrot-security-4.8_x64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.8/sha256.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9/Parrot-security-4.9_x64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9/sha256.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.8/Parrot-home-4.8_x64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.8/sha256.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9/Parrot-home-4.9_x64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9/sha256.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -198,7 +198,7 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.5/tails-amd64-4.5.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.6/tails-amd64-4.6.iso TINYCORE_X64=tinycore-x64 From c543bd8d9eaa1111f6f4bb750a70d399d8d5e09e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 12 May 2020 11:40:48 +0200 Subject: [PATCH 323/694] updated url (debian, kali) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 73f466d..210e657 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-05-07 +# v 2020-05-12 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -75,12 +75,12 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=4.19.0-8 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.3.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.4.0-amd64-lxde.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.3.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.4.0-i386-lxde.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -122,7 +122,7 @@ GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.1b-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From e8097730baf3d0786c4aca3666817568120b0418 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 12 May 2020 11:54:33 +0200 Subject: [PATCH 324/694] updated debian kernel version --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 210e657..5aa5133 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -73,7 +73,7 @@ CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.6-15/clonezilla-live-2.6.6-15-i686.iso -DEBIAN_KVER=4.19.0-8 +DEBIAN_KVER=4.19.0-9 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.4.0-amd64-lxde.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS From 374538fbf7fcecd7e4902857eb4041cd4ce3c07b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 17 May 2020 20:26:25 +0200 Subject: [PATCH 325/694] fix url (gnu radio) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 5aa5133..a26efa9 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-05-12 +# v 2020-05-17 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -118,7 +118,7 @@ FEDORA_X64_SUM_TYPE=sha256 GNURADIO_X64=gnuradio-x64 -GNURADIO_X64_URL=https://s3-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso +GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 From c1114b726a91e16aebc4f8124cfafdb3a6a0b718 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 27 May 2020 20:04:56 +0200 Subject: [PATCH 326/694] updated url (sysrescue) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index a26efa9..b760463 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-05-17 +# v 2020-05-27 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -194,7 +194,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.3/systemrescuecd-amd64-6.1.3.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.4/systemrescuecd-amd64-6.1.4.iso TAILS_X64=tails-x64 From e6cd4ebdfebd1e4e2f7da6bd4ee516ac53cf8f5c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Jun 2020 09:15:22 +0200 Subject: [PATCH 327/694] updated url (devuan, raspios) --- p2-include-url.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index b760463..99efa47 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-05-27 +# v 2020-06-01 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -97,13 +97,13 @@ DEFT_X64_SUM_TYPE=md5 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.1_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_ascii/desktop-live/SHA256SUMS +DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.0.0_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_ascii/desktop-live/devuan_ascii_2.1_i386_desktop-live.iso -DEVUAN_X86_SUM=https://files.devuan.org/devuan_ascii/desktop-live/SHA256SUMS +DEVUAN_X86_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.0.0_i386_desktop-live.iso +DEVUAN_X86_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt DEVUAN_X86_SUM_TYPE=sha256 @@ -170,13 +170,13 @@ MINT_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9/Parrot-security-4.9_x64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9/sha256.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9.1/Parrot-security-4.9.1_x64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9.1/sha256.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9/Parrot-home-4.9_x64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9/sha256.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9.1/Parrot-home-4.9.1_x64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9.1/sha256.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -300,17 +300,17 @@ PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_BASIC=rpi-raspbian-basic -RPD_BASIC_URL=https://downloads.raspberrypi.org/raspbian_latest +RPD_BASIC_URL=https://downloads.raspberrypi.org/raspios_armhf_latest RPD_BASIC_SUM=https://www.raspberrypi.org/downloads/raspbian/ RPD_BASIC_SUM_TYPE=sha256 RPD_FULL=rpi-raspbian-full -RPD_FULL_URL=https://downloads.raspberrypi.org/raspbian_full_latest +RPD_FULL_URL=https://downloads.raspberrypi.org/raspios_full_armhf_latest RPD_FULL_SUM=https://www.raspberrypi.org/downloads/raspbian/ RPD_FULL_SUM_TYPE=sha256 RPD_LITE=rpi-raspbian-lite -RPD_LITE_URL=https://downloads.raspberrypi.org/raspbian_lite_latest +RPD_LITE_URL=https://downloads.raspberrypi.org/raspios_lite_armhf_latest RPD_LITE_SUM=https://www.raspberrypi.org/downloads/raspbian/ RPD_LITE_SUM_TYPE=sha256 From d27669c5a2d0b8f16ec6aacae2b87d93a686fc81 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 3 Jun 2020 14:30:34 +0200 Subject: [PATCH 328/694] updated url (tails) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 99efa47..69d750d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-06-01 +# v 2020-06-03 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -198,7 +198,7 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.6/tails-amd64-4.6.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.7/tails-amd64-4.7.iso TINYCORE_X64=tinycore-x64 From f01a301609cfd8da91826925af5b15c3a1f5b7ec Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 3 Jun 2020 22:39:17 +0200 Subject: [PATCH 329/694] added support for openSuse (via vblade) --- install-pxe-server_pass1.sh | 7 +- install-pxe-server_pass2.sh | 128 +++++++++++++++++++++++++++++------- p2-include-handle.sh | 16 ++--- p2-include-menu.sh | 118 +++++++++++++++------------------ p2-include-url.sh | 32 ++++----- 5 files changed, 188 insertions(+), 113 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 06ba7ae..641f16d 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -2,8 +2,6 @@ ###################################################################### # -# v2020-04-16 -# # known issues: # @@ -113,6 +111,11 @@ tar -ravf $BACKUP_FILE -C / var/www/html/index.lighttpd.html sudo rm /var/www/html/index.lighttpd.html +###################################################################### +echo -e "\e[32minstall vblade\e[0m"; +sudo apt install -y --no-install-recommends vblade vblade-persist; + + ###################################################################### echo -e "\e[32minstall wlan access point\e[0m"; sudo apt install -y --no-install-recommends hostapd diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index b62aafc..d9c1a42 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -615,13 +615,50 @@ handle_iso() { local FILE_ISO=$NAME.iso local DST_ORIGINAL=/srv/tmp/original/$NAME ###################################################################### + local timestamping; + local bindfs; + local vblade; + local vblade_shelf; + local vblade_slot; + local fstab_options; + + shift 2; + while [ $# -gt 0 ]; do + case "$1" in + timestamping) + timestamping=yes; + echo -e "\e[36m timestamping\e[0m"; + ;; + bindfs) + bindfs=yes; + echo -e "\e[36m bindfs\e[0m"; + ;; + vbladed) + vblade=yes; + vblade_shelf=$2; + vblade_slot=$3; + shift 2; + echo -e "\e[36m vblade_shelf=$vblade_shelf, vblade_slot=$vblade_slot\e[0m"; + ;; + *) + fstab_options="$1" + echo -e "\e[36m fstab_options=$fstab_options\e[0m"; + ;; + esac + shift; + done + ###################################################################### if ! [ -d "$DST_ISO/" ]; then sudo mkdir -p $DST_ISO/; fi if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi - sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; - if [ "$3" == "bindfs" ]; then sudo umount -f $DST_ORIGINAL 2> /dev/null; fi + if [ "$vblade" == "yes" ]; then + sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service; + fi + + sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; + sudo umount -f $DST_NFS_ETH0/$NAME &>/dev/null; + if [ "$bindfs" == "yes" ]; then sudo umount -f $DST_ORIGINAL 2> /dev/null; fi if [ -z $URL ]; then if ! [ -s "$DST_ISO/$FILE_ISO" ] \ @@ -647,7 +684,7 @@ handle_iso() { if ! [ -s "$DST_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ + || ([ "$timestamping" == "yes" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ then echo -e "\e[36m download iso image\e[0m"; sudo rm -f $DST_ISO/$FILE_URL; @@ -670,7 +707,7 @@ handle_iso() { fi if ! [ -d "$DST_ORIGINAL" ]; then - if [ "$3" == "bindfs" ]; then + if [ "$bindfs" == "yes" ]; then echo -e "\e[36m create nfs folder\e[0m"; sudo mkdir -p $DST_ORIGINAL; fi @@ -678,15 +715,11 @@ handle_iso() { if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; - if [ "$3" == "bindfs" ]; then + if [ "$bindfs" == "yes" ]; then sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; else - if [ "$3" == "timestamping" ]; then - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$4 0 10' >> /etc/fstab"; - else - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$3 0 10' >> /etc/fstab"; - fi + sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$fstab_options 0 10' >> /etc/fstab"; fi fi @@ -695,21 +728,32 @@ handle_iso() { sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - if [ "$3" == "bindfs" ]; then sudo mount $DST_ORIGINAL; fi + if [ "$bindfs" == "yes" ]; then sudo mount $DST_ORIGINAL; fi sudo mount $DST_NFS_ETH0/$NAME; sudo exportfs *:$DST_NFS_ETH0/$NAME; - #if [ -d "/var/www/html" ]; then - # if ! [ -h "/var/www/html/$FILE_ISO" ]; then - # sudo ln -s $DST_ISO/$FILE_ISO /var/www/html/$FILE_ISO - # fi - # if ! [ -h "/var/www/html/$NAME" ]; then - # sudo ln -s $DST_NFS_ETH0/$NAME/ /var/www/html/$NAME - # fi - #fi + + if [ "$vblade" == "yes" ]; then + echo -e "\e[36m setup vblade-persistence\e[0m"; + cat << EOF | sudo tee /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null +shelf=$vblade_shelf +slot=$vblade_slot +netif=$INTERFACE_ETH0 +filename=$DST_ISO/$FILE_ISO +options='-r' +ionice='--class best-effort --classdata 7' +EOF + sudo systemctl daemon-reload; + sudo systemctl restart vblade.service; + fi else sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" + + if [ "$vblade" == "yes" ]; then + sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf + sudo systemctl daemon-reload; + fi fi } @@ -727,9 +771,42 @@ _unhandle_iso() { local FILE_URL=$NAME.url local FILE_ISO=$NAME.iso ###################################################################### + local timestamping; + local bindfs; + local vblade; + local vblade_shelf; + local vblade_slot; + local fstab_options; + + shift 2; + while [ $# -gt 0 ]; do + case "$1" in + timestamping) + timestamping=yes; + ;; + bindfs) + bindfs=yes; + ;; + vbladed) + vblade=yes; + vblade_shelf=$2; + vblade_slot=$3; + shift 2; + ;; + *) + fstab_options="$1" + ;; + esac + shift; + done + ###################################################################### + + if [ "$vblade" == "yes" ]; then + sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service; + fi - sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; + sudo umount -f $DST_NFS_ETH0/$NAME &>/dev/null; sudo rm -f $DST_ISO/$FILE_URL; sudo rm -f $DST_ISO/$FILE_ISO; @@ -739,11 +816,16 @@ _unhandle_iso() { sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" + if [ "$vblade" == "yes" ]; then + sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf + sudo systemctl daemon-reload; + fi + if [ -d "$SRC_ISO" ] \ && ( \ ! [ -s "$SRC_ISO/$FILE_ISO" ] \ || ! grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_ISO/$FILE_ISO $URL) \ + || ([ "$timestamping" == "yes" ] && ! compare_last_modification_time $SRC_ISO/$FILE_ISO $URL) \ ); \ then echo -e "\e[36m download iso image to backup location\e[0m"; diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 997308e..cf4bcad 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -23,8 +23,8 @@ _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; _unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEFT_X64 $DEFT_X64_URL; +_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; _unhandle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; @@ -39,15 +39,17 @@ _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; _unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; _unhandle_iso $MINT_X64 $MINT_X64_URL; -_unhandle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; +handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 0 1; +handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 1 1; +handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; #_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -handle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; -handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; +_unhandle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; handle_iso $TAILS_X64 $TAILS_X64_URL; -_unhandle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; +_unhandle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; +handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; #_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; _unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; @@ -64,14 +66,12 @@ handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; #broken# _unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; -_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; -_unhandle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292; ########################################################################## _unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; ########################################################################## -handle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; +_unhandle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; ########################################################################## diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 282bb42..6e98088 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -126,17 +126,17 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DEFTZ_X64\e[0m"; +&& [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFT_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $DEFTZ_X64 - MENU LABEL DEFT Zero x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + LABEL $DEFT_X64 + MENU LABEL DEFT x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP - Boot to DEFT Zero x64 Live + Boot to DEFT x64 Live User: root, Password: toor ENDTEXT EOF @@ -145,17 +145,17 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $DEFT_X64\e[0m"; +&& [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $DEFTZ_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $DEFT_X64 - MENU LABEL DEFT x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + LABEL $DEFTZ_X64 + MENU LABEL DEFT Zero x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP - Boot to DEFT x64 Live + Boot to DEFT Zero x64 Live User: root, Password: toor ENDTEXT EOF @@ -440,6 +440,44 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $OPENSUSE_RESCUE_X64 + MENU LABEL openSUSE Leap Rescue x64 + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd + APPEND root=live:AOEINTERFACE=e0.1 rd.kiwi.live.pxe -- + TEXT HELP + Boot to openSUSE Leap Rescue Live + User: liveuser + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then + echo -e "\e[36m add $OPENSUSE_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $OPENSUSE_X64 + MENU LABEL openSUSE Leap x64 + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd + APPEND root=live:AOEINTERFACE=e1.1 rd.kiwi.live.pxe -- + TEXT HELP + Boot to openSUSE Leap Live + User: liveuser + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then @@ -982,51 +1020,3 @@ if [ -f "$FILE_MENU" ] \ EOF fi #========== END ========== - -#========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then - echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - ## NOT WORKING - LABEL $OPENSUSE_RESCUE_X64 - MENU LABEL openSUSE Leap Rescue x64 (broken) - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- - #APPEND root=live:$FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- - #APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_RESCUE_X64/LiveOS/squashfs.img ro rd.live.image rd.live.overlay.persistent rd.live.overlay.cowfs=ext4 showopts -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 - TEXT HELP - Boot to openSUSE Leap Rescue Live - User: liveuser - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then - echo -e "\e[36m add $OPENSUSE_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - ## NOT WORKING - ## INFO: Booting live images - ## https://mirrors.edge.kernel.org/pub/linux/utils/boot/dracut/dracut.html#dracutconf5 - ## Bug 1099548 - can't PXE-boot into openSUSE Leap 15.0 Live image - ## https://bugzilla.opensuse.org/show_bug.cgi?id=1099548 - LABEL $OPENSUSE_X64 - MENU LABEL openSUSE Leap x64 (broken) - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image - #APPEND root=live:$FILE_BASE$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image - #APPEND root=live:tftp://$IP_ETH0$NFS_ETH0/$OPENSUSE_X64/LiveOS/squashfs.img ro rd.live.image rd.shell rd.debug -- - TEXT HELP - Boot to openSUSE Leap Live - User: liveuser - ENDTEXT -EOF -fi -#=========== END =========== diff --git a/p2-include-url.sh b/p2-include-url.sh index 69d750d..b214d85 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -85,16 +85,16 @@ DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid DEBIAN_X86_SUM_TYPE=sha256 -DEFTZ_X64=deftz-x64 -DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso -DEFTZ_X64_SUM=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso.md5 -DEFTZ_X64_SUM_TYPE=md5 - DEFT_X64=deft-x64 DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/iso/deft-8.2.iso DEFT_X64_SUM=https://na.mirror.garr.it/mirrors/deft/md5.txt DEFT_X64_SUM_TYPE=md5 +DEFTZ_X64=deftz-x64 +DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso +DEFTZ_X64_SUM=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso.md5 +DEFTZ_X64_SUM_TYPE=md5 + DEVUAN_X64=devuan-x64 DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.0.0_amd64_desktop-live.iso @@ -169,6 +169,17 @@ MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/19.3/sha256sum.txt MINT_X64_SUM_TYPE=sha256 +OPENSUSE_RESCUE_X64=opensuse-rescue-x64 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso.sha256 +OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 + +OPENSUSE_X64=opensuse-x64 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso.sha256 +OPENSUSE_X64_SUM_TYPE=sha256 + + PARROT_FULL_X64=parrot-full-x64 PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9.1/Parrot-security-4.9.1_x64.iso PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9.1/sha256.txt @@ -275,17 +286,6 @@ CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.tx CENTOS_X64_SUM_TYPE=sha256 -OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso.sha256 -OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 - -OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso.sha256 -OPENSUSE_X64_SUM_TYPE=sha256 - - ########################################################################## ########################################################################## ## url to zip files, From dfddcf4bd3ca69b5dfae3e8f95a93932adebe0bb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 3 Jun 2020 23:00:06 +0200 Subject: [PATCH 330/694] updated url (opensuse) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index b214d85..fccffae 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -175,8 +175,8 @@ OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-curr OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-KDE-Live-x86_64-Current.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 From 25bddb0bc1f8d36de3785d7c852fbb308e6cf967 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Jun 2020 09:54:38 +0200 Subject: [PATCH 331/694] fix handle_iso --- install-pxe-server_pass2.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index d9c1a42..4acbee8 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -622,7 +622,9 @@ handle_iso() { local vblade_slot; local fstab_options; - shift 2; + shift; + shift; + while [ $# -gt 0 ]; do case "$1" in timestamping) @@ -732,7 +734,6 @@ handle_iso() { sudo mount $DST_NFS_ETH0/$NAME; sudo exportfs *:$DST_NFS_ETH0/$NAME; - if [ "$vblade" == "yes" ]; then echo -e "\e[36m setup vblade-persistence\e[0m"; cat << EOF | sudo tee /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null @@ -778,7 +779,9 @@ _unhandle_iso() { local vblade_slot; local fstab_options; - shift 2; + shift; + shift; + while [ $# -gt 0 ]; do case "$1" in timestamping) From 068399b5f90df6272abf0a275a49b427b14713d6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Jun 2020 10:19:28 +0200 Subject: [PATCH 332/694] hide initial warning --- install-pxe-server_pass2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 4acbee8..be300ec 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -655,7 +655,7 @@ handle_iso() { if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi if [ "$vblade" == "yes" ]; then - sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service; + sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; @@ -752,7 +752,7 @@ EOF sudo sed /etc/exports -i -e "/$NAME/d" if [ "$vblade" == "yes" ]; then - sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf + sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; sudo systemctl daemon-reload; fi fi @@ -805,7 +805,7 @@ _unhandle_iso() { ###################################################################### if [ "$vblade" == "yes" ]; then - sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service; + sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; @@ -820,7 +820,7 @@ _unhandle_iso() { sudo sed /etc/exports -i -e "/$NAME/d" if [ "$vblade" == "yes" ]; then - sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf + sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; sudo systemctl daemon-reload; fi From 9eb4f1700035f9454b8dcfc3b9d91fc99112981b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Jun 2020 10:38:03 +0200 Subject: [PATCH 333/694] Raspberry Pi OS --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f76833..4e77b90 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspbian Buster** or **Raspbina Buster Lite** (2020-02-13), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspberry Pi OS Buster** or **Raspberry Pi OS Buster Lite** (2020-02-13), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspbian Buster (or Lite) from 2020-02-13, +- your Raspberry Pi is running Raspberry Pi OS Buster (or Lite) from 2020-02-13, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (16GB when you use unmodified script) @@ -251,7 +251,7 @@ Serial : 0000000087654321 then take ```RPI_SN0=87654321```.
if you have more than one RPi3-client for network booting you have to add them by hand to the ```/srv/tftp``` folder on the PXE-server. -the script will download Raspbian-Buster-Lite and prepare it for the RPi3-client with the given serial number. +the script will download Raspberry Pi OS Buster Lite and prepare it for the RPi3-client with the given serial number. by default, a RPi3-client is not enabled for network booting. you have to enable it once. From c41ed38faabe146a55b96daae07b6db7196180d6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Jun 2020 10:39:40 +0200 Subject: [PATCH 334/694] VBLADE --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e77b90..9b6f916 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ i did not keeped an eye on network security. **USE IT AT YOUR OWN RISK.** ## what is it good for? -the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, NTP, PXE server. +the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, NTP, VBLADE, PXE server. and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. From 2f2be769290ed3f0952abc5df3275055c6bde533 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 14 Jun 2020 20:15:42 +0200 Subject: [PATCH 335/694] updated url (sysrescue) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index fccffae..46f6412 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-06-03 +# v 2020-06-14 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -205,7 +205,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.4/systemrescuecd-amd64-6.1.4.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.5/systemrescuecd-amd64-6.1.5.iso TAILS_X64=tails-x64 From 962c4ab11deab1dd64f70465a729bd59305a6b54 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 20 Jun 2020 08:58:13 +0200 Subject: [PATCH 336/694] updated files --- README.md | 28 ++++++++++++++-------------- p2-include-handle.sh | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 9b6f916..fb53acd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # install-pxe-server setup a Raspberry Pi as a PXE-Server.
it is a private project i have made for myself.
-i did not keeped an eye on network security. +i did not keep an eye on network security. **the script will override some existing configurations**
(a backup of the changed configuration files will be stored to **backup.tar.xz**) @@ -12,7 +12,7 @@ i did not keeped an eye on network security. the scripts installs necessary packages to let your RPi act as a DHCP, TFTP, Samba, NFS, HTML, NTP, VBLADE, PXE server. and it will download LiveDVD ISOs you can boot your PXE client (Desktop PC) to. -the script can easely be modified to add additional ISOs or update ISOs if updated ones are available. +the script can easily be modified to add additional ISOs or update ISOs if updated ones are available. it also is able to act as server for NETWORK BOOTING for a Raspberry Pi 3 (see **note4**) @@ -39,7 +39,7 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ - SD card (big enough to hold entire ISO images of desired Live DVDs), (e.g. 64GByte) - USB memory stick (optional, to store preloaded iso images), (e.g. 64GByte) - working network environment with a connection to internet -- optional: second ethernet interface (via USB) +- optional: second Ethernet interface (via USB) - optional: built-in WLAN interface (as that one of RPi3, or an external one via USB) optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. @@ -55,7 +55,7 @@ assuming, and optional: - you have plugged an USB-memory-stick that is mounted at /media/server (SRC_MOUNT=/media/server) -- and the folowing folder structure on the USB memory stick: +- and the following folder structure on the USB memory stick: ``` └── backup @@ -124,7 +124,7 @@ e.g.:** _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; ... ``` -**same procedure, if you dont want some disk images getting downloaded and mountet, you can comment out those lines +**same procedure, if you don't want some disk images getting downloaded and mounted, you can comment out those lines e.g.:** ``` ###################################################################### @@ -133,10 +133,10 @@ handle_zip_img $RPD_LITE $RPD_LITE_URL; ``` ## what else you should know, when you make modification to the script... -there are three importent locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. +there are three important locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. 1. the ISO or NFS path relative to the pxe boot menu root path
(on disk `/srv/tftp/menu-bios/iso`, `/srv/tftp/menu-bios/iso` as symbolic link). -2. the ISO or NFS path repative to the nfs root path
+2. the ISO or NFS path relative to the nfs root path
(on disk `/srv/iso`, `/srv/nfs`). 3. the ISO, IMG or NFS path located at /var/www/html
(on disk `/var/www/html/iso`, `/var/www/html/img`, `/var/www/html/nfs`). @@ -161,14 +161,14 @@ there are three importent locations for the pxe boot and the pxe menu that must └── nfs (only a symbolic link to NFS files) ``` -if you make any changes to your script and/or file stcructure on disk, keep an eye to changes you made and adapt everything to match +if you make any changes to your script and/or file structure on disk, keep an eye to changes you made and adapt everything to match pxe menu entries to file structure on disk. what the root of TFTP and PXE boot menu are, is defined in the **_dnsmasq_** configuration file `/etc/dnsmasq.d/pxe-server`.
the root for NFS is defined in `/etc/exports`.
the root for HTML is defined in the **_lighttpd_** configuration file `/etc/lighttpd/lighttpd.conf`. ## mount scenarios for pxe boot: -### direct readonly mounting content of ISO: +### direct read-only mounting content of ISO: e.g. ubuntu-lts-x64 iso image
no problems. pxe boot job can access to required content. ``` @@ -183,11 +183,11 @@ no problems. pxe boot job can access to required content. ║ └───────────╥─┘ ╚═════════════╝ ``` -### mounting content of disk image and make content read/writalbe by overlayfs: +### mounting content of disk image and make content read/writable by overlayfs: e.g. rpi-raspbian-full
-this disk image contains two partitions. the first is the boot partition and the second is the root parition. +this disk image contains two partitions. the first is the boot partition and the second is the root partition. to make the images read/writable, there is an overlayfs putted on top.
-(lowerdir is the readonly source, upperdir is the writable difference, workdir is an temporarily workfolder for internal use. the mergeddir is the sum of lower + upper. write access happens only on the upperdir with white-out and write-on-modify capability)
+(lowerdir is the read-only source, upperdir is the writable difference, workdir is an temporarily workfolder for internal use. the mergeddir is the sum of lower + upper. write access happens only on the upperdir with white-out and write-on-modify capability)
but unfortunately overlayfs can't get exported directly for nfs. so putting a bindfs on top of the overlayfs makes it possible to get exported for nfs.
and another issue is, overlayfs can't handle **vfat** partitions as source (lowerdir). putting bindfs between makes overlayfs happy.
**note: this overlayfs+bindfs construction does NOT work reliably - data loss!** @@ -223,8 +223,8 @@ and another issue is, overlayfs can't handle **vfat** partitions as source (lowe ``` ## note2: -some of the PXE-menu entries has additional parameters, that lets the Live systems boot with german language (keyboard layout). -if you dont like or want, remove those additional parameters just behind the ' --' in the menu entries +some of the PXE-menu entries has additional parameters, that lets the Live systems boot with German language (keyboard layout). +if you don't like or want, remove those additional parameters just behind the ' --' in the menu entries to easily change the language to your favorite ones, there are variables on the top part of the script. ``` diff --git a/p2-include-handle.sh b/p2-include-handle.sh index cf4bcad..797f141 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -46,7 +46,7 @@ _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; #_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -_unhandle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; +handle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; handle_iso $TAILS_X64 $TAILS_X64_URL; _unhandle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; From a078c896d4d33b07575ab3c62bfcdcb63cbce23a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 20 Jun 2020 16:18:30 +0200 Subject: [PATCH 337/694] changed vblade conf name --- install-pxe-server_pass2.sh | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index be300ec..3c80cf0 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -655,7 +655,10 @@ handle_iso() { if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi if [ "$vblade" == "yes" ]; then - sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; + sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; + ##sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; + sudo systemctl disable --now vblade@$(systemd-escape $NAME).service &>/dev/null; + sudo systemctl daemon-reload; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; @@ -736,7 +739,8 @@ handle_iso() { if [ "$vblade" == "yes" ]; then echo -e "\e[36m setup vblade-persistence\e[0m"; - cat << EOF | sudo tee /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null + ##cat << EOF | sudo tee /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null + cat << EOF | sudo tee /etc/vblade.conf.d/$NAME.conf &>/dev/null shelf=$vblade_shelf slot=$vblade_slot netif=$INTERFACE_ETH0 @@ -744,15 +748,16 @@ filename=$DST_ISO/$FILE_ISO options='-r' ionice='--class best-effort --classdata 7' EOF - sudo systemctl daemon-reload; - sudo systemctl restart vblade.service; + sudo systemctl daemon-reload; + sudo systemctl restart vblade.service; fi else sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" if [ "$vblade" == "yes" ]; then - sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; + ##sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; + sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; sudo systemctl daemon-reload; fi fi @@ -805,7 +810,10 @@ _unhandle_iso() { ###################################################################### if [ "$vblade" == "yes" ]; then - sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; + sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; + ##sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; + sudo systemctl disable --now vblade@$(systemd-escape $NAME).service &>/dev/null; + sudo systemctl daemon-reload; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; @@ -820,7 +828,8 @@ _unhandle_iso() { sudo sed /etc/exports -i -e "/$NAME/d" if [ "$vblade" == "yes" ]; then - sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; + ##sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; + sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; sudo systemctl daemon-reload; fi From abeb8b6908de1bc009c75828fdc44f27228a057e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 20 Jun 2020 23:08:26 +0200 Subject: [PATCH 338/694] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb53acd..7a46361 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ it is a private project i have made for myself.
i did not keep an eye on network security. **the script will override some existing configurations**
-(a backup of the changed configuration files will be stored to **backup.tar.xz**) +(a backup of the changed configuration files will be stored to **backup.tar.xz**)
+(to extract all versions of all files to /tmp: `tar --backup=numbered -xavf backup.tar.xz -C /tmp`, some files will be hidden) **USE IT AT YOUR OWN RISK.** @@ -45,11 +46,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspberry Pi OS Buster** or **Raspberry Pi OS Buster Lite** (2020-02-13), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspberry Pi OS Buster** or **Raspberry Pi OS Buster Lite** (2020-05-27), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspberry Pi OS Buster (or Lite) from 2020-02-13, +- your Raspberry Pi is running Raspberry Pi OS Buster (or Lite) from 2020-05-27, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (16GB when you use unmodified script) From 3b8350628be152dbbd0ec79e4836d73ba6ffe158 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 21 Jun 2020 00:38:54 +0200 Subject: [PATCH 339/694] optimized vblade handling --- install-pxe-server_pass2.sh | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 3c80cf0..c01b986 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -655,10 +655,7 @@ handle_iso() { if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi if [ "$vblade" == "yes" ]; then - sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; - ##sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; - sudo systemctl disable --now vblade@$(systemd-escape $NAME).service &>/dev/null; - sudo systemctl daemon-reload; + sudo systemctl stop vblade@$(systemd-escape $NAME).service &>/dev/null; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; @@ -756,9 +753,10 @@ EOF sudo sed /etc/exports -i -e "/$NAME/d" if [ "$vblade" == "yes" ]; then - ##sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; + sudo systemctl stop vblade@$(systemd-escape $NAME).service &>/dev/null; sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; - sudo systemctl daemon-reload; + sudo systemctl daemon-reload &>/dev/null; + sudo systemctl restart vblade.service &>/dev/null; fi fi } @@ -810,10 +808,10 @@ _unhandle_iso() { ###################################################################### if [ "$vblade" == "yes" ]; then + sudo systemctl stop vblade@$(systemd-escape $NAME).service &>/dev/null; sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; - ##sudo systemctl --now disable vblade@e$vblade_shelf$vblade_slot.service &>/dev/null; - sudo systemctl disable --now vblade@$(systemd-escape $NAME).service &>/dev/null; - sudo systemctl daemon-reload; + sudo systemctl daemon-reload &>/dev/null; + sudo systemctl restart vblade.service &>/dev/null; fi sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; @@ -827,12 +825,6 @@ _unhandle_iso() { sudo sed /etc/fstab -i -e "/$NAME/d" sudo sed /etc/exports -i -e "/$NAME/d" - if [ "$vblade" == "yes" ]; then - ##sudo rm -f /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null; - sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; - sudo systemctl daemon-reload; - fi - if [ -d "$SRC_ISO" ] \ && ( \ ! [ -s "$SRC_ISO/$FILE_ISO" ] \ From 2ea9cfb0024ef444b532f0ab577e2339dab54fce Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 23 Jun 2020 12:34:40 +0200 Subject: [PATCH 340/694] fix boot menu title --- install-pxe-server_pass2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index c01b986..8a9bdc7 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -448,7 +448,7 @@ NOESCAPE 1 ALLOWOPTIONS 1 menu color title * #FFFFFFFF * -menu title PXE Boot Menu (menu-bios) +menu title PXE Boot Menu ($1) menu rows 20 menu tabmsgrow 24 menu tabmsg [Enter]=boot, [Tab]=edit, [Esc]=return From 169bf818b55ebdd84f991a2437d9da155f451476 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 29 Jun 2020 07:48:32 +0200 Subject: [PATCH 341/694] updated url (mint) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 46f6412..a474627 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-06-14 +# v 2020-06-29 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -164,8 +164,8 @@ LUBUNTU_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/19.3/linuxmint-19.3-xfce-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/19.3/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20/linuxmint-20-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From 93aee8358f35c13bead4152c040e633cccf95eca Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 29 Jun 2020 08:34:53 +0200 Subject: [PATCH 342/694] fixed mint boot --- p2-include-menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 6e98088..0a3c390 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -431,7 +431,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL linux-mint x64 KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to linux-mint x64 Live User: From 13c68b6af78740c5190859afcca2af89e72926f7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 30 Jun 2020 14:02:28 +0200 Subject: [PATCH 343/694] updated url (tails) --- p2-include-url.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index a474627..262106d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-06-29 +# v 2020-06-30 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -209,7 +209,9 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.7/tails-amd64-4.7.iso +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.8/tails-amd64-4.8.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.8/tails-amd64-4.8.iso.sig +TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 From f643331052cf187860b46330cc926012e7768e39 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 5 Jul 2020 10:19:15 +0200 Subject: [PATCH 344/694] updated url (openSUSE, sysrescue) --- p2-include-url.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 262106d..0415681 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-06-30 +# v 2020-07-05 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -170,13 +170,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-Rescue-CD-x86_64-Current.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-Rescue-CD-x86_64-Media.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-Rescue-CD-x86_64-Media.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.1-GNOME-Live-x86_64-Current.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-KDE-Live-x86_64-Media.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-KDE-Live-x86_64-Media.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 @@ -205,7 +205,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.5/systemrescuecd-amd64-6.1.5.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.6/systemrescuecd-amd64-6.1.6.iso TAILS_X64=tails-x64 From be15867bb8eecc46862f8e6604a0a4432378c406 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 6 Jul 2020 17:35:11 +0200 Subject: [PATCH 345/694] updated url (clonezilla) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 0415681..59c0971 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-07-05 +# v 2020-07-06 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -69,9 +69,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.6-15/clonezilla-live-2.6.6-15-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.6-15/clonezilla-live-2.6.6-15-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-i686.iso DEBIAN_KVER=4.19.0-9 DEBIAN_X64=debian-x64 From e58cd356b3e6a8f4b4ea5049ef3bcf565aab52e3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 Jul 2020 13:41:43 +0200 Subject: [PATCH 346/694] deft/deftz finally discontinued --- p2-include-handle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 797f141..6b8120c 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -23,8 +23,8 @@ _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; _unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -_unhandle_iso $DEFT_X64 $DEFT_X64_URL; -_unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +#discontinued# _unhandle_iso $DEFT_X64 $DEFT_X64_URL; +#discontinued# _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; _unhandle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; From bb3cbb26f63015a07e280d382f36e3d78cf5d9c9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 Jul 2020 13:42:46 +0200 Subject: [PATCH 347/694] Update p2-include-handle.sh --- p2-include-handle.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 6b8120c..35ff04b 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -23,8 +23,6 @@ _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; _unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -#discontinued# _unhandle_iso $DEFT_X64 $DEFT_X64_URL; -#discontinued# _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; _unhandle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; @@ -67,6 +65,9 @@ handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; _unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +#discontinued# _unhandle_iso $DEFT_X64 $DEFT_X64_URL; +#discontinued# _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; + ########################################################################## _unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; From 71b6cf9713b853ba02e784f621295ce950bba3f6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 Jul 2020 13:52:03 +0200 Subject: [PATCH 348/694] fixed url pentoo --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 59c0971..4c5fdf8 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-07-06 +# v 2020-07-21 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -195,7 +195,7 @@ PENTOO_BETA_X64=pentoo-beta-x64 PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-amd64-hardened-latest.iso +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Release/pentoo-full-amd64-hardened-latest.iso RPDESKTOP_X86=rpdesktop-x86 From 32c325f469f36f1b162d0d8571453e478a4e2c74 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 28 Jul 2020 07:11:47 +0200 Subject: [PATCH 349/694] Update p2-include-handle.sh --- p2-include-handle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 35ff04b..4ec779c 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -37,7 +37,7 @@ _unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; _unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; _unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; _unhandle_iso $MINT_X64 $MINT_X64_URL; -handle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 0 1; +_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 0 1; handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 1 1; handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; From 04c9e8b3baa253e1153345f6ed929ab116df77a6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 28 Jul 2020 07:16:22 +0200 Subject: [PATCH 350/694] updated url (tails) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 4c5fdf8..780dc4d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-07-21 +# v 2020-07-28 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -209,8 +209,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.8/tails-amd64-4.8.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.8/tails-amd64-4.8.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.9/tails-amd64-4.9.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.9/tails-amd64-4.9.iso.sig TAILS_X64_SUM_TYPE=pgp From 530e0a83527a63ced468446e559623502c9687bb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 2 Aug 2020 11:15:43 +0200 Subject: [PATCH 351/694] added do_backup() --- install-pxe-server_pass1.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 641f16d..6592a2d 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -1,13 +1,15 @@ #!/bin/bash ###################################################################### -# -# known issues: -# - BACKUP_FILE=backup.tar.xz +BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// + +do_backup() { + tar -ravf "$BACKUP_FILE" --transform="$BACKUP_TRANSFORM" -C / "$1" &>/dev/null +} + -tar -ravf $BACKUP_FILE -C / boot/cmdline.txt +do_backup boot/cmdline.txt ###################################################################### grep -q max_loop /boot/cmdline.txt &>/dev/null || { @@ -96,7 +98,7 @@ sudo apt install -y --no-install-recommends pxelinux syslinux-common syslinux-ef echo -e "\e[32minstall lighttpd\e[0m"; sudo apt install -y --no-install-recommends lighttpd; grep -q mod_install_server /etc/lighttpd/lighttpd.conf &>/dev/null || { - tar -ravf $BACKUP_FILE -C / etc/lighttpd/lighttpd.conf + do_backup etc/lighttpd/lighttpd.conf cat << EOF | sudo tee -a /etc/lighttpd/lighttpd.conf &>/dev/null ######################################## ## mod_install_server @@ -107,7 +109,7 @@ dir-listing.set-footer = " 
" dir-listing.exclude = ( "[.]*\.url" ) EOF } -tar -ravf $BACKUP_FILE -C / var/www/html/index.lighttpd.html +do_backup var/www/html/index.lighttpd.html sudo rm /var/www/html/index.lighttpd.html @@ -196,9 +198,9 @@ sudo sed -i '1 s/$/ logo.nologo/' /boot/cmdline.txt; ###################################################################### ## optional echo -e "\e[32mchange hostname\e[0m"; -tar -ravf $BACKUP_FILE -C / etc/hostname +do_backup etc/hostname echo pxe-server | sudo tee /etc/hostname &>/dev/null -tar -ravf $BACKUP_FILE -C / etc/hosts +do_backup etc/hosts sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts From 5a0972da868065670d2f53a03017207d4ea7fa0e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 2 Aug 2020 11:17:52 +0200 Subject: [PATCH 352/694] added do_backup() --- install-pxe-server_pass2.sh | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index 8a9bdc7..a700d5b 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -10,7 +10,14 @@ script_dir=$(dirname "$BASH_SOURCE") + +########################################################################## BACKUP_FILE=backup.tar.xz +BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// + +do_backup() { + tar -ravf "$BACKUP_FILE" --transform="$BACKUP_TRANSFORM" -C / "$1" &>/dev/null +} ########################################################################## @@ -67,7 +74,7 @@ handle_hostapd() { ###################################################################### grep -q mod_install_server /etc/hostapd/hostapd.conf || { echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/hostapd/hostapd.conf + do_backup etc/hostapd/hostapd.conf cat << EOF | sudo tee /etc/hostapd/hostapd.conf &>/dev/null ######################################## #/etc/hostapd/hostapd.conf @@ -146,7 +153,7 @@ EOF ###################################################################### grep -q mod_install_server /etc/default/hostapd || { echo -e "\e[36m setup hostapd for wlan access point\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/default/hostapd + do_backup etc/default/hostapd cat << EOF | sudo tee /etc/default/hostapd &>/dev/null ######################################## #/etc/default/hostapd @@ -173,7 +180,7 @@ handle_dhcpcd() { ################################################################## grep -q mod_install_server /etc/dhcpcd.conf || { echo -e "\e[36m setup dhcpcd.conf\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/dhcpcd.conf + do_backup etc/dhcpcd.conf cat << EOF | sudo tee -a /etc/dhcpcd.conf &>/dev/null ######################################## @@ -214,7 +221,7 @@ handle_dnsmasq() { ###################################################################### [ -f /etc/dnsmasq.d/10-pxe-server ] || { echo -e "\e[36m setup dnsmasq for pxe\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/dnsmasq.d/10-pxe-server + do_backup etc/dnsmasq.d/10-pxe-server cat << EOF | sudo tee /etc/dnsmasq.d/10-pxe-server &>/dev/null ######################################## #/etc/dnsmasq.d/pxeboot @@ -337,7 +344,7 @@ handle_samba() { ###################################################################### grep -q mod_install_server /etc/samba/smb.conf 2> /dev/null || ( \ echo -e "\e[36m setup samba\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/samba/smb.conf + do_backup etc/samba/smb.conf #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; cat << EOF | sudo tee /etc/samba/smb.conf &>/dev/null ######################################## @@ -1673,7 +1680,7 @@ handle_optional() { ## network nat grep -q mod_install_server /etc/sysctl.conf 2> /dev/null || { echo -e "\e[36m setup sysctrl for nat\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/sysctl.conf + do_backup etc/sysctl.conf cat << EOF | sudo tee -a /etc/sysctl.conf &>/dev/null ######################################## ## mod_install_server @@ -1716,7 +1723,7 @@ handle_chrony() { ## chrony grep -q mod_install_server /etc/chrony/chrony.conf 2> /dev/null || { echo -e "\e[36m setup chrony\e[0m"; - tar -ravf $BACKUP_FILE -C / etc/chrony/chrony.conf + do_backup etc/chrony/chrony.conf cat << EOF | sudo tee /etc/chrony/chrony.conf &>/dev/null ######################################## ## mod_install_server From f976504565b468af04419df429944af5d7709477 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 3 Aug 2020 11:48:05 +0200 Subject: [PATCH 353/694] updated url (debian, sysrescue) --- p2-include-url.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 780dc4d..afcddf6 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-07-28 +# v 2020-08-03 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -73,14 +73,14 @@ CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-i686.iso -DEBIAN_KVER=4.19.0-9 +DEBIAN_KVER=4.19.0-10 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.4.0-amd64-lxde.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.5.0-amd64-xfce.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.4.0-i386-lxde.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.5.0-i386-xfce.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -205,7 +205,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.6/systemrescuecd-amd64-6.1.6.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.7/systemrescuecd-amd64-6.1.7.iso TAILS_X64=tails-x64 From 18e6fed0b084a9364927bf67c901c0341ffb0db1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 3 Aug 2020 12:40:27 +0200 Subject: [PATCH 354/694] updated url --- p2-include-url.sh | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index afcddf6..75b13e9 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -17,42 +17,45 @@ fi # https://github.com/pebakery/pebakery # arch https://www.archlinux.org/download/ # fedora https://getfedora.org/en/workstation/download/ -# ubuntu http://releases.ubuntu.com/ +# ubuntu https://releases.ubuntu.com/ # http://cdimage.ubuntu.com/ubuntu/releases/ -# http://cdimage.ubuntu.com/daily-live/ +# http://cdimage.ubuntu.com/daily-live/pending/ # ubuntu studio http://cdimage.ubuntu.com/ubuntustudio/releases/ # http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ # lubuntu http://cdimage.ubuntu.com/lubuntu/releases/ # http://cdimage.ubuntu.com/lubuntu/daily-live/pending/ # debian https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ # https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ -# devuan https://files.devuan.org/devuan_ascii/desktop-live/ +# devuan https://files.devuan.org/devuan_beowulf/desktop-live/ # gnuradio https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment +# http://eu2-dist.gnuradio.org/ # parrotsec https://cdimage.parrotsec.org/parrot/iso/ -# kali http://cdimage.kali.org/kali-images/current/ -# http://cdimage.kali.org/kali-images/kali-weekly/ -# pentoo https://www.pentoo.ch/isos/Pentoo_Full_amd64_hardened/ -# https://www.pentoo.ch/isos/Beta/Pentoo_Full_amd64_hardened/ +# kali https://cdimage.kali.org/kali-images/current/ +# https://cdimage.kali.org/kali-images/kali-weekly/ +# pentoo https://www.pentoo.ch/isos/latest-iso-symlinks/ # deft http://www.deftlinux.net/ # clonezilla https://sourceforge.net/projects/clonezilla/files/clonezilla_live_stable/ # system rescue cd https://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/ -# http://beta.system-rescue-cd.org/ +# https://system-rescue-cd.org/ # tiny core http://tinycorelinux.net/downloads.html -# rpdesktop https://downloads.raspberrypi.org/rpd_x86/images/ +# rpdesktop https://downloads.raspberrypi.org/rpd_x86/images/?C=M;O=D # gentoo https://www.gentoo.org/downloads/ # http://distfiles.gentoo.org/releases/amd64/ # http://distfiles.gentoo.org/releases/x86/ # opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ +# https://download.opensuse.org/tumbleweed/iso/?C=M;O=D # centos https://www.centos.org/download/ # tail https://tails.boum.org/install/download/ # knoppix http://www.knopper.net/knoppix-mirrors/index-en.html # kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk # bitdefender https://download.bitdefender.com/rescue_cd/latest/ +# Bitdefender Rescue CD reached End of Life on 2019-08-01 +# https://www.bitdefender.com/consumer/support/answer/10131/ # ESET SysRescue Live https://www.eset.com/int/download-utilities/#content-c10295 # linuxmint https://www.linuxmint.com/download.php # https://mirrors.edge.kernel.org/linuxmint/stable/ # android x86 https://osdn.net/projects/android-x86/ -# rpi-raspbian https://downloads.raspberrypi.org/raspbian/images/ +# rpi-raspbian https://downloads.raspberrypi.org/raspios_armhf/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ @@ -73,6 +76,7 @@ CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-i686.iso + DEBIAN_KVER=4.19.0-10 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.5.0-amd64-xfce.iso @@ -231,7 +235,7 @@ UBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-19.09.00.img.xz +UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-20.07.00.img.xz UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 @@ -269,7 +273,7 @@ DESINFECT_X86=desinfect-x86 DESINFECT_X86_URL= -UBUNTU_NONPAE=ubuntu-nopae +UBUNTU_NONPAE=ubuntu-nonpae UBUNTU_NONPAE_URL= @@ -279,11 +283,10 @@ WIN_PE_X86_URL= #broken# ANDROID_X86=android-x86 -ANDROID_X86_URL=https://osdn.net/frs/redir.php?f=android-x86%2F69704%2Fandroid-x86-8.1-r2.iso - +ANDROID_X86_URL=https://dotsrc.dl.osdn.net/osdn/android-x86/71931/android-x86_64-9.0-r2.iso CENTOS_X64=centos-x64 -CENTOS_X64_URL=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-1908.iso +CENTOS_X64_URL=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-2003.iso CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.txt CENTOS_X64_SUM_TYPE=sha256 @@ -303,17 +306,17 @@ PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip RPD_BASIC=rpi-raspbian-basic RPD_BASIC_URL=https://downloads.raspberrypi.org/raspios_armhf_latest -RPD_BASIC_SUM=https://www.raspberrypi.org/downloads/raspbian/ +RPD_BASIC_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-os/ RPD_BASIC_SUM_TYPE=sha256 RPD_FULL=rpi-raspbian-full RPD_FULL_URL=https://downloads.raspberrypi.org/raspios_full_armhf_latest -RPD_FULL_SUM=https://www.raspberrypi.org/downloads/raspbian/ +RPD_FULL_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-os/ RPD_FULL_SUM_TYPE=sha256 RPD_LITE=rpi-raspbian-lite RPD_LITE_URL=https://downloads.raspberrypi.org/raspios_lite_armhf_latest -RPD_LITE_SUM=https://www.raspberrypi.org/downloads/raspbian/ +RPD_LITE_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-os/ RPD_LITE_SUM_TYPE=sha256 From 1b10700408ffd28c9a3563b5820328be3cf56aa9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 18 Aug 2020 14:45:13 +0200 Subject: [PATCH 355/694] updated url (parrot) --- p2-include-url.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 75b13e9..f5c462a 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-08-03 +# v 2020-08-18 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -185,13 +185,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9.1/Parrot-security-4.9.1_x64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9.1/sha256.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.10_amd64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.9.1/Parrot-home-4.9.1_x64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.9.1/sha256.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.10_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 55b7209acb4b7bd2d5ed5ac3f2ee93480f386eb3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 12:37:44 +0200 Subject: [PATCH 356/694] updated url (kali) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index f5c462a..6055ecb 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-08-18 +# v 2020-08-20 ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -126,7 +126,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 5a7b84e17b030e468a0e3ac7e656aedf3d54cd17 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 12:54:05 +0200 Subject: [PATCH 357/694] moved some http to https --- p2-include-url.sh | 58 +++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 6055ecb..216b02e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -18,12 +18,12 @@ fi # arch https://www.archlinux.org/download/ # fedora https://getfedora.org/en/workstation/download/ # ubuntu https://releases.ubuntu.com/ -# http://cdimage.ubuntu.com/ubuntu/releases/ -# http://cdimage.ubuntu.com/daily-live/pending/ -# ubuntu studio http://cdimage.ubuntu.com/ubuntustudio/releases/ -# http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ -# lubuntu http://cdimage.ubuntu.com/lubuntu/releases/ -# http://cdimage.ubuntu.com/lubuntu/daily-live/pending/ +# https://cdimage.ubuntu.com/ubuntu/releases/ +# https://cdimage.ubuntu.com/daily-live/pending/ +# ubuntu studio https://cdimage.ubuntu.com/ubuntustudio/releases/ +# https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ +# lubuntu https://cdimage.ubuntu.com/lubuntu/releases/ +# https://cdimage.ubuntu.com/lubuntu/daily-live/pending/ # debian https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ # https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ # devuan https://files.devuan.org/devuan_beowulf/desktop-live/ @@ -46,7 +46,7 @@ fi # https://download.opensuse.org/tumbleweed/iso/?C=M;O=D # centos https://www.centos.org/download/ # tail https://tails.boum.org/install/download/ -# knoppix http://www.knopper.net/knoppix-mirrors/index-en.html +# knoppix https://www.knopper.net/knoppix-mirrors/index-en.html # kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk # bitdefender https://download.bitdefender.com/rescue_cd/latest/ # Bitdefender Rescue CD reached End of Life on 2019-08-01 @@ -142,28 +142,28 @@ KNOPPIX_X86_SUM_TYPE=sha256 LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/focal-desktop-amd64.iso -LUBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/focal-desktop-amd64.iso +LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso -LUBUNTU_LTS_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso -LUBUNTU_X64_SUM=http://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 -LUBUNTU_LTS_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.3-desktop-i386.iso -LUBUNTU_LTS_X86_SUM=http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS +LUBUNTU_LTS_X86_URL=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.3-desktop-i386.iso +LUBUNTU_LTS_X86_SUM=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS LUBUNTU_LTS_X86_SUM_TYPE=sha256 LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso -LUBUNTU_X86_SUM=http://cdimage.ubuntu.com/lubuntu/releases/18.10/release/SHA256SUMS +LUBUNTU_X86_URL=https://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso +LUBUNTU_X86_SUM=https://cdimage.ubuntu.com/lubuntu/releases/18.10/release/SHA256SUMS LUBUNTU_X86_SUM_TYPE=sha256 @@ -230,8 +230,8 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=http://cdimage.ubuntu.com/daily-live/pending/focal-desktop-amd64.iso -UBUNTU_DAILY_X64_SUM=http://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/focal-desktop-amd64.iso +UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts @@ -240,28 +240,28 @@ UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=http://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=http://releases.ubuntu.com/20.04/SHA256SUMS +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/focal-dvd-amd64.iso -UBUNTU_STUDIO_DAILY_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/focal-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=http://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/ubuntustudio-20.04-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=http://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/ubuntustudio-20.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=http://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso -UBUNTU_X64_SUM=http://releases.ubuntu.com/20.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso -UBUNTU_LTS_X86_SUM=http://releases.ubuntu.com/16.04/SHA256SUMS +UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso +UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 From 7a9824e26df2cb0325c5365f0d3cabb6ffba9d8b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 13:17:32 +0200 Subject: [PATCH 358/694] updated url (ubuntu) --- p2-include-url.sh | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 216b02e..741c1b7 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -142,30 +142,25 @@ KNOPPIX_X86_SUM_TYPE=sha256 LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/focal-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/groovy-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.1-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04-desktop-amd64.iso +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.1-desktop-amd64.iso LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 -LUBUNTU_LTS_X86_URL=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.3-desktop-i386.iso +LUBUNTU_LTS_X86_URL=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.5-desktop-i386.iso LUBUNTU_LTS_X86_SUM=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS LUBUNTU_LTS_X86_SUM_TYPE=sha256 -LUBUNTU_X86=lubuntu-x86 -LUBUNTU_X86_URL=https://cdimage.ubuntu.com/lubuntu/releases/18.10/release/lubuntu-18.10-desktop-i386.iso -LUBUNTU_X86_SUM=https://cdimage.ubuntu.com/lubuntu/releases/18.10/release/SHA256SUMS -LUBUNTU_X86_SUM_TYPE=sha256 - MINT_X64=mint-x64 MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20/linuxmint-20-cinnamon-64bit.iso @@ -240,22 +235,22 @@ UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/focal-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/groovy-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/ubuntustudio-20.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/ubuntustudio-20.04.1-dvd-amd64.iso UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso +UBUNTU_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso UBUNTU_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 From 792c48fe35b2824046783a0ed45d6a4448f7d6df Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 13:57:27 +0200 Subject: [PATCH 359/694] updated url (ubuntu) --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 741c1b7..8264c0d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -225,7 +225,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/focal-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/groovy-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 From 6104d0228e4e9d64e75f9b69489c935d5986fddd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 14:02:23 +0200 Subject: [PATCH 360/694] check broken links --- p2-include-url.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2-include-url.sh b/p2-include-url.sh index 8264c0d..f1a9146 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -11,6 +11,9 @@ fi # v 2020-08-20 +# check broken links +# for i in $(grep URL= ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*URL=//g); do wget --quiet --timeout=5 --spider $i; echo $? = $i; done + ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install # https://www.heise.de/ct/artikel/c-t-Notfall-Windows-2020-4514169.html From a4689acf17ae453c5dde7b56e5cce8702bc1106e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 14:05:28 +0200 Subject: [PATCH 361/694] Update p2-include-url.sh --- p2-include-url.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/p2-include-url.sh b/p2-include-url.sh index f1a9146..60cefd0 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -13,6 +13,7 @@ fi # check broken links # for i in $(grep URL= ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*URL=//g); do wget --quiet --timeout=5 --spider $i; echo $? = $i; done +# for i in $(grep SUM= ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*SUM=//g); do wget --quiet --timeout=5 --spider $i; echo $? = $i; done ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From e8f6ea95c679a51d42b7355b3093c4740e6af27e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 14:08:59 +0200 Subject: [PATCH 362/694] Update p2-include-url.sh --- p2-include-url.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 60cefd0..e005c91 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -195,12 +195,11 @@ PARROT_LITE_X64_SUM_TYPE=sha256 PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Beta/pentoo-full-beta-amd64-hardened-latest.iso +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo-full-beta-amd64-hardened-latest.iso PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Release/pentoo-full-amd64-hardened-latest.iso - RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest RPDESKTOP_X86_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ From 82a253c5377e171958b84660f1a64d33b9347ecf Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 14:11:29 +0200 Subject: [PATCH 363/694] Update p2-include-url.sh --- p2-include-url.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/p2-include-url.sh b/p2-include-url.sh index e005c91..0ad9160 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -200,6 +200,7 @@ PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo- PENTOO_X64=pentoo-x64 PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Release/pentoo-full-amd64-hardened-latest.iso + RPDESKTOP_X86=rpdesktop-x86 RPDESKTOP_X86_URL=https://downloads.raspberrypi.org/rpd_x86_latest RPDESKTOP_X86_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ From 6d5df85317bb7a18d725a61554eb9f32656e3751 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Aug 2020 14:19:09 +0200 Subject: [PATCH 364/694] Update p2-include-url.sh --- p2-include-url.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 0ad9160..acc4c94 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -11,9 +11,8 @@ fi # v 2020-08-20 -# check broken links -# for i in $(grep URL= ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*URL=//g); do wget --quiet --timeout=5 --spider $i; echo $? = $i; done -# for i in $(grep SUM= ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*SUM=//g); do wget --quiet --timeout=5 --spider $i; echo $? = $i; done +# check broken url +# for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From d62856804c4a0b51d649ae244a7c3bb70e980e1f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 Aug 2020 22:17:23 +0200 Subject: [PATCH 365/694] updated url (tails) --- p2-include-url.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index acc4c94..43de9d9 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-08-20 +# v 2020-08-27 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -211,8 +211,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.9/tails-amd64-4.9.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.9/tails-amd64-4.9.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.10/tails-amd64-4.10.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.10/tails-amd64-4.10.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -283,6 +283,7 @@ WIN_PE_X86_URL= ANDROID_X86=android-x86 ANDROID_X86_URL=https://dotsrc.dl.osdn.net/osdn/android-x86/71931/android-x86_64-9.0-r2.iso + CENTOS_X64=centos-x64 CENTOS_X64_URL=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-2003.iso CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.txt From a81e57e95363d45a0accbb0abd5553b53fba31d3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 23 Sep 2020 21:39:21 +0200 Subject: [PATCH 366/694] updated url (tails) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 43de9d9..eb2ab80 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-08-27 +# v 2020-09-23 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -211,8 +211,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.10/tails-amd64-4.10.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.10/tails-amd64-4.10.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.11/tails-amd64-4.11.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.11/tails-amd64-4.11.iso.sig TAILS_X64_SUM_TYPE=pgp From 474003521d455b56030f19c9f31db3678d849d4e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 23 Sep 2020 22:09:56 +0200 Subject: [PATCH 367/694] unhandle sysrescue --- p2-include-handle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 4ec779c..10817cf 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -44,7 +44,7 @@ _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; #_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -handle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; +_unhandle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; handle_iso $TAILS_X64 $TAILS_X64_URL; _unhandle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; From 5ae79745f8795a8cb3b57d6e5a7ac347cbfc00e0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 1 Oct 2020 19:22:09 +0200 Subject: [PATCH 368/694] updated url (debian, sysrescue) --- p2-include-url.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index eb2ab80..8f7b424 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-09-23 +# v 2020-10-01 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -80,14 +80,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-i686.iso -DEBIAN_KVER=4.19.0-10 +DEBIAN_KVER=4.19.0-11 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.5.0-amd64-xfce.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.6.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.5.0-i386-xfce.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.6.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -207,7 +207,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.7/systemrescuecd-amd64-6.1.7.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.8/systemrescuecd-amd64-6.1.8.iso TAILS_X64=tails-x64 From 9a5e547965b566b503f7ff437c8fd06befd26779 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 22 Oct 2020 19:48:30 +0200 Subject: [PATCH 369/694] updated url (sysrescue, tails) --- p2-include-url.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 8f7b424..c3d2a4a 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-10-01 +# v 2020-10-22 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -207,12 +207,11 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/6.1.8/systemrescuecd-amd64-6.1.8.iso - +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.00/systemrescue-7.00-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.11/tails-amd64-4.11.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.11/tails-amd64-4.11.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.12/tails-amd64-4.12.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.12/tails-amd64-4.12.iso.sig TAILS_X64_SUM_TYPE=pgp From c50c03a10f63f5246421794f1034c53533d34a7c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Oct 2020 17:00:20 +0200 Subject: [PATCH 370/694] updated url (ubuntu, lubuntu, ubuntu-studio) --- p2-include-url.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index c3d2a4a..6063e81 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-10-22 +# v 2020-10-23 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -155,8 +155,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.1-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.10/release/lubuntu-20.10-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -247,13 +247,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/ubuntustudio-20.04.1-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/20.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/20.10/release/ubuntustudio-20.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/20.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/20.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 78b2dba03047a993d80c9846e7552a4653f5c646 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 27 Oct 2020 22:30:21 +0100 Subject: [PATCH 371/694] updated url (frdora) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 6063e81..fe4fa2e 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-10-23 +# v 2020-10-27 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -119,8 +119,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/32/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-32-1.6.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/32/Workstation/x86_64/iso/Fedora-Workstation-32-1.6-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/33/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-33-1.2.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/33/Workstation/x86_64/iso/Fedora-Workstation-33-1.2-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 From d505c13a18e43a52f662f560b21ca687fd3eedb6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 19 Nov 2020 20:44:32 +0100 Subject: [PATCH 372/694] updated url (clonezilla, kali, tails) --- p2-include-url.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index fe4fa2e..3dcb428 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-10-27 +# v 2020-11-19 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -75,9 +75,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.6.7-28/clonezilla-live-2.6.7-28-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-i686.iso DEBIAN_KVER=4.19.0-11 @@ -129,7 +129,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.4-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -210,8 +210,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.00/systemrescue-7.00-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.12/tails-amd64-4.12.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.12/tails-amd64-4.12.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.13/tails-amd64-4.13.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.13/tails-amd64-4.13.iso.sig TAILS_X64_SUM_TYPE=pgp From 90eecf75bdba881dde43cc8e848364d2877bc229 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 24 Nov 2020 13:39:00 +0100 Subject: [PATCH 373/694] updated url (pentoo, sysrescue) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 3dcb428..8a7011a 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-11-19 +# v 2020-11-24 # check broken url # for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -194,10 +194,10 @@ PARROT_LITE_X64_SUM_TYPE=sha256 PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo-full-beta-amd64-hardened-latest.iso +PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo-full-daily-amd64-hardened-latest.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/Release/pentoo-full-amd64-hardened-latest.iso +PENTOO_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo-full-daily-amd64-hardened-latest.iso RPDESKTOP_X86=rpdesktop-x86 @@ -207,7 +207,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.00/systemrescue-7.00-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.01/systemrescue-7.01-amd64.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.13/tails-amd64-4.13.iso From 601c3ab22f73279baef15a706b84d4bdce969f1b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 24 Nov 2020 13:59:34 +0100 Subject: [PATCH 374/694] updated url ((*ubuntu daily) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 8a7011a..6edadd3 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -12,7 +12,7 @@ fi # v 2020-11-24 # check broken url -# for i in $(grep http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep =http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -145,7 +145,7 @@ KNOPPIX_X86_SUM_TYPE=sha256 LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/groovy-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/hirsute-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -227,7 +227,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/groovy-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/hirsute-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -242,7 +242,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/groovy-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/hirsute-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From baf1f56ec0cc0a47a91c497230c4a126db299775 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 24 Nov 2020 14:03:36 +0100 Subject: [PATCH 375/694] Update p2-include-url.sh --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 6edadd3..6861031 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -12,7 +12,7 @@ fi # v 2020-11-24 # check broken url -# for i in $(grep =http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done ########################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From 689222cdc4a907f0e44286cdaded9846b6c0bc01 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 30 Nov 2020 07:04:34 +0100 Subject: [PATCH 376/694] added CUSTOM_LANG_LOCALE --- p2-include-var.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/p2-include-var.sh b/p2-include-var.sh index bc71623..3053dc9 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -22,6 +22,7 @@ fi CUSTOM_LANG=de CUSTOM_LANG_LONG=de_DE CUSTOM_LANG_UPPER=DE +CUSTOM_LANG_LOCALE=de_DE.UTF-8 CUSTOM_LANG_WRITTEN=German CUSTOM_LANG_EXT=de-latin1-nodeadkeys CUSTOM_TIMEZONE=Europe/Berlin From fdffe0cebe9a9e08d76b7364f755f37e8bd950c8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 30 Nov 2020 07:12:23 +0100 Subject: [PATCH 377/694] added CUSTOM_LANG_LOCALE --- p2-include-menu.sh | 74 +++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 0a3c390..6e3554c 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -39,7 +39,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Clonezilla x64 KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x64 User: user, Password: live @@ -58,7 +58,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Clonezilla x86 KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x86 User: user, Password: live @@ -77,7 +77,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Debian x64 (testing) KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/initrd.img-$DEBIAN_TESTING_KVER-amd64 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live (testing) User: user, Password: live @@ -96,7 +96,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Debian x64 KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live LXDE User: user, Password: live @@ -115,7 +115,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Debian x86 KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE User: user, Password: live @@ -134,7 +134,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DEFT x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT x64 Live User: root, Password: toor @@ -153,7 +153,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DEFT Zero x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor @@ -172,7 +172,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Devuan x64 KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Devuan x64 Live User: devuan @@ -191,7 +191,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Devuan x86 KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Devuan x86 Live User: devuan @@ -210,7 +210,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL ESET SysRescue Live KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ESET SysRescue Live ENDTEXT @@ -231,7 +231,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Fedora x64 KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -250,7 +250,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL GNU Radio x64 KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to GNU Radio x64 Live User: ubuntu @@ -269,7 +269,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Kali x64 KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Kali x64 Live User: kali, Password: kali @@ -336,7 +336,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -355,7 +355,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu LTS x64 Live User: lubuntu @@ -374,7 +374,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu LTS x86 Live User: lubuntu @@ -393,7 +393,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -412,7 +412,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -431,7 +431,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL linux-mint x64 KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to linux-mint x64 Live User: @@ -488,7 +488,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Parrot Full x64 KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -507,7 +507,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Parrot Lite x64 KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live @@ -564,7 +564,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Raspberry Pi Desktop KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LONG.UTF-8 keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Raspberry Pi Desktop User: pi, Password: raspberry @@ -699,7 +699,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -740,7 +740,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -759,7 +759,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu @@ -778,7 +778,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Daily-Live User: ubuntu @@ -797,7 +797,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu Studio x64 Live User: ubuntu @@ -816,7 +816,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -835,7 +835,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x86 Live User: ubuntu @@ -859,7 +859,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL desinfect x86 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x86 User: desinfect @@ -878,7 +878,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL desinfect x64 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x64 User: desinfect @@ -897,7 +897,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu non-PAE x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/language=$CUSTOM_LANG console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu non-PAE x86 Live User: ubuntu @@ -997,21 +997,21 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL CentOS x64 (broken) KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img - #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE # mount.nfs: mountpoint /sysroot is not a directory - #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE # Warning: Could not boot. # Warning: /dev/mapper/live-rw does not exist # Starting Dracut Emergency Shell - APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LONG.UTF-8 + APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE TEXT HELP Boot to CentOS LiveGNOME From 58492799bfdd06f9c88e1b2181c5b85ef7dbafd1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 30 Nov 2020 08:05:37 +0100 Subject: [PATCH 378/694] fixed resolving issue with ubuntu like distros added ip=dhcp --- p2-include-menu.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 6e3554c..d3681d7 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -134,7 +134,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DEFT x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT x64 Live User: root, Password: toor @@ -153,7 +153,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DEFT Zero x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor @@ -355,7 +355,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu LTS x64 Live User: lubuntu @@ -374,7 +374,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to lubuntu LTS x86 Live User: lubuntu @@ -740,7 +740,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -759,7 +759,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu @@ -835,7 +835,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu x86 Live User: ubuntu @@ -859,7 +859,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL desinfect x86 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x86 User: desinfect @@ -878,7 +878,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL desinfect x64 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to ct desinfect x64 User: desinfect @@ -897,7 +897,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu non-PAE x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN TEXT HELP Boot to Ubuntu non-PAE x86 Live User: ubuntu From 07447d3a86ffe5697361d8a2263e930bf7da8dae Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 30 Nov 2020 08:57:57 +0100 Subject: [PATCH 379/694] added CUSTOM_LANG_LOCALE --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a46361..9033180 100644 --- a/README.md +++ b/README.md @@ -227,11 +227,12 @@ and another issue is, overlayfs can't handle **vfat** partitions as source (lowe some of the PXE-menu entries has additional parameters, that lets the Live systems boot with German language (keyboard layout). if you don't like or want, remove those additional parameters just behind the ' --' in the menu entries -to easily change the language to your favorite ones, there are variables on the top part of the script. +to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var.sh** script. ``` CUSTOM_LANG=de CUSTOM_LANG_LONG=de_DE CUSTOM_LANG_UPPER=DE +CUSTOM_LANG_LOCALE=de_DE.UTF-8 CUSTOM_LANG_WRITTEN=German CUSTOM_LANG_EXT=de-latin1-nodeadkeys CUSTOM_TIMEZONE=Europe/Berlin From 70424a013f267fc0179b9fb5cee7b7316bd150c8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Dec 2020 15:07:51 +0100 Subject: [PATCH 380/694] updated url (debian) --- p2-include-url.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 6861031..0605b7b 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-11-24 +# v 2020-12-08 # check broken url # for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -80,14 +80,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-i686.iso -DEBIAN_KVER=4.19.0-11 +DEBIAN_KVER=4.19.0-12 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.6.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.7.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.6.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.7.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From ebdd8a1066c1e652785c354720a8f874218ab8a5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Dec 2020 23:46:56 +0100 Subject: [PATCH 381/694] updated kernel version for debian --- p2-include-url.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 0605b7b..1bddca6 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -80,7 +80,7 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-i686.iso -DEBIAN_KVER=4.19.0-12 +DEBIAN_KVER=4.19.0-13 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.7.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS From 3b44281c3829e5a1a45b8adef7beda05e6c9a8df Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Dec 2020 22:25:19 +0100 Subject: [PATCH 382/694] added DragonOS --- p2-include-menu.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index d3681d7..c9920e1 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -200,6 +200,25 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]; then + echo -e "\e[36m add $UBUNTU_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $DRAGONOS_X64 + MENU LABEL DragonOS x64 + KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz + APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + TEXT HELP + Boot to DragonOS x64 Live + User: live + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]; then From 109005505527f85cd84b57323b112c811ade8916 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Dec 2020 22:26:31 +0100 Subject: [PATCH 383/694] added DragonOS --- p2-include-url.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 1bddca6..a746bdf 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-12-08 +# v 2020-12-17 # check broken url # for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -114,6 +114,10 @@ DEVUAN_X86_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.t DEVUAN_X86_SUM_TYPE=sha256 +DRAGONOS_X64=dragonos-x64 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR9.iso + + ESET_SYSRESCUE_X86=eset-rescue-x86 ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso @@ -210,8 +214,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.01/systemrescue-7.01-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.13/tails-amd64-4.13.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.13/tails-amd64-4.13.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.14/tails-amd64-4.14.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.14/tails-amd64-4.14.iso.sig TAILS_X64_SUM_TYPE=pgp From 75dbaa0854c39f3e740ee1440333351f3bfe8660 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Dec 2020 22:27:36 +0100 Subject: [PATCH 384/694] added DragonOS --- p2-include-handle.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 10817cf..bccb723 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -25,6 +25,7 @@ handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; _unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; _unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; _unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; +handle_iso $DRAGONOS_X64 $DRAGONOS_X64_URL; _unhandle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; handle_iso $FEDORA_X64 $FEDORA_X64_URL; _unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; From d6a8d0221b4f1a5a614b54d1b854c8be1b116681 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Dec 2020 22:33:28 +0100 Subject: [PATCH 385/694] added DragonOS --- p2-include-menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index c9920e1..eb4019a 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -203,7 +203,7 @@ fi #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]; then - echo -e "\e[36m add $UBUNTU_X64\e[0m"; + echo -e "\e[36m add $DRAGONOS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DRAGONOS_X64 From 07f92061fe6ff08c354c6be2d2706006a9f1b914 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 18 Dec 2020 11:20:32 +0100 Subject: [PATCH 386/694] added BlackArch --- p2-include-handle.sh | 1 + p2-include-menu.sh | 20 ++++++++++++++++++++ p2-include-url.sh | 7 ++++++- 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index bccb723..cde2a50 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -19,6 +19,7 @@ fi ## if you want to delete the entire iso and its nfs export to free disk space ########################################################################## ########################################################################## +handle_iso $BLACKARCH_X64 $BLACKARCH_X64_URL; _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; _unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; diff --git a/p2-include-menu.sh b/p2-include-menu.sh index eb4019a..a3b8a80 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -29,6 +29,26 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]; then + echo -e "\e[36m add $BLACKARCH_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $BLACKARCH_X64 + MENU LABEL BlackArch x64 + KERNEL $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux + INITRD $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/intel-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/amd-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/initramfs-linux.img + APPEND ro archisobasedir=blackarch archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$BLACKARCH_X64 copytoram=n + SYSAPPEND 3 + TEXT HELP + Boot to BlackArch Linux full medium (x86_64, UEFI) + User: root, Password: blackarch + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ && [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then diff --git a/p2-include-url.sh b/p2-include-url.sh index a746bdf..ad5b46c 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-12-17 +# v 2020-12-18 # check broken url # for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -19,6 +19,7 @@ fi # https://www.heise.de/ct/artikel/c-t-Notfall-Windows-2020-4514169.html # https://github.com/pebakery/pebakery # arch https://www.archlinux.org/download/ +# blackarch https://blackarch.org/ # fedora https://getfedora.org/en/workstation/download/ # ubuntu https://releases.ubuntu.com/ # https://cdimage.ubuntu.com/ubuntu/releases/ @@ -80,6 +81,10 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-i686.iso +BLACKARCH_X64=blackarch-x64 +BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2020.12.01-x86_64.iso + + DEBIAN_KVER=4.19.0-13 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.7.0-amd64-cinnamon.iso From e121a412dee6452f74de9f2fc13bef668e7003c2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Dec 2020 18:51:02 +0100 Subject: [PATCH 387/694] added win-pe-x64 --- p2-include-menu.sh | 54 +++++++++++++++++++++++++++++++++++++++++++++- p2-include-url.sh | 3 +++ 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index a3b8a80..daf0c08 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -986,7 +986,7 @@ if [ -f "$FILE_MENU" ] \ echo -e "\e[36m add $WIN_PE_X86 (WIM)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $WIN_PE_X86-pxe + LABEL $WIN_PE_X86-wim MENU LABEL Windows PE x86 (WIM) COM32 linux.c32 wimboot APPEND initrdfile=$FILE_BASE$NFS_ETH0/$WIN_PE_X86/Boot/BCD,$FILE_BASE$NFS_ETH0/$WIN_PE_X86/Boot/boot.sdi,$FILE_BASE$NFS_ETH0/$WIN_PE_X86/sources/boot.wim @@ -997,6 +997,58 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then + echo -e "\e[36m add $WIN_PE_X64 (PXE)\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $WIN_PE_X64-pxe + MENU LABEL Windows PE x64 (PXE) + PXE pxeboot.n12 + TEXT HELP + Boot to Windows PE 64bit + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_ISO/$WIN_PE_X64.iso" ]; then + echo -e "\e[36m add $WIN_PE_X64 (ISO)\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $WIN_PE_X64-iso + MENU LABEL Windows PE x64 (ISO) + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$WIN_PE_X64.iso + TEXT HELP + Boot to Windows PE 64bit ISO ~400MB + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [ -f "$FILE_MENU" ] \ +&& [ -f "$DST_TFTP_ETH0/$1/wimboot" ] \ +&& [ -f "$DST_NFS_ETH0/$WIN_PE_X64/sources/boot.wim" ]; then + echo -e "\e[36m add $WIN_PE_X64 (WIM)\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $WIN_PE_X64-wim + MENU LABEL Windows PE x64 (WIM) + COM64 linux.c64 wimboot + APPEND initrdfile=$FILE_BASE$NFS_ETH0/$WIN_PE_X64/Boot/BCD,$FILE_BASE$NFS_ETH0/$WIN_PE_X64/Boot/boot.sdi,$FILE_BASE$NFS_ETH0/$WIN_PE_X64/sources/boot.wim + TEXT HELP + Boot to Windows PE 64bit + ENDTEXT +EOF +fi +#=========== END =========== + ########################################################################## diff --git a/p2-include-url.sh b/p2-include-url.sh index ad5b46c..822ed3d 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -286,6 +286,9 @@ UBUNTU_NONPAE_URL= WIN_PE_X86=win-pe-x86 WIN_PE_X86_URL= +WIN_PE_X64=win-pe-x64 +WIN_PE_X64_URL= + #broken# ANDROID_X86=android-x86 From 48ef2656bc03506ab32774b0a2c28d4d7ae936f2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 3 Jan 2021 19:42:11 +0100 Subject: [PATCH 388/694] iso raw --- p2-include-menu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-menu.sh b/p2-include-menu.sh index daf0c08..7be96c0 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -970,7 +970,7 @@ if [ -f "$FILE_MENU" ] \ LABEL $WIN_PE_X86-iso MENU LABEL Windows PE x86 (ISO) KERNEL memdisk - APPEND iso + APPEND iso raw INITRD $FILE_BASE$ISO/$WIN_PE_X86.iso TEXT HELP Boot to Windows PE 32bit ISO ~400MB @@ -1022,7 +1022,7 @@ if [ -f "$FILE_MENU" ] \ LABEL $WIN_PE_X64-iso MENU LABEL Windows PE x64 (ISO) KERNEL memdisk - APPEND iso + APPEND iso raw INITRD $FILE_BASE$ISO/$WIN_PE_X64.iso TEXT HELP Boot to Windows PE 64bit ISO ~400MB From a36a8650c6cdb0bfbe8326ad5f0dd397251da76d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Jan 2021 08:32:14 +0100 Subject: [PATCH 389/694] moved Tails to broken --- p2-include-handle.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/p2-include-handle.sh b/p2-include-handle.sh index cde2a50..370eb05 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -19,7 +19,7 @@ fi ## if you want to delete the entire iso and its nfs export to free disk space ########################################################################## ########################################################################## -handle_iso $BLACKARCH_X64 $BLACKARCH_X64_URL; +_unhandle_iso $BLACKARCH_X64 $BLACKARCH_X64_URL; _unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; _unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; @@ -47,8 +47,7 @@ _unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; #_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; #_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; _unhandle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; -handle_iso $TAILS_X64 $TAILS_X64_URL; -_unhandle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; +handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; #_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; _unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; @@ -62,10 +61,12 @@ handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; _unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; +handle_iso $WIN_PE_X64 $WIN_PE_X64_URL; #broken# _unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; _unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; +handle_iso $TAILS_X64 $TAILS_X64_URL; #discontinued# _unhandle_iso $DEFT_X64 $DEFT_X64_URL; #discontinued# _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; From 0f04f0e98d1ca26cfdffc914675904a35c3895be Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 Jan 2021 05:59:39 +0100 Subject: [PATCH 390/694] updated url (mint) --- p2-include-url.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 822ed3d..33398de 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2020-12-18 +# v 2021-01-07 # check broken url # for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -175,8 +175,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20/linuxmint-20-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20.1/linuxmint-20.1-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20.1/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From 80b40bbb85b25445cb8e71a895ce9ac85625407b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Jan 2021 10:18:24 +0100 Subject: [PATCH 391/694] updated url (dragonos) --- p2-include-url.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url.sh b/p2-include-url.sh index 33398de..3531313 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -9,7 +9,7 @@ then fi ########################################################################## -# v 2021-01-07 +# v 2021-01-09 # check broken url # for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -120,7 +120,7 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR9.iso +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR10.iso ESET_SYSRESCUE_X86=eset-rescue-x86 From caecb711ab9dd106910b2c9c1497747a6c9be25c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 23 Jan 2021 00:05:39 +0100 Subject: [PATCH 392/694] added ipxe menu (prototype) --- install-pxe-server_pass2.sh | 95 +++++++- p2-include-menu.sh | 463 ++++++++++++++++++++++++++++++++++++ 2 files changed, 545 insertions(+), 13 deletions(-) diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index a700d5b..aedb94c 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -165,7 +165,7 @@ EOF sudo systemctl stop wpa_supplicant; sudo systemctl disable wpa_supplicant; sudo rfkill unblock wlan; - + sudo systemctl unmask hostapd; sudo systemctl enable hostapd; sudo systemctl restart hostapd; @@ -315,6 +315,52 @@ tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI4 pxe-service=tag:IS_RPI3,0, "Raspberry Pi Boot ", bootcode.bin dhcp-boot=tag:IS_RPI3, bootcode.bin + +########## +# iPXE +dhcp-match=set:iPXE, option:user-class, iPXE +dhcp-match=set:ipxe.priority, 175, 1 #= signed integer 8; +dhcp-match=set:ipxe.keep-san, 175, 8 #= unsigned integer 8; +dhcp-match=set:ipxe.skip-san-boot, 175, 9 #= unsigned integer 8; +dhcp-match=set:ipxe.syslogs, 175, 85 #= string; +dhcp-match=set:ipxe.cert, 175, 91 #= string; +dhcp-match=set:ipxe.privkey, 175, 92 #= string; +dhcp-match=set:ipxe.crosscert, 175, 93 #= string; +dhcp-match=set:ipxe.no-pxedhcp, 175, 176 #= unsigned integer 8; +dhcp-match=set:ipxe.bus-id, 175, 177 #= string; +dhcp-match=set:ipxe.san-filename, 175, 188 #= string; +dhcp-match=set:ipxe.bios-drive, 175, 189 #= unsigned integer 8; +dhcp-match=set:ipxe.username, 175, 190 #= string; +dhcp-match=set:ipxe.password, 175, 191 #= string; +dhcp-match=set:ipxe.reverse-username, 175, 192 #= string; +dhcp-match=set:ipxe.reverse-password, 175, 193 #= string; +dhcp-match=set:ipxe.version, 175, 235 #= string; +dhcp-match=set:iscsi-initiator-iqn, 175, 203 #= string; +# Feature indicators +dhcp-match=set:ipxe.pxeext, 175, 16 #= unsigned integer 8; +dhcp-match=set:ipxe.iscsi, 175, 17 #= unsigned integer 8; +dhcp-match=set:ipxe.aoe, 175, 18 #= unsigned integer 8; +dhcp-match=set:ipxe.http, 175, 19 #= unsigned integer 8; +dhcp-match=set:ipxe.https, 175, 20 #= unsigned integer 8; +dhcp-match=set:ipxe.tftp, 175, 21 #= unsigned integer 8; +dhcp-match=set:ipxe.ftp, 175, 22 #= unsigned integer 8; +dhcp-match=set:ipxe.dns, 175, 23 #= unsigned integer 8; +dhcp-match=set:ipxe.bzimage, 175, 24 #= unsigned integer 8; +dhcp-match=set:ipxe.multiboot, 175, 25 #= unsigned integer 8; +dhcp-match=set:ipxe.slam, 175, 26 #= unsigned integer 8; +dhcp-match=set:ipxe.srp, 175, 27 #= unsigned integer 8; +dhcp-match=set:ipxe.nbi, 175, 32 #= unsigned integer 8; +dhcp-match=set:ipxe.pxe, 175, 33 #= unsigned integer 8; +dhcp-match=set:ipxe.elf, 175, 34 #= unsigned integer 8; +dhcp-match=set:ipxe.comboot, 175, 35 #= unsigned integer 8; +dhcp-match=set:ipxe.efi, 175, 36 #= unsigned integer 8; +dhcp-match=set:ipxe.fcoe, 175, 37 #= unsigned integer 8; +dhcp-match=set:ipxe.vlan, 175, 38 #= unsigned integer 8; +dhcp-match=set:ipxe.menu, 175, 39 #= unsigned integer 8; +dhcp-match=set:ipxe.sdi, 175, 40 #= unsigned integer 8; +dhcp-match=set:ipxe.nfs, 175, 41 #= unsigned integer 8; + + ########## # PXE Linux dhcp-match=set:x86_UEFI, option:client-arch, 6 @@ -325,12 +371,22 @@ tag-if=set:x86_BIOS, tag:ARCH_0, tag:!ARM_RPI #pxe-service=6, "PXE Boot Menu (UEFI 00:06)", $DST_PXE_EFI32/bootia32.efi #pxe-service=tag:x86-64_EFI, "PXE Boot Menu (UEFI 00:07)", $DST_PXE_EFI64/bootx64.efi #pxe-service=9, "PXE Boot Menu (UEFI 00:09)", $DST_PXE_EFI64/bootx64.efi -dhcp-boot=tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 -dhcp-boot=tag:x86_UEFI, $DST_PXE_EFI32/bootia32.efi -dhcp-boot=tag:x64_UEFI, $DST_PXE_EFI64/bootx64.efi -dhcp-option=tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_BIOS/lpxelinux.0 -dhcp-option=tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI32/bootia32.efi -dhcp-option=tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI64/bootx64.efi + +tag-if=set:ipxe_feature_rich, tag:iPXE,tag:ipxe.priority,tag:ipxe.bus-id,tag:ipxe.version,tag:ipxe.pxeext,tag:ipxe.iscsi,tag:ipxe.aoe,tag:ipxe.http,tag:ipxe.tftp,tag:ipxe.dns,tag:ipxe.bzimage,tag:ipxe.multiboot,tag:ipxe.pxe,tag:ipxe.elf,tag:ipxe.menu +dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, menu-ipxe/menu.ipxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, menu-ipxe/undionly.kpxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, menu-ipxe/ipxe.efi +dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/menu-ipxe/menu.ipxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/menu-ipxe/undionly.kpxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/menu-ipxe/ipxe.efi + +dhcp-boot=tag:!iPXE,tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 +dhcp-boot=tag:!iPXE,tag:x86_UEFI, $DST_PXE_EFI32/bootia32.efi +dhcp-boot=tag:!iPXE,tag:x64_UEFI, $DST_PXE_EFI64/bootx64.efi +dhcp-option=tag:!iPXE,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_BIOS/lpxelinux.0 +dhcp-option=tag:!iPXE,tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI32/bootia32.efi +dhcp-option=tag:!iPXE,tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI64/bootx64.efi + EOF sudo systemctl restart dnsmasq.service; } @@ -562,18 +618,31 @@ handle_pxe() { handle_ipxe() { echo -e "\e[32mhandle_ipxe()\e[0m"; + local DST_IPXE=menu-ipxe + local FILE_MENU=$DST_TFTP_ETH0/$DST_IPXE/menu.ipxe + local FILE_BASE=http://$IP_ETH0/srv + + if ! [ -d "$DST_TFTP_ETH0/$DST_IPXE" ]; then sudo mkdir -p $DST_TFTP_ETH0/$DST_IPXE; fi + ###################################################################### # http://ipxe.org/docs # http://ipxe.org/howto/chainloading - ###################################################################### - if (! compare_last_modification_time $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi); then + if (! compare_last_modification_time $DST_TFTP_ETH0/$DST_IPXE/ipxe.efi https://boot.ipxe.org/ipxe.efi); then echo -e "\e[36m download iPXE stuff\e[0m"; - sudo wget --quiet -O $DST_TFTP_ETH0/ipxe.efi https://boot.ipxe.org/ipxe.efi; - sudo wget --quiet -O $DST_TFTP_ETH0/ipxe.pxe https://boot.ipxe.org/ipxe.pxe; - sudo wget --quiet -O $DST_TFTP_ETH0/ipxe.iso https://boot.ipxe.org/ipxe.iso; - sudo wget --quiet -O $DST_TFTP_ETH0/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; + sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/ipxe.efi https://boot.ipxe.org/ipxe.efi; + sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; + + [ -f "$DST_TFTP_ETH0/$DST_IPXE/wimboot" ] || (\ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_IPXE/wimboot &>/dev/null); + + sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/ipxe.pxe https://boot.ipxe.org/ipxe.pxe; + sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/ipxe.iso https://boot.ipxe.org/ipxe.iso; fi + + sudo touch $FILE_MENU + . "$script_dir/p2-include-menu.sh" ipxe } diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 7be96c0..46baf17 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -9,6 +9,10 @@ then fi ########################################################################## +if ! [ "$1" == "ipxe" ] +then +########################################################################## +## lpxelinux #========== BEGIN ========== if [ -f "$FILE_MENU" ] \ @@ -1111,3 +1115,462 @@ if [ -f "$FILE_MENU" ] \ EOF fi #========== END ========== + + +else + + +########################################################################## +## ipxe +#========== BEGIN ========== +if [ -f "$FILE_MENU" ]; then + echo -e "\e[36m add ipxe menu\e[0m"; + cat << EOF | sudo tee $FILE_MENU &>/dev/null +#!ipxe + +# 2021-01-19 +# made by https://github.com/beta-tester +# for project https://github.com/beta-tester/RPi-PXE-Server + + +######################################################################## +### CHAIN LOAD SERVER VERSION OF iPXE +:begin_ipxe_chainload_serverversion +iseq \${product} VirtualBox || goto end_ipxe_chainload_serverversion +set version_vbox 1.0.0+ +iseq \${version} \${version_vbox} || goto end_ipxe_chainload_serverversion + +:ipxe_chainload_serverversion +echo download iPXE +iseq \${platform} efi && set ipxe_file ipxe.efi || set ipxe_file undionly.kpxe +imgfree || +chain \${ipxe_file} +exit + +:end_ipxe_chainload_serverversion + + +######################################################################## +### VARIABLES +set base http://\${next-server}/srv/nfs +set nfsroot \${next-server}:/srv/nfs + +set language de +set layoutcode de +set variant German +set locale de_DE.UTF-8 +set timezone Europe/Berlin +set keymap de-latin1-nodeadkeys +set kmap qwertz/de-latin1 + + +# Figure out if client is 64-bit capable +cpuid --ext 29 && set archx x64 || set archx x86 +cpuid --ext 29 && set arch amd64 || set arch i386 +cpuid --ext 29 && set arch2 amd64 || set arch2 i686 +cpuid --ext 29 && set bit_cpu 64 || set bit_cpu 32 + +# Figure out if BIOS, EFI32 or EFI64 +iseq \${platform} efi && goto is_efi || +set pxe_menu menu-bios +goto start +:is_efi +cpuid --ext 29 && set pxe_menu menu-efi64 || set pxe_menu menu-efi32 +goto start + + +######################################################################## +### MAIN MENU +:start +imgfree +menu iPXE \${version}, \${platform}, \${archx}, \${next-server}, \${pxe_menu} +item --gap -- ------------------------- Live Operating systems ------------------------- +item arch-netboot-x64 Boot Arch netboot x64 +item debian-x64 Boot Debian x64 +item devuan-x64 Boot Devuan x64 +item fedora-x64 Boot Fedora x64 +item mint-x64 Boot Linux Mint x64 +item opensuse-x64 Boot openSUSE x64 +item tinycore-x64 Boot Tiny Core x64 +item ubuntu-x64 Boot Ubuntu x64 +item --gap -- ------------------------- Pentesting systems ------------------------------ +item blackarch-x64 Boot BlackArch x64 +item kali-x64 Boot Kali x64 +item parrot-full-x64 Boot Parrot x64 +item pentoo-x64 Boot Pentoo x64 +item --gap -- ------------------------- Virus scanner systems --------------------------- +item desinfect-x64 Boot Desinfec't x64 +item desinfect-x86 Boot Desinfec't x86 +item eset-rescue-x86 Boot ESET SysRescue Live x86 +item kaspersky-rescue-x86 Boot Kaspersky Rescue Disk x86 +item --gap -- ------------------------- Other systems ---------------------------------- +item clonezilla-x64 Boot Clonezilla x64 +item dragonos-x64 Boot DragonOS x64 +item gnuradio-x64 Boot GNU Radio x64 +item knoppix-x86 Boot Knoppix x86 +item opensuse-rescue-x64 Boot openSUSE Rescue x64 +item rpdesktop-x86 Boot Raspberry Pi Desktop +item systemrescue-x64 Boot System Rescue x64 +item ubuntu-studio-x64 Boot Ubuntu Studio x64 +item --gap -- ------------------------- Windows systems ---------------------------------- +item windows-iso-x64 Boot Windows PE x64 (ISO via http) +item windows-iso-x86 Boot Windows PE x86 (ISO via http) +item windows-pxe-x64 Boot Windows PE x64 (PXE via tftp) +item windows-pxe-x86 Boot Windows PE x86 (PXE via tftp) +item windows-wim-x64 Boot Windows PE x64 (WIM via http) +item windows-wim-x86 Boot Windows PE x86 (WIM via http) +item --gap -- ------------------------- Broken systems ---------------------------------- +item tails-x64 Boot Tails x64 +item --gap -- ------------------------- Tools and utilities ---------------------------- +item --key p pxelinux Boot PXE Linux +item --gap -- ------------------------- Advanced options ------------------------------- +item --key c config Configure settings +item shell Drop to iPXE shell +item reboot Reboot computer +item poweroff Power off computer +item --gap -- -------------------------------------------------------------------------- +item --key x exit Exit iPXE and continue BIOS boot +choose os || goto cancel +echo \${os} +goto \${os} + + +:cancel +echo You cancelled the menu, dropping you to the shell + +:shell +echo Type 'exit' to get the back to the menu +shell +goto start + +:failed +echo Action failed, dropping you to the shell +goto shell + +:reboot +reboot || goto failed + +:poweroff +poweroff || goto failed + +:exit +exit + +:config +config +goto start + + +######################################################################## +### +:arch-netboot-x64 +#imgselect http://www.archlinux.org/static/netboot/ipxe.lkrn || goto failed +imgselect \${base}/\${os}/kernel || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### ubuntu based +:dragonos-x64 +set ext2 .gz +goto ubuntu + +:eset-rescue-x86 +:mint-x64 +:ubuntu-x86 +:desinfect-x64 +:desinfect-x86 +set ext2 .lz +goto ubuntu + +:gnuradio-x64 +set ext1 .efi +set ext2 .lz +goto ubuntu + +:kubuntu-daily-x64 +:kubuntu-x64 +:lubuntu-daily-x64 +:lubuntu-x64 +:ubuntu-daily-x64 +:ubuntu-studio-daily-x64 +:ubuntu-studio-x64 +:ubuntu-x64 +:xubuntu-daily-x64 +:xubuntu-x64 +goto ubuntu + +:ubuntu +#set custom -- debian-installer/locale=\${locale} debian-installer/language=\${language} console-setup/layoutcode=\${layoutcode} keyboard-configuration/layoutcode=\${layoutcode} keyboard-configuration/variant=\${variant} +set custom -- debian-installer/locale=\${locale} console-setup/layoutcode=\${layoutcode} keyboard-configuration/layoutcode=\${layoutcode} keyboard-configuration/variant=\${variant} +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns +imgselect \${base}/\${os}/casper/vmlinuz\${ext1} \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/casper/initrd\${ext2} || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### debian based +:debian-cinnamon-x64 +:debian-cinnamon-x86 +:debian-gnome-x64 +:debian-gnome-x86 +:debian-kde-x64 +:debian-kde-x86 +:debian-lxde-x64 +:debian-lxde-x86 +:debian-lxqt-x64 +:debian-lxqt-x86 +:debian-mate-x64 +:debian-mate-x86 +:debian-x64 +:debian-x86 +set version 4.19.0-13 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config +imgselect \${base}/\${os}/live/vmlinuz-\${version}-\${arch} \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img-\${version}-\${arch} || goto failed +imgexec || goto failed +goto start + + +:devuan-x64 +:devuan-x86 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live username=devuan config +imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img || goto failed +imgexec || goto failed +goto start + + +:rpdesktop-x86 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config +imgselect \${base}/\${os}/live/vmlinuz2 \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd2.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:fedora-x64 +set custom -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=\${keymap} locale.LANG=\${locale} +set options ip=dhcp root=live:nfs://\${next-server}/srv/nfs/\${os}/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 +imgselect \${base}/\${os}/isolinux/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/isolinux/initrd.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:opensuse-rescue-x64 +set aoe_if e0.1 +goto opensuse + +:opensuse-x64 +set aoe_if e1.1 +goto opensuse + +:opensuse +set custom -- +set options ip=dhcp root=live:AOEINTERFACE=\${aoe_if} rd.kiwi.live.pxe +imgselect \${base}/\${os}/boot/x86_64/loader/linux \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/boot/x86_64/loader/initrd || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:tinycore-x64 +:tinycore-x86 +set custom -- lang=en kmap=\${kmap} +set options ip=dhcp nfsmount=\${nfsroot}/\${os} tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 noswap norestore +#set options ip=dhcp nfsmount=\${nfsroot}/\${os}.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 noswap norestore +imgselect \${base}/\${os}/boot/vmlinuz64 \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/boot/corepure64.gz || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:blackarch-x64 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp archiso_nfs_srv=\${nfsroot}/\${os} ro archisobasedir=blackarch copytoram=n +imgselect \${base}/\${os}/blackarch/boot/x86_64/vmlinuz-linux \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/blackarch/boot/intel-ucode.img || goto failed +imgfetch \${base}/\${os}/blackarch/boot/amd-ucode.img || goto failed +imgfetch \${base}/\${os}/blackarch/boot/x86_64/initramfs-linux.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:systemrescue-x64 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp archiso_nfs_srv=\${nfsroot}/\${os} ro archisobasedir=sysresccd copytoram=n +imgselect \${base}/\${os}/sysresccd/boot/x86_64/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/sysresccd/boot/intel_ucode.img || goto failed +imgfetch \${base}/\${os}/sysresccd/boot/amd_ucode.img || goto failed +imgfetch \${base}/\${os}/sysresccd/boot/x86_64/sysresccd.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:kali-x64 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali +imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:parrot-full-x64 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} pkeys=\${kmap} setxkbmap=\${kmap} timezone=\${timezone} utc=no +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config +imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:pentoo-beta-x64 +:pentoo-x64 +set custom -- +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 +imgselect \${base}/\${os}/boot/pentoo \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/boot/pentoo.igz || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:kaspersky-rescue-x86 +set custom -- lang=us setkmap=us +set options ip=dhcp netboot=nfs://\${nfsroot}/\${os} ro dostartx +imgselect \${base}/\${os}/boot/grub/k-x86 \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/boot/grub/initrd.xz || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:clonezilla-x64 +:clonezilla-x86 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} utc=no timezone=\${timezone} +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt +imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:knoppix-x86 +set custom -- lang=de +set options ip=dhcp nfsdir=\${nfsroot}/\${os} nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix +imgselect \${base}/\${os}/boot/isolinux/linux \${options} \${custom} || goto failed +imgfetch \${base}/\${os}-miniroot-8.6.1.gz || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:tails-x64 +set custom -- keyboard-layouts=\${lasyoutcode} +set options ip=dhcp BOOTIF=\${hwaddr} fetch=\${base}/\${os}/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC debug ignore_loglevel log_buf_len=10M print_fatal_signals=1 LOGLEVEL=8 earlyprintk=vga,keep sched_debug +imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img || goto failed +imgfetch \${base}/\${os}-hotfix-pxe.cpio.xz || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:windows-iso-x64 +set os win-pe-x64 +goto windows-iso + +:windows-iso-x86 +set os win-pe-x86 +goto windows-iso + +:windows-iso +imgselect memdisk iso raw || goto failed +imgfetch http://\${next-server}/srv/iso/\${os}.iso || goto failed +imgexec || goto failed +goto start + + +# https://git.ipxe.org/releases/wimboot/ +:windows-wim-x64 +set os win-pe-x64 +goto windows-wim + +:windows-wim-x86 +set os win-pe-x86 +goto windows-wim + +:windows-wim +imgselect wimboot || goto failed +imgfetch \${base}/\${os}/bootmgr bootmgr || goto failed +imgfetch \${base}/\${os}/Boot/BCD BCD || goto failed +imgfetch \${base}/\${os}/Boot/Fonts/wgl4_boot.ttf wgl4_boot.ttf || goto failed +imgfetch \${base}/\${os}/Boot/boot.sdi boot.sdi || goto failed +imgfetch \${base}/\${os}/sources/boot.wim boot.wim || goto failed +imgexec || goto failed +goto start + + +:windows-pxe-x86 +goto windows-pxe + +:windows-pxe-x64 +goto windows-pxe + +:windows-pxe +#set 67:string pxeboot.n12 +#set 17:string \${pxe_menu} +iseq \${platform} efi && set boot-file bootmgr.efi || set boot-file pxeboot.n12 +imgselect \${pxe_menu}/\${boot-file} || goto failed +#imgselect \${pxe_menu}/pxeboot.n12 || goto failed +#imgselect http://\${next-server}/srv/iso/Boot.amd64/PXE/wdsnbp.com || goto failed +#imgselect http://\${next-server}/srv/iso/Boot.amd64/PXE/bootmgr.exe || goto failed +#imgselect http://\${next-server}/srv/iso/Boot.amd64/PXE/bootmgr.efi || goto failed +imgexec || goto failed +goto start + + +######################################################################## +### +:pxelinux +set 209:string /pxelinux.cfg/default +set 210:string \${pxe_menu} +imgselect \${210:string}/lpxelinux.0 || goto failed +imgexec || goto failed +goto start + +EOF +fi +#========== END ========== + +fi From 7532e5c5bd725a5f9de65a03d58fde20876aa473 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 31 Jan 2021 00:05:01 +0100 Subject: [PATCH 393/694] implemented new handling with a dispatcher. - new format for p2-include-handle.sh. all items call the dispatcher handle_item. - changed [ ] to [[ ]]. - changed $VAR to "${VAR:?)" for more robustness #36. - updated README. - updated p2-include-menu.sh --- README.md | 72 +- install-pxe-server_pass1.sh | 4 +- install-pxe-server_pass2.sh | 1565 ++++++++++++++++++----------------- p2-include-handle.sh | 175 ++-- p2-include-menu.sh | 378 +++++---- p2-include-url.sh | 2 +- p2-include-var.sh | 26 +- 7 files changed, 1181 insertions(+), 1041 deletions(-) diff --git a/README.md b/README.md index 9033180..28734b4 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspberry Pi OS Buster** or **Raspberry Pi OS Buster Lite** (2020-05-27), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspberry Pi OS Buster** or **Raspberry Pi OS Buster Lite** (2021-01-11), https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspberry Pi OS Buster (or Lite) from 2020-05-27, +- your Raspberry Pi is running Raspberry Pi OS Buster (or Lite) from 2021-01-11, - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (16GB when you use unmodified script) @@ -117,21 +117,45 @@ comments. ### p2-include-handle.sh includes all handler to control what image to download and expose to the pxe-server -**if you don't want some iso images getting downloaded and mounted, you can comment out lines to do not handle the image.
-or rename handle to __unhandle to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
+**if you don't want some iso images getting downloaded and mounted, you can disable images from handling '#'.
+or '-' to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
e.g.:** ``` -#handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; +handle_item '+' iso UBUNTU_X64; +handle_item '-' iso UBUNTU_LTS_X64; +handle_item '#' iso UBUNTU_DAILY_X64 timestamping; ... ``` -**same procedure, if you don't want some disk images getting downloaded and mounted, you can comment out those lines -e.g.:** -``` -###################################################################### -handle_zip_img $RPD_LITE $RPD_LITE_URL; -# handle_zip_img $RPD_FULL $RPD_FULL_URL; -``` +'+' = add image to PXE service + download if not there + update if newer version is available + +'-' = remove image from PXE service + free resources on server + if backup exist, keep updating backup) + +'#' = skip image handling + keep everything untouched + does not updating backup + good, when timestamping option is set + +iso = iso image (ISO,UDF, ISO_HYBRID) + +img = harddrive image (MPT, GPT) + +kernel = kernel + +zip_img = zip file containing an harddrive image (zip -> MTP, GPT) + +rpi_pxe = only if you want to pxe boot a RPi3. + (copyes files from boot & root partition to local directors) + requires an already mounted harddrive image (img or zip_img) + note: option '-' does nothing for rpi_pxe. + you have to free resources for rpi_pxe by hand + +note: +do not put the $ infornt of the VARIABLE name !!! +the handle_item functions do need the NAME of the VARIABLE (without _URL) ## what else you should know, when you make modification to the script... there are three important locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. @@ -140,7 +164,7 @@ there are three important locations for the pxe boot and the pxe menu that must 2. the ISO or NFS path relative to the nfs root path
(on disk `/srv/iso`, `/srv/nfs`). 3. the ISO, IMG or NFS path located at /var/www/html
-(on disk `/var/www/html/iso`, `/var/www/html/img`, `/var/www/html/nfs`). +(on disk `/var/www/html/srv/iso`, `/var/www/html/srv/img`, `/var/www/html/srv/nfs`). ``` / ├── srv @@ -157,9 +181,10 @@ there are three important locations for the pxe boot and the pxe menu that must └── var └── www └── html (HTML root) - ├── img (only a symbolic link to IMG files) - ├── iso (only a symbolic link to ISO files) - └── nfs (only a symbolic link to NFS files) + └── srv (only a symbolic link to IMG files) + ├── img (only a symbolic link to IMG files) + ├── iso (only a symbolic link to ISO files) + └── nfs (only a symbolic link to NFS files) ``` if you make any changes to your script and/or file structure on disk, keep an eye to changes you made and adapt everything to match @@ -229,13 +254,14 @@ if you don't like or want, remove those additional parameters just behind the ' to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var.sh** script. ``` -CUSTOM_LANG=de -CUSTOM_LANG_LONG=de_DE -CUSTOM_LANG_UPPER=DE -CUSTOM_LANG_LOCALE=de_DE.UTF-8 -CUSTOM_LANG_WRITTEN=German -CUSTOM_LANG_EXT=de-latin1-nodeadkeys +CUSTOM_COUNTRY=DE +CUSTOM_KEYMAP=de-latin1-nodeadkeys +CUSTOM_KMAP=qwertz/de-latin1 +CUSTOM_LANGUAGE=de +CUSTOM_LAYOUTCODE=de +CUSTOM_LOCALE=de_DE.UTF-8 CUSTOM_TIMEZONE=Europe/Berlin +CUSTOM_VARIANT=German ``` ## note3: diff --git a/install-pxe-server_pass1.sh b/install-pxe-server_pass1.sh index 6592a2d..372508d 100644 --- a/install-pxe-server_pass1.sh +++ b/install-pxe-server_pass1.sh @@ -5,7 +5,7 @@ BACKUP_FILE=backup.tar.xz BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// do_backup() { - tar -ravf "$BACKUP_FILE" --transform="$BACKUP_TRANSFORM" -C / "$1" &>/dev/null + tar -ravf "${BACKUP_FILE:?}" --transform="${BACKUP_TRANSFORM:?}" -C / "${1:?}" &>/dev/null } @@ -175,7 +175,7 @@ sudo apt install -y --no-install-recommends squashfs-tools initramfs-tools xz-ut echo -e "\e[32minstall wireshark\e[0m"; echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; sudo apt install -y --no-install-recommends tshark wireshark -sudo usermod -a -G wireshark $USER +sudo usermod -a -G wireshark "${USER:?}" echo -e "\e[32minstall other useful stuff\e[0m"; sudo apt install -y --no-install-recommends xterm transmission-gtk diff --git a/install-pxe-server_pass2.sh b/install-pxe-server_pass2.sh index aedb94c..bcc7dc6 100644 --- a/install-pxe-server_pass2.sh +++ b/install-pxe-server_pass2.sh @@ -8,7 +8,7 @@ # solution: maybe linux kernel 5.6 -script_dir=$(dirname "$BASH_SOURCE") +script_dir=$(dirname "${BASH_SOURCE:?}") ########################################################################## @@ -16,7 +16,7 @@ BACKUP_FILE=backup.tar.xz BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// do_backup() { - tar -ravf "$BACKUP_FILE" --transform="$BACKUP_TRANSFORM" -C / "$1" &>/dev/null + tar -ravf "${BACKUP_FILE:?}" --transform="${BACKUP_TRANSFORM:?}" -C / "${1:?}" &>/dev/null } @@ -33,27 +33,27 @@ echo -e "\e[36msetup variables\e[0m"; ## and other variables... ########################################################################## ########################################################################## -. "$script_dir/p2-include-var.sh" +. "${script_dir:?}/p2-include-var.sh" echo -echo -e "$KERNEL_MAJOR.$KERNEL_MINOR \e[36mis kernel version\e[0m"; -echo -e "$INTERFACE_ETH0 \e[36mis used as primary networkadapter for PXE\e[0m"; -echo -e "$IP_ETH0 \e[36mis used as primary IP address for PXE\e[0m"; -echo -e "$RPI_SN0 \e[36mis used as SN for RPi3 network booting\e[0m"; +echo -e "${KERNEL_MAJOR:?}.${KERNEL_MINOR:?} \e[36mis kernel version\e[0m"; +echo -e "${INTERFACE_ETH0:?} \e[36mis used as primary networkadapter for PXE\e[0m"; +echo -e "${IP_ETH0:?} \e[36mis used as primary IP address for PXE\e[0m"; +echo -e "${RPI_SN0:?} \e[36mis used as SN for RPi3 network booting\e[0m"; echo -if [ -z $IP_ETH0 ]; then +if [[ -z "${IP_ETH0:?}" ]]; then echo -e "\e[1;31mIP address not found. please check your ethernet cable.\e[0m"; exit 1 fi -if [ -z $IP_ETH0_ROUTER ]; then +if [[ -z "${IP_ETH0_ROUTER:?}" ]]; then echo -e "\e[1;31mrouter IP address not found. please check your router settings.\e[0m"; exit 1 fi -sudo umount -f $SRC_MOUNT &>/dev/null; -sudo mount $SRC_MOUNT &>/dev/null; +sudo umount -f "${SRC_MOUNT:?}" &>/dev/null; +sudo mount "${SRC_MOUNT:?}" &>/dev/null; ########################################################################## ########################################################################## @@ -62,7 +62,7 @@ sudo mount $SRC_MOUNT &>/dev/null; ## update the url, if iso is outdated ########################################################################## ########################################################################## -. "$script_dir/p2-include-url.sh" +. "${script_dir:?}/p2-include-url.sh" @@ -79,12 +79,12 @@ handle_hostapd() { ######################################## #/etc/hostapd/hostapd.conf ## mod_install_server -interface=$INTERFACE_WLAN0 -driver=$DRIVER_WLAN0 +interface=${INTERFACE_WLAN0:?} +driver=${DRIVER_WLAN0:?} ##### IEEE 802.11 related configuration ####################################### -country_code=$COUNTRY_WLAN0 +country_code=${COUNTRY_WLAN0:?} ieee80211d=1 ##### 802.11b @@ -134,9 +134,9 @@ wpa_key_mgmt=WPA-PSK # WPA2 encryption algorithm rsn_pairwise=CCMP -#wpa_passphrase=$PASSWORD_WLAN0 -wpa_psk=$(wpa_passphrase $SSID_WLAN0 $PASSWORD_WLAN0 | grep '[[:blank:]]psk' | cut -d = -f2) -ssid=$SSID_WLAN0 +#wpa_passphrase=${PASSWORD_WLAN0:?} +wpa_psk=$(wpa_passphrase ${SSID_WLAN0:?} ${PASSWORD_WLAN0:?} | grep '[[:blank:]]psk' | cut -d = -f2) +ssid=${SSID_WLAN0:?} ## optional: create virtual wlan adapter @@ -144,10 +144,10 @@ ssid=$SSID_WLAN0 #wpa=2 #wpa_key_mgmt=WPA-PSK #rsn_pairwise=CCMP -##wpa_passphrase=$PASSWORD_WLAN0X -#wpa_psk=$(wpa_passphrase $SSID_WLAN0X $PASSWORD_WLAN0X | grep '[[:blank:]]psk' | cut -d = -f2) -#ssid=$SSID_WLAN0X -#bss=$INTERFACE_WLAN0X +##wpa_passphrase=${PASSWORD_WLAN0X:?} +#wpa_psk=$(wpa_passphrase ${SSID_WLAN0X:?} ${PASSWORD_WLAN0X:?} | grep '[[:blank:]]psk' | cut -d = -f2) +#ssid=${SSID_WLAN0X:?} +#bss=${INTERFACE_WLAN0X:?} EOF ###################################################################### @@ -185,28 +185,28 @@ handle_dhcpcd() { ######################################## ## mod_install_server -interface $INTERFACE_ETH0 +interface ${INTERFACE_ETH0:?} slaac private - static ip_address=$IP_ETH0/24 - static ip6_address=fd80::$IP_ETH0/120 - static routers=$IP_ETH0_ROUTER - static domain_name_servers=$IP_ETH0_ROUTER 1.1.1.1 2606:4700:4700::1111 + static ip_address=${IP_ETH0:?}/24 + static ip6_address=fd80::${IP_ETH0:?}/120 + static routers=${IP_ETH0_ROUTER:?} + static domain_name_servers=${IP_ETH0_ROUTER:?} 1.1.1.1 2606:4700:4700::1111 ######################################## -interface $INTERFACE_ETH1 +interface ${INTERFACE_ETH1:?} slaac private - static ip_address=$IP_ETH1/24 - static ip6_address=fd80::$IP_ETH1/120 - static routers=$IP_ETH1_ROUTER - static domain_name_servers=$IP_ETH1_ROUTER + static ip_address=${IP_ETH1:?}/24 + static ip6_address=fd80::${IP_ETH1:?}/120 + static routers=${IP_ETH1_ROUTER:?} + static domain_name_servers=${IP_ETH1_ROUTER:?} ######################################## -interface $INTERFACE_WLAN0 +interface ${INTERFACE_WLAN0:?} slaac private - static ip_address=$IP_WLAN0/24 - static ip6_address=fd80::$IP_WLAN0/120 - static routers=$IP_WLAN0_ROUTER - static domain_name_servers=$IP_WLAN0_ROUTER + static ip_address=${IP_WLAN0:?}/24 + static ip6_address=fd80::${IP_WLAN0:?}/120 + static routers=${IP_WLAN0_ROUTER:?} + static domain_name_servers=${IP_WLAN0_ROUTER:?} EOF sudo systemctl daemon-reload; sudo systemctl restart dhcpcd.service; @@ -219,7 +219,7 @@ handle_dnsmasq() { echo -e "\e[32mhandle_dnsmasq()\e[0m"; ###################################################################### - [ -f /etc/dnsmasq.d/10-pxe-server ] || { + [[ -f /etc/dnsmasq.d/10-pxe-server ]] || { echo -e "\e[36m setup dnsmasq for pxe\e[0m"; do_backup etc/dnsmasq.d/10-pxe-server cat << EOF | sudo tee /etc/dnsmasq.d/10-pxe-server &>/dev/null @@ -234,9 +234,9 @@ log-dhcp interface=lo # interface selection -interface=$INTERFACE_ETH0 -interface=$INTERFACE_ETH1 -interface=$INTERFACE_WLAN0 +interface=${INTERFACE_ETH0:?} +interface=${INTERFACE_ETH1:?} +interface=${INTERFACE_WLAN0:?} except-interface=wlan1mon except-interface=wlan2mon @@ -245,25 +245,25 @@ bind-dynamic ########## # TFTP_ETH0 (enabled) -enable-tftp=$INTERFACE_ETH0 +enable-tftp=${INTERFACE_ETH0:?} #tftp-lowercase -tftp-root=$DST_TFTP_ETH0/, $INTERFACE_ETH0 -dhcp-option=tag:$INTERFACE_ETH0, option:tftp-server, 0.0.0.0 +tftp-root=${DST_TFTP_ETH0:?}/, ${INTERFACE_ETH0:?} +dhcp-option=tag:${INTERFACE_ETH0:?}, option:tftp-server, 0.0.0.0 # -dhcp-option=tag:$INTERFACE_ETH1, option:nis-domain, eth-nis -dhcp-option=tag:$INTERFACE_ETH1, option:domain-name, eth-domain.local -dhcp-option=tag:$INTERFACE_WLAN0, option:nis-domain, wlan-nis -dhcp-option=tag:$INTERFACE_WLAN0, option:domain-name, wlan-domain.local +dhcp-option=tag:${INTERFACE_ETH1:?}, option:nis-domain, eth-nis +dhcp-option=tag:${INTERFACE_ETH1:?}, option:domain-name, eth-domain.local +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:nis-domain, wlan-nis +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:domain-name, wlan-domain.local ########## # Time Server -dhcp-option=tag:$INTERFACE_ETH0, option:ntp-server, 0.0.0.0 -dhcp-option=tag:$INTERFACE_ETH1, option:ntp-server, 0.0.0.0 -dhcp-option=tag:$INTERFACE_WLAN0, option:ntp-server, 0.0.0.0 -dhcp-option=tag:$INTERFACE_ETH0, option6:ntp-server, [::] -dhcp-option=tag:$INTERFACE_ETH1, option6:ntp-server, [::] -dhcp-option=tag:$INTERFACE_WLAN0, option6:ntp-server, [::] +dhcp-option=tag:${INTERFACE_ETH0:?}, option:ntp-server, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH1:?}, option:ntp-server, 0.0.0.0 +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:ntp-server, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH0:?}, option6:ntp-server, [::] +dhcp-option=tag:${INTERFACE_ETH1:?}, option6:ntp-server, [::] +dhcp-option=tag:${INTERFACE_WLAN0:?}, option6:ntp-server, [::] ########## # DHCP @@ -278,12 +278,12 @@ dhcp-mac=set:block, 28:c6:8e:*:*:* #dhcp-host=set:known_129, client_acb, 192.168.1.129, [fd80::192.168.1.129], infinite # dynamic IP -dhcp-range=tag:$INTERFACE_ETH0, tag:!block, fd80::$IP_ETH0_START, fd80::$IP_ETH0_END, 120, 1h -dhcp-range=tag:$INTERFACE_ETH1, fd80::$IP_ETH1_START, fd80::$IP_ETH1_END, 120, 1h -dhcp-range=tag:$INTERFACE_WLAN0, fd80::$IP_WLAN0_START, fd80::$IP_WLAN0_END, 120, 1h -dhcp-range=tag:$INTERFACE_ETH0, tag:!block, $IP_ETH0_START, $IP_ETH0_END, 255.255.255.0, 1h -dhcp-range=tag:$INTERFACE_ETH1, $IP_ETH1_START, $IP_ETH1_END, 255.255.255.0, 1h -dhcp-range=tag:$INTERFACE_WLAN0, $IP_WLAN0_START, $IP_WLAN0_END, 255.255.255.0, 1h +dhcp-range=tag:${INTERFACE_ETH0:?}, tag:!block, fd80::${IP_ETH0_START:?}, fd80::${IP_ETH0_END:?}, 120, 1h +dhcp-range=tag:${INTERFACE_ETH1:?}, fd80::${IP_ETH1_START:?}, fd80::${IP_ETH1_END:?}, 120, 1h +dhcp-range=tag:${INTERFACE_WLAN0:?}, fd80::${IP_WLAN0_START:?}, fd80::${IP_WLAN0_END:?}, 120, 1h +dhcp-range=tag:${INTERFACE_ETH0:?}, tag:!block, ${IP_ETH0_START:?}, ${IP_ETH0_END:?}, 255.255.255.0, 1h +dhcp-range=tag:${INTERFACE_ETH1:?}, ${IP_ETH1_START:?}, ${IP_ETH1_END:?}, 255.255.255.0, 1h +dhcp-range=tag:${INTERFACE_WLAN0:?}, ${IP_WLAN0_START:?}, ${IP_WLAN0_END:?}, 255.255.255.0, 1h ########## # DNS (enabled) @@ -293,12 +293,12 @@ dns-loop-detect stop-dns-rebind bogus-priv domain-needed -dhcp-option=tag:$INTERFACE_ETH0, option:netbios-ns, 0.0.0.0 -dhcp-option=tag:$INTERFACE_ETH1, option:netbios-ns, 0.0.0.0 -dhcp-option=tag:$INTERFACE_WLAN0, option:netbios-ns, 0.0.0.0 -dhcp-option=tag:$INTERFACE_ETH0, option:netbios-dd, 0.0.0.0 -dhcp-option=tag:$INTERFACE_ETH1, option:netbios-dd, 0.0.0.0 -dhcp-option=tag:$INTERFACE_WLAN0, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH0:?}, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH1:?}, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH0:?}, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH1:?}, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:netbios-dd, 0.0.0.0 # PXE (enabled) # warning: unfortunately, a RPi3 identifies itself as of architecture x86PC (x86PC=0) @@ -367,25 +367,26 @@ dhcp-match=set:x86_UEFI, option:client-arch, 6 dhcp-match=set:x64_UEFI, option:client-arch, 7 dhcp-match=set:x64_UEFI, option:client-arch, 9 tag-if=set:x86_BIOS, tag:ARCH_0, tag:!ARM_RPI -#pxe-service=tag:x86_BIOS,x86PC, "PXE Boot Menu (BIOS 00:00)", $DST_PXE_BIOS/lpxelinux -#pxe-service=6, "PXE Boot Menu (UEFI 00:06)", $DST_PXE_EFI32/bootia32.efi -#pxe-service=tag:x86-64_EFI, "PXE Boot Menu (UEFI 00:07)", $DST_PXE_EFI64/bootx64.efi -#pxe-service=9, "PXE Boot Menu (UEFI 00:09)", $DST_PXE_EFI64/bootx64.efi + +#pxe-service=tag:x86_BIOS,x86PC, "PXE Boot Menu (BIOS 00:00)", ${DST_PXE_BIOS:?}/lpxelinux +#pxe-service=6, "PXE Boot Menu (UEFI 00:06)", ${DST_PXE_EFI32:?}/bootia32.efi +#pxe-service=tag:x86-64_EFI, "PXE Boot Menu (UEFI 00:07)", ${DST_PXE_EFI64:?}/bootx64.efi +#pxe-service=9, "PXE Boot Menu (UEFI 00:09)", ${DST_PXE_EFI64:?}/bootx64.efi tag-if=set:ipxe_feature_rich, tag:iPXE,tag:ipxe.priority,tag:ipxe.bus-id,tag:ipxe.version,tag:ipxe.pxeext,tag:ipxe.iscsi,tag:ipxe.aoe,tag:ipxe.http,tag:ipxe.tftp,tag:ipxe.dns,tag:ipxe.bzimage,tag:ipxe.multiboot,tag:ipxe.pxe,tag:ipxe.elf,tag:ipxe.menu dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, menu-ipxe/menu.ipxe dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, menu-ipxe/undionly.kpxe dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, menu-ipxe/ipxe.efi -dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/menu-ipxe/menu.ipxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/menu-ipxe/undionly.kpxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/menu-ipxe/ipxe.efi +dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/menu.ipxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/undionly.kpxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/ipxe.efi -dhcp-boot=tag:!iPXE,tag:x86_BIOS, $DST_PXE_BIOS/lpxelinux.0 -dhcp-boot=tag:!iPXE,tag:x86_UEFI, $DST_PXE_EFI32/bootia32.efi -dhcp-boot=tag:!iPXE,tag:x64_UEFI, $DST_PXE_EFI64/bootx64.efi -dhcp-option=tag:!iPXE,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_BIOS/lpxelinux.0 -dhcp-option=tag:!iPXE,tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI32/bootia32.efi -dhcp-option=tag:!iPXE,tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::$IP_ETH0]/$DST_PXE_EFI64/bootx64.efi +dhcp-boot=tag:!iPXE,tag:x86_BIOS, ${DST_PXE_BIOS:?}/lpxelinux.0 +dhcp-boot=tag:!iPXE,tag:x86_UEFI, ${DST_PXE_EFI32:?}/bootia32.efi +dhcp-boot=tag:!iPXE,tag:x64_UEFI, ${DST_PXE_EFI64:?}/bootx64.efi +dhcp-option=tag:!iPXE,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_BIOS:?}/lpxelinux.0 +dhcp-option=tag:!iPXE,tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_EFI32:?}/bootia32.efi +dhcp-option=tag:!iPXE,tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_EFI64:?}/bootx64.efi EOF sudo systemctl restart dnsmasq.service; @@ -414,7 +415,7 @@ dns proxy = yes enhanced browsing = no #### Networking #### -interfaces = $IP_ETH0_0 $INTERFACE_ETH0 +interfaces = ${IP_ETH0_0:?} ${INTERFACE_ETH0:?} bind interfaces only = yes #### Debugging/Accounting #### @@ -439,7 +440,7 @@ bind interfaces only = yes #======================= Share Definitions ======================= [srv] - path = $DST_ROOT + path = ${DST_ROOT:?} comment = /srv folder of pxe-server guest ok = yes guest only = yes @@ -478,8 +479,8 @@ handle_pxe_menu() { # $1 : menu short name # $2 : menu file name ###################################################################### - local FILE_MENU=$DST_TFTP_ETH0/$1/pxelinux.cfg/$2 - local FILE_BASE=http://$IP_ETH0/srv + local FILE_MENU="${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg/${2:?}" + local FILE_BASE="http://${IP_ETH0:?}/srv" ###################################################################### ## INFO: ## The entry before -- means that it will be used by the live system / the installer @@ -493,13 +494,13 @@ handle_pxe_menu() { ## https://manpages.debian.org/stretch/live-config-doc/live-config.7.en.html ## http://manpages.ubuntu.com/manpages/precise/man7/live-config.7.html ###################################################################### - echo -e "\e[32mhandle_pxe_menu(\e[0m$1\e[32m)\e[0m"; + echo -e "\e[32mhandle_pxe_menu(\e[0m${1:?}\e[32m)\e[0m"; echo -e "\e[36m setup sys menu for pxe\e[0m"; - if ! [ -d "$DST_TFTP_ETH0/$1/pxelinux.cfg" ]; then sudo mkdir -p $DST_TFTP_ETH0/$1/pxelinux.cfg; fi - if [ -d "$DST_TFTP_ETH0/$1/pxelinux.cfg" ]; then - cat << EOF | sudo tee $FILE_MENU &>/dev/null + if ! [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg"; fi + if [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then + cat << EOF | sudo tee "${FILE_MENU:?}" &>/dev/null ######################################## -# $FILE_MENU +# ${FILE_MENU:?} # http://www.syslinux.org/wiki/index.php?title=Menu @@ -511,7 +512,7 @@ NOESCAPE 1 ALLOWOPTIONS 1 menu color title * #FFFFFFFF * -menu title PXE Boot Menu ($1) +menu title PXE Boot Menu (${1:?}) menu rows 20 menu tabmsgrow 24 menu tabmsg [Enter]=boot, [Tab]=edit, [Esc]=return @@ -533,7 +534,7 @@ LABEL poweroff EOF fi - . "$script_dir/p2-include-menu.sh" + . "${script_dir:?}/p2-include-menu.sh" } @@ -542,75 +543,75 @@ handle_pxe() { echo -e "\e[32mhandle_pxe()\e[0m"; ###################################################################### - [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; - if [ -d "$SRC_TFTP_ETH0" ]; then + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; + if [[ -d "${SRC_TFTP_ETH0:?}" ]]; then echo -e "\e[36m copy win-pe stuff\e[0m"; - if ! [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/pxeboot.n12" ] && [ -f "$SRC_TFTP_ETH0/pxeboot.n12" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/pxeboot.n12 $DST_TFTP_ETH0/$DST_PXE_BIOS/; fi - if ! [ -f "$DST_TFTP_ETH0/bootmgr.exe" ] && [ -f "$SRC_TFTP_ETH0/bootmgr.exe" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/bootmgr.exe $DST_TFTP_ETH0/; fi - if ! [ -d "$DST_TFTP_ETH0/Boot" ] && [ -d "$SRC_TFTP_ETH0/Boot" ]; then sudo rsync -xa --info=progress2 $SRC_TFTP_ETH0/Boot $DST_TFTP_ETH0/; fi + if ! [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/pxeboot.n12" ]] && [[ -f "${SRC_TFTP_ETH0:?}/pxeboot.n12" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/pxeboot.n12" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; fi + if ! [[ -f "${DST_TFTP_ETH0:?}/bootmgr.exe" ]] && [[ -f "${SRC_TFTP_ETH0:?}/bootmgr.exe" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/bootmgr.exe" "${DST_TFTP_ETH0:?}/"; fi + if ! [[ -d "${DST_TFTP_ETH0:?}/Boot" ]] && [[ -d "${SRC_TFTP_ETH0:?}/Boot" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/Boot" "${DST_TFTP_ETH0:?}/"; fi fi - [ -h "$DST_TFTP_ETH0/sources" ] || sudo ln -s $DST_NFS_ETH0/$WIN_PE_X86/sources/ $DST_TFTP_ETH0/sources; + [[ -h "${DST_TFTP_ETH0:?}/sources" ]] || sudo ln -s "${DST_NFS_ETH0:?}/${WIN_PE_X86:?}/sources/" "${DST_TFTP_ETH0:?}/sources"; ###################################################################### echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; - [ -d "$DST_TFTP_ETH0/$DST_PXE_BIOS" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_BIOS; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/lpxelinux.0" ] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/ldlinux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/reboot.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/memdisk" ] || sudo ln -s /usr/lib/syslinux/memdisk $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_BIOS/nfs; - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_BIOS/iso; - - [ -h "$DST_TFTP_ETH0/$DST_PXE_BIOS/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 $DST_TFTP_ETH0/$DST_PXE_BIOS/; - [ -f "$DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot" ] || ( \ + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/lpxelinux.0" ]] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/ldlinux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/memdisk" ]] || sudo ln -s /usr/lib/syslinux/memdisk "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso"; + + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" ]] || ( \ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_BIOS/wimboot > /dev/null); + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" > /dev/null); - handle_pxe_menu $DST_PXE_BIOS default; + handle_pxe_menu "${DST_PXE_BIOS:?}" default; ###################################################################### echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; - [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI32" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI32; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/bootia32.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI32/bootia32.efi; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/ldlinux.e32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/reboot.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI32/nfs; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI32/iso; - - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI32/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI32/; - [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot" ] || ( \ + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/ldlinux.e32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso"; + + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" ]] || ( \ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI32/wimboot &>/dev/null); + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" &>/dev/null); - handle_pxe_menu $DST_PXE_EFI32 default; + handle_pxe_menu "${DST_PXE_EFI32:?}" default; ###################################################################### echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; - [ -d "$DST_TFTP_ETH0/$DST_PXE_EFI64" ] || sudo mkdir -p $DST_TFTP_ETH0/$DST_PXE_EFI64; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/bootx64.efi" ] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi $DST_TFTP_ETH0/$DST_PXE_EFI64/bootx64.efi; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/ldlinux.e64" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/vesamenu.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libcom32.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/libutil.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/reboot.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/poweroff.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/nfs" ] || sudo ln -s $DST_NFS_ETH0/ $DST_TFTP_ETH0/$DST_PXE_EFI64/nfs; - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/iso" ] || sudo ln -s $DST_ISO/ $DST_TFTP_ETH0/$DST_PXE_EFI64/iso; - - [ -h "$DST_TFTP_ETH0/$DST_PXE_EFI64/linux.c32" ] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 $DST_TFTP_ETH0/$DST_PXE_EFI64/; - [ -f "$DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot" ] || (\ + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/ldlinux.e64" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso"; + + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" ]] || (\ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_PXE_EFI64/wimboot &>/dev/null); + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" &>/dev/null); - handle_pxe_menu $DST_PXE_EFI64 default; + handle_pxe_menu "${DST_PXE_EFI64:?}" default; } @@ -618,37 +619,36 @@ handle_pxe() { handle_ipxe() { echo -e "\e[32mhandle_ipxe()\e[0m"; - local DST_IPXE=menu-ipxe - local FILE_MENU=$DST_TFTP_ETH0/$DST_IPXE/menu.ipxe - local FILE_BASE=http://$IP_ETH0/srv + local FILE_MENU="${DST_TFTP_ETH0:?}/${DST_IPXE:?}/menu.ipxe" + local FILE_BASE="http://${IP_ETH0:?}/srv" - if ! [ -d "$DST_TFTP_ETH0/$DST_IPXE" ]; then sudo mkdir -p $DST_TFTP_ETH0/$DST_IPXE; fi + if ! [[ -d "${DST_TFTP_ETH0:?}/${DST_IPXE:?}" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_IPXE:?}"; fi ###################################################################### # http://ipxe.org/docs # http://ipxe.org/howto/chainloading ###################################################################### - if (! compare_last_modification_time $DST_TFTP_ETH0/$DST_IPXE/ipxe.efi https://boot.ipxe.org/ipxe.efi); then + if (! compare_last_modification_time "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi); then echo -e "\e[36m download iPXE stuff\e[0m"; - sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/ipxe.efi https://boot.ipxe.org/ipxe.efi; - sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/undionly.kpxe https://boot.ipxe.org/undionly.kpxe; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/undionly.kpxe" https://boot.ipxe.org/undionly.kpxe; - [ -f "$DST_TFTP_ETH0/$DST_IPXE/wimboot" ] || (\ + [[ -f "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" ]] || (\ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee $DST_TFTP_ETH0/$DST_IPXE/wimboot &>/dev/null); + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" &>/dev/null); - sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/ipxe.pxe https://boot.ipxe.org/ipxe.pxe; - sudo wget --quiet -O $DST_TFTP_ETH0/$DST_IPXE/ipxe.iso https://boot.ipxe.org/ipxe.iso; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.pxe" https://boot.ipxe.org/ipxe.pxe; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.iso" https://boot.ipxe.org/ipxe.iso; fi - sudo touch $FILE_MENU - . "$script_dir/p2-include-menu.sh" ipxe + sudo touch "${FILE_MENU:?}" + . "${script_dir:?}/p2-include-menu.sh" ipxe } ########################################################################## compare_last_modification_time() { - python3 - << EOF "$1" "$2" + python3 - << EOF "${1:?}" "${2:?}" import sys import os import urllib.request @@ -679,18 +679,23 @@ EOF ########################################################################## handle_iso() { - echo -e "\e[32mhandle_iso(\e[0m$1\e[32m)\e[0m"; + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + ###################################################################### - # $1 : short name - # $2 : download url - # $3 : optional/additional mount flags + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + # local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local FILE_URL=$NAME.url - local FILE_ISO=$NAME.iso - local DST_ORIGINAL=/srv/tmp/original/$NAME + local FILE_URL="${NAME:?}.url" + local FILE_ISO="${NAME:?}.iso" + local DST_ORIGINAL="/srv/tmp/original/${NAME:?}" ###################################################################### + echo -e "\e[32mhandle_iso(\e[0m${NAME:?}\e[32m)\e[0m"; + local timestamping; local bindfs; local vblade; @@ -698,11 +703,11 @@ handle_iso() { local vblade_slot; local fstab_options; - shift; + # collect optional options shift; - while [ $# -gt 0 ]; do - case "$1" in + while [[ $# -gt 0 ]]; do + case "${1}" in timestamping) timestamping=yes; echo -e "\e[36m timestamping\e[0m"; @@ -713,111 +718,111 @@ handle_iso() { ;; vbladed) vblade=yes; - vblade_shelf=$2; - vblade_slot=$3; + vblade_shelf="${2}"; + vblade_slot="${3}"; shift 2; - echo -e "\e[36m vblade_shelf=$vblade_shelf, vblade_slot=$vblade_slot\e[0m"; + echo -e "\e[36m vblade_shelf=${vblade_shelf}, vblade_slot=${vblade_slot}\e[0m"; ;; *) - fstab_options="$1" - echo -e "\e[36m fstab_options=$fstab_options\e[0m"; + fstab_options="${1}" + echo -e "\e[36m fstab_options=${fstab_options}\e[0m"; ;; esac shift; done ###################################################################### - if ! [ -d "$DST_ISO/" ]; then sudo mkdir -p $DST_ISO/; fi - if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi + if ! [[ -d "${DST_ISO:?}/" ]]; then sudo mkdir -p "${DST_ISO:?}/"; fi + if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - if [ "$vblade" == "yes" ]; then - sudo systemctl stop vblade@$(systemd-escape $NAME).service &>/dev/null; + if [[ "${vblade}" == "yes" ]]; then + sudo systemctl stop vblade@$(systemd-escape "${NAME:?}").service &>/dev/null; fi - sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME &>/dev/null; - if [ "$bindfs" == "yes" ]; then sudo umount -f $DST_ORIGINAL 2> /dev/null; fi + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; + if [[ "${bindfs}" == "yes" ]]; then sudo umount -f "${DST_ORIGINAL:?}" 2> /dev/null; fi - if [ -z $URL ]; then - if ! [ -s "$DST_ISO/$FILE_ISO" ] \ - && [ -s "$SRC_ISO/$FILE_ISO" ] \ - && [ -f "$SRC_ISO/$FILE_URL" ]; \ + if [[ -z "${URL}" ]]; then + if ! [[ -s "${DST_ISO:?}/${FILE_ISO:?}" ]] \ + && [[ -s "${SRC_ISO:?}/${FILE_ISO:?}" ]] \ + && [[ -f "${SRC_ISO:?}/${FILE_URL:?}" ]]; \ then echo -e "\e[36m copy iso from usb-stick\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_ISO $DST_ISO; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_ISO:?}" "${DST_ISO:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_URL:?}" "${DST_ISO:?}"; fi else - if [ -s "$SRC_ISO/$FILE_ISO" ] \ - && [ -f "$SRC_ISO/$FILE_URL" ] \ - && grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ - && ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ + if [[ -s "${SRC_ISO:?}/${FILE_ISO:?}" ]] \ + && [[ -f "${SRC_ISO:?}/${FILE_URL:?}" ]] \ + && grep -q "${URL}" "${SRC_ISO:?}/${FILE_URL:?}" 2> /dev/null \ + && ! grep -q "${URL}" "${DST_ISO:?}/${FILE_URL:?}" 2> /dev/null; \ then echo -e "\e[36m copy iso from usb-stick\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_ISO $DST_ISO; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_ISO:?}" "${DST_ISO:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_URL:?}" "${DST_ISO:?}"; fi - if ! [ -s "$DST_ISO/$FILE_ISO" ] \ - || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ - || ([ "$timestamping" == "yes" ] && ! compare_last_modification_time $DST_ISO/$FILE_ISO $URL); \ + if ! [[ -s "${DST_ISO:?}/${FILE_ISO:?}" ]] \ + || ! grep -q "${URL}" "${DST_ISO:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${timestamping}" == "yes" ]] && ! compare_last_modification_time "${DST_ISO:?}/${FILE_ISO:?}" "${URL:?}"); \ then echo -e "\e[36m download iso image\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rm -f $DST_ISO/$FILE_ISO; - sudo wget -O $DST_ISO/$FILE_ISO $URL; - sudo sh -c "echo '$URL' > $DST_ISO/$FILE_URL"; - sudo touch -r $DST_ISO/$FILE_ISO $DST_ISO/$FILE_URL; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; + sudo wget -O "${DST_ISO:?}/${FILE_ISO:?}" "${URL:?}"; + sudo sh -c "echo '${URL}' > ${DST_ISO:?}/${FILE_URL:?}"; + sudo touch -r "${DST_ISO:?}/${FILE_ISO:?}" "${DST_ISO:?}/${FILE_URL:?}"; fi fi - if ! [ -s $DST_ISO/$FILE_ISO ]; then - sudo rm -f $DST_ISO/$FILE_ISO; - sudo rm -f $DST_ISO/$FILE_URL; + if ! [[ -s "${DST_ISO:?}/${FILE_ISO:?}" ]]; then + sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; fi - if [ -s "$DST_ISO/$FILE_ISO" ]; then - if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then + if [[ -s "${DST_ISO:?}/${FILE_ISO:?}" ]]; then + if ! [[ -d "${DST_NFS_ETH0:?}/${NAME:?}" ]]; then echo -e "\e[36m create nfs folder\e[0m"; - sudo mkdir -p $DST_NFS_ETH0/$NAME; + sudo mkdir -p "${DST_NFS_ETH0:?}/${NAME:?}"; fi - if ! [ -d "$DST_ORIGINAL" ]; then - if [ "$bindfs" == "yes" ]; then + if ! [[ -d "${DST_ORIGINAL:?}" ]]; then + if [[ "${bindfs}" == "yes" ]]; then echo -e "\e[36m create nfs folder\e[0m"; - sudo mkdir -p $DST_ORIGINAL; + sudo mkdir -p "${DST_ORIGINAL:?}"; fi fi - if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/fstab; then echo -e "\e[36m add iso image to fstab\e[0m"; - if [ "$bindfs" == "yes" ]; then - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_ORIGINAL auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; - sudo sh -c "echo '$DST_ORIGINAL $DST_NFS_ETH0/$NAME fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; + if [[ "${bindfs}" == "yes" ]]; then + sudo sh -c "echo '${DST_ISO:?}/${FILE_ISO:?} ${DST_ORIGINAL:?} auto ro,nofail,auto,loop 0 10' >> /etc/fstab"; + sudo sh -c "echo '${DST_ORIGINAL:?} ${DST_NFS_ETH0:?}/${NAME:?} fuse.bindfs ro,auto,force-user=root,force-group=root,perms=a+rX 0 11' >> /etc/fstab"; else - sudo sh -c "echo '$DST_ISO/$FILE_ISO $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop$fstab_options 0 10' >> /etc/fstab"; + sudo sh -c "echo '${DST_ISO:?}/${FILE_ISO:?} ${DST_NFS_ETH0:?}/${NAME:?} auto ro,nofail,auto,loop${fstab_options} 0 10' >> /etc/fstab"; fi fi - if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/exports; then echo -e "\e[36m add nfs folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + sudo sh -c "echo '${DST_NFS_ETH0:?}/${NAME:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - if [ "$bindfs" == "yes" ]; then sudo mount $DST_ORIGINAL; fi - sudo mount $DST_NFS_ETH0/$NAME; - sudo exportfs *:$DST_NFS_ETH0/$NAME; + if [[ "${bindfs}" == "yes" ]]; then sudo mount "${DST_ORIGINAL:?}"; fi + sudo mount "${DST_NFS_ETH0:?}/${NAME:?}"; + sudo exportfs "*:${DST_NFS_ETH0:?}/${NAME:?}"; - if [ "$vblade" == "yes" ]; then + if [[ "${vblade}" == "yes" ]]; then echo -e "\e[36m setup vblade-persistence\e[0m"; - ##cat << EOF | sudo tee /etc/vblade.conf.d/e$vblade_shelf$vblade_slot.conf &>/dev/null - cat << EOF | sudo tee /etc/vblade.conf.d/$NAME.conf &>/dev/null -shelf=$vblade_shelf -slot=$vblade_slot -netif=$INTERFACE_ETH0 -filename=$DST_ISO/$FILE_ISO + ##cat << EOF | sudo tee "/etc/vblade.conf.d/e${vblade_shelf}${vblade_slot}.conf" &>/dev/null + cat << EOF | sudo tee "/etc/vblade.conf.d/${NAME:?}.conf" &>/dev/null +shelf=${vblade_shelf} +slot=${vblade_slot} +netif=${INTERFACE_ETH0:?} +filename=${DST_ISO:?}/${FILE_ISO:?} options='-r' ionice='--class best-effort --classdata 7' EOF @@ -825,12 +830,12 @@ EOF sudo systemctl restart vblade.service; fi else - sudo sed /etc/fstab -i -e "/$NAME/d" - sudo sed /etc/exports -i -e "/$NAME/d" + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" - if [ "$vblade" == "yes" ]; then - sudo systemctl stop vblade@$(systemd-escape $NAME).service &>/dev/null; - sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; + if [[ "${vblade}" == "yes" ]]; then + sudo systemctl stop vblade@$(systemd-escape "${NAME:?}").service &>/dev/null; + sudo rm -f "/etc/vblade.conf.d/${NAME:?}.conf" &>/dev/null; sudo systemctl daemon-reload &>/dev/null; sudo systemctl restart vblade.service &>/dev/null; fi @@ -840,17 +845,22 @@ EOF ########################################################################## _unhandle_iso() { - if [ "_$1_" == "__" ]; then return 0; fi + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - echo -e "\e[32m_unhandle_iso(\e[0m$1\e[32m)\e[0m"; ###################################################################### - # $1 : short name + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + # local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local FILE_URL=$NAME.url - local FILE_ISO=$NAME.iso + local FILE_URL="${NAME:?}.url" + local FILE_ISO="${NAME:?}.iso" ###################################################################### + echo -e "\e[32m_unhandle_iso(\e[0m${NAME:?}\e[32m)\e[0m"; + local timestamping; local bindfs; local vblade; @@ -858,11 +868,11 @@ _unhandle_iso() { local vblade_slot; local fstab_options; - shift; + # collect optional options shift; - while [ $# -gt 0 ]; do - case "$1" in + while [[ $# -gt 0 ]]; do + case "${1}" in timestamping) timestamping=yes; ;; @@ -871,481 +881,508 @@ _unhandle_iso() { ;; vbladed) vblade=yes; - vblade_shelf=$2; - vblade_slot=$3; + vblade_shelf="${2}"; + vblade_slot="${3}"; shift 2; ;; *) - fstab_options="$1" + fstab_options="${1}" ;; esac shift; done ###################################################################### - if [ "$vblade" == "yes" ]; then - sudo systemctl stop vblade@$(systemd-escape $NAME).service &>/dev/null; - sudo rm -f /etc/vblade.conf.d/$NAME.conf &>/dev/null; + if [[ "${vblade}" == "yes" ]]; then + sudo systemctl stop vblade@$(systemd-escape "${NAME:?}").service &>/dev/null; + sudo rm -f "/etc/vblade.conf.d/${NAME:?}.conf" &>/dev/null; sudo systemctl daemon-reload &>/dev/null; sudo systemctl restart vblade.service &>/dev/null; fi - sudo exportfs -u *:$DST_NFS_ETH0/$NAME &>/dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME &>/dev/null; + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rm -f $DST_ISO/$FILE_ISO; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; - sudo rm -rf $DST_NFS_ETH0/$NAME; + sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; - sudo sed /etc/fstab -i -e "/$NAME/d" - sudo sed /etc/exports -i -e "/$NAME/d" + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" - if [ -d "$SRC_ISO" ] \ + if [[ -d "${SRC_ISO:?}" ]] \ && ( \ - ! [ -s "$SRC_ISO/$FILE_ISO" ] \ - || ! grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ - || ([ "$timestamping" == "yes" ] && ! compare_last_modification_time $SRC_ISO/$FILE_ISO $URL) \ + ! [[ -s "${SRC_ISO:?}/${FILE_ISO:?}" ]] \ + || ! grep -q "${URL}" "${SRC_ISO:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${timestamping}" == "yes" ]] && ! compare_last_modification_time "${SRC_ISO:?}/${FILE_ISO:?}" "${URL:?}") \ ); \ then echo -e "\e[36m download iso image to backup location\e[0m"; - sudo rm -f $SRC_ISO/$FILE_URL; - sudo rm -f $SRC_ISO/$FILE_ISO; - sudo wget -O $SRC_ISO/$FILE_ISO $URL; - sudo sh -c "echo '$URL' > $SRC_ISO/$FILE_URL"; - sudo touch -r $SRC_ISO/$FILE_ISO $SRC_ISO/$FILE_URL; + sudo rm -f "${SRC_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${SRC_ISO:?}/${FILE_ISO:?}"; + sudo wget -O "${SRC_ISO:?}/${FILE_ISO:?}" "${URL:?}"; + sudo sh -c "echo '${URL}' > ${SRC_ISO:?}/${FILE_URL:?}"; + sudo touch -r "${SRC_ISO:?}/${FILE_ISO:?}" "${SRC_ISO:?}/${FILE_URL:?}"; fi } ########################################################################## handle_kernel() { - echo -e "\e[32mhandle_kernel(\e[0m$1\e[32m)\e[0m"; + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + ###################################################################### - # $1 : short name - # $2 : download url - # $3 : optional/additional mount flags + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2} : optional options + local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local FILE_URL=$NAME.url - local FILE_KERNEL=$NAME.kernel - local DST_ORIGINAL=/srv/tmp/original/$NAME + local FILE_URL="${NAME:?}.url" + local FILE_KERNEL="${NAME:?}.kernel" + local DST_ORIGINAL="/srv/tmp/original/${NAME:?}" ###################################################################### + echo -e "\e[32mhandle_kernel(\e[0m${NAME:?}\e[32m)\e[0m"; - if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi + if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; - if [ -z $URL ]; then - if ! [ -s "$DST_ISO/$FILE_KERNEL" ] \ - && [ -s "$SRC_ISO/$FILE_KERNEL" ] \ - && [ -f "$SRC_ISO/$FILE_URL" ]; \ + if [[ -z "${URL}" ]]; then + if ! [[ -s "${DST_ISO:?}/${FILE_KERNEL:?}" ]] \ + && [[ -s "${SRC_ISO:?}/${FILE_KERNEL:?}" ]] \ + && [[ -f "${SRC_ISO:?}/${FILE_URL:?}" ]]; \ then echo -e "\e[36m copy kernel from usb-stick\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_KERNEL $DST_ISO; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_KERNEL:?}" "${DST_ISO:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_URL:?}" "${DST_ISO:?}"; fi else - if [ -s "$SRC_ISO/$FILE_KERNEL" ] \ - && [ -f "$SRC_ISO/$FILE_URL" ] \ - && grep -q "$URL" $SRC_ISO/$FILE_URL 2> /dev/null \ - && ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null; \ + if [[ -s "${SRC_ISO:?}/${FILE_KERNEL:?}" ]] \ + && [[ -f "${SRC_ISO:?}/${FILE_URL:?}" ]] \ + && grep -q "${URL}" "${SRC_ISO:?}/${FILE_URL:?}" 2> /dev/null \ + && ! grep -q "${URL}" "${DST_ISO:?}/${FILE_URL:?}" 2> /dev/null; \ then echo -e "\e[36m copy kernel from usb-stick\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_KERNEL $DST_ISO; - sudo rsync -xa --info=progress2 $SRC_ISO/$FILE_URL $DST_ISO; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_KERNEL:?}" "${DST_ISO:?}"; + sudo rsync -xa --info=progress2 "${SRC_ISO:?}/${FILE_URL:?}" "${DST_ISO:?}"; fi - if ! [ -s "$DST_ISO/$FILE_KERNEL" ] \ - || ! grep -q "$URL" $DST_ISO/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_ISO/$FILE_KERNEL $URL); \ + if ! [[ -s "${DST_ISO:?}/${FILE_KERNEL:?}" ]] \ + || ! grep -q "${URL}" "${DST_ISO:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_ISO:?}/${FILE_KERNEL:?}" "${URL:?}"); \ then echo -e "\e[36m download kernel image\e[0m"; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rm -f $DST_ISO/$FILE_KERNEL; - sudo wget -O $DST_ISO/$FILE_KERNEL $URL; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_KERNEL:?}"; + sudo wget -O "${DST_ISO:?}/${FILE_KERNEL:?}" "${URL:?}"; - sudo sh -c "echo '$URL' > $DST_ISO/$FILE_URL"; - sudo touch -r $DST_ISO/$FILE_KERNEL $DST_ISO/$FILE_URL; + sudo sh -c "echo '${URL}' > ${DST_ISO:?}/${FILE_URL:?}"; + sudo touch -r "${DST_ISO:?}/${FILE_KERNEL:?}" "${DST_ISO:?}/${FILE_URL:?}"; fi fi - if ! [ -s $DST_ISO/$FILE_KERNEL ]; then - sudo rm -f $DST_ISO/$FILE_KERNEL; - sudo rm -f $DST_ISO/$FILE_URL; + if ! [[ -s "${DST_ISO:?}/${FILE_KERNEL:?}" ]]; then + sudo rm -f "${DST_ISO:?}/${FILE_KERNEL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; fi - if [ -s "$DST_ISO/$FILE_KERNEL" ]; then - if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then + if [[ -s "${DST_ISO:?}/${FILE_KERNEL:?}" ]]; then + if ! [[ -d "${DST_NFS_ETH0:?}/${NAME:?}" ]]; then echo -e "\e[36m create nfs folder\e[0m"; - sudo mkdir -p $DST_NFS_ETH0/$NAME; + sudo mkdir -p "${DST_NFS_ETH0:?}/${NAME:?}"; fi - sudo cp $DST_ISO/$FILE_KERNEL $DST_NFS_ETH0/$NAME/kernel + sudo cp "${DST_ISO:?}/${FILE_KERNEL:?}" "${DST_NFS_ETH0:?}/${NAME:?}/kernel" - if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/exports; then echo -e "\e[36m add nfs folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + sudo sh -c "echo '${DST_NFS_ETH0:?}/${NAME:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - sudo exportfs *:$DST_NFS_ETH0/$NAME; + sudo exportfs "*:${DST_NFS_ETH0:?}/${NAME:?}"; else - sudo sed /etc/exports -i -e "/$NAME/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" fi } ########################################################################## _unhandle_kernel() { - if [ "_$1_" == "__" ]; then return 0; fi + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - echo -e "\e[32m_unhandle_kernel(\e[0m$1\e[32m)\e[0m"; ###################################################################### - # $1 : short name + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" ###################################################################### - local NAME=$1 - local FILE_URL=$NAME.url - local FILE_KERNEL=$NAME.kernel + local NAME="${1:?}" + local FILE_URL="${NAME:?}.url" + local FILE_KERNEL="${NAME:?}.kernel" ###################################################################### + echo -e "\e[32m_unhandle_kernel(\e[0m${NAME:?}\e[32m)\e[0m"; - sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; - sudo rm -f $DST_ISO/$FILE_URL; - sudo rm -f $DST_ISO/$FILE_KERNEL; + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_KERNEL:?}"; - sudo rm -rf $DST_NFS_ETH0/$NAME; + sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; - sudo sed /etc/exports -i -e "/$NAME/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" } ########################################################################## handle_img() { - echo -e "\e[32mhandle_img(\e[0m$1\e[32m)\e[0m"; + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + ###################################################################### - # $1 : short name - # $2 : download url + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local FILE_URL=$NAME.url - local FILE_IMG=$NAME.img + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" ###################################################################### + echo -e "\e[32mhandle_img(\e[0m${NAME:?}\e[32m)\e[0m"; - if ! [ -d "$DST_IMG/" ]; then sudo mkdir -p $DST_IMG/; fi - if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi + if ! [[ -d "${DST_IMG:?}/" ]]; then sudo mkdir -p "${DST_IMG:?}/"; fi + if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; -# sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME; + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; +# sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}"; - if [ -z $URL ]; then - if ! [ -s "$DST_IMG/$FILE_IMG" ] \ - && [ -s "$SRC_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_URL" ]; \ + if [[ -z "${URL}" ]]; then + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]]; \ then echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f $FILE_IMG/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; fi else - if [ -s "$SRC_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_URL" ] \ - && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ - && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ + if [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]] \ + && grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + && ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null; \ then echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f $FILE_IMG/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; fi - if ! [ -s "$DST_IMG/$FILE_IMG" ] \ - || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_IMG/$FILE_URL $URL); \ + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_IMG:?}/${FILE_URL:?}" "${URL:?}"); \ then echo -e "\e[36m download image\e[0m"; - sudo rm -f $DST_IMG/$FILE_IMG; - sudo rm -f $DST_IMG/$FILE_URL; - sudo wget -O $DST_IMG/$FILE_IMG $URL; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + sudo wget -O "${DST_IMG:?}/${FILE_IMG:?}" "${URL:?}"; - sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; - sudo touch -r $DST_IMG/$FILE_IMG $DST_IMG/$FILE_URL; + sudo sh -c "echo '${URL}' > ${DST_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${DST_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}/${FILE_URL:?}"; fi fi - if ! [ -s $DST_IMG/$FILE_IMG ]; then - sudo rm -f $DST_IMG/$FILE_IMG; - sudo rm -f $DST_IMG/$FILE_URL; + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; fi - if [ -s "$DST_IMG/$FILE_IMG" ]; then - local OFFSET_PART1=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $4}' | sed 's/,//'))) - local SIZE_PART1=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $6}' | sed 's/,//'))) - #sfdisk -d $DST_IMG/$FILE_IMG + if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + local OFFSET_PART1=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) + local SIZE_PART1=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) + #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" ## partition1 - if ! [ -d "$DST_NFS_ETH0/$NAME" ]; then + if ! [[ -d "${DST_NFS_ETH0:?}/${NAME:?}" ]]; then echo -e "\e[36m create image folder\e[0m"; - sudo mkdir -p $DST_NFS_ETH0/$NAME; + sudo mkdir -p "${DST_NFS_ETH0:?}/${NAME:?}"; fi - if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/fstab; then + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/fstab; then echo -e "\e[36m add image to fstab\e[0m"; - sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_ETH0/$NAME auto ro,nofail,auto,loop,offset=$OFFSET_PART1,sizelimit=$SIZE_PART1 0 11' >> /etc/fstab"; + sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_ETH0:?}/${NAME:?} auto ro,nofail,auto,loop,offset=${OFFSET_PART1:?},sizelimit=${SIZE_PART1:?} 0 11' >> /etc/fstab"; fi - if ! grep -q "$DST_NFS_ETH0/$NAME" /etc/exports; then + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/exports; then echo -e "\e[36m add image folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ETH0/$NAME *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + sudo sh -c "echo '${DST_NFS_ETH0:?}/${NAME:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - sudo mount $DST_NFS_ETH0/$NAME; - sudo exportfs *:$DST_NFS_ETH0/$NAME; + sudo mount "${DST_NFS_ETH0:?}/${NAME:?}"; + sudo exportfs "*:${DST_NFS_ETH0:?}/${NAME:?}"; else ## partition1 - sudo sed /etc/fstab -i -e "/$NAME/d" - sudo sed /etc/exports -i -e "/$NAME/d" + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" fi } ########################################################################## _unhandle_img() { - if [ "_$1_" == "__" ]; then return 0; fi + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - echo -e "\e[32m_unhandle_img(\e[0m$1\e[32m)\e[0m"; ###################################################################### - # $1 : short name + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local FILE_URL=$NAME.url - local FILE_IMG=$NAME.img + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" ###################################################################### + echo -e "\e[32m_unhandle_img(\e[0m${NAME:?}\e[32m)\e[0m"; - sudo exportfs -u *:$DST_NFS_ETH0/$NAME 2> /dev/null; - sudo umount -f $DST_NFS_ETH0/$NAME 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; - sudo rm -f $DST_IMG/$FILE_URL; - sudo rm -f $DST_IMG/$FILE_IMG; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - sudo rm -rf $DST_NFS_ETH0/$NAME; + sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; - sudo sed /etc/fstab -i -e "/$NAME/d" - sudo sed /etc/exports -i -e "/$NAME/d" + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" - if [ -d "$SRC_IMG" ] \ + if [[ -d "${SRC_IMG:?}" ]] \ && ( \ - ! [ -s "$SRC_IMG/$FILE_IMG" ] \ - || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_IMG/$FILE_IMG $URL) \ + ! [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${SRC_IMG:?}/${FILE_IMG:?}" "${URL:?}") \ ); \ then echo -e "\e[36m download image to backup location\e[0m"; - sudo rm -f $SRC_IMG/$FILE_URL; - sudo rm -f $SRC_IMG/$FILE_IMG; - sudo wget -O $SRC_IMG/$FILE_IMG $URL; - sudo sh -c "echo '$URL' > $SRC_IMG/$FILE_URL"; - sudo touch -r $SRC_IMG/$FILE_IMG $SRC_IMG/$FILE_URL; + sudo rm -f "${SRC_IMG:?}/${FILE_URL:?}"; + sudo rm -f "${SRC_IMG:?}/${FILE_IMG:?}"; + sudo wget -O "${SRC_IMG:?}/${FILE_IMG:?}" "${URL:?}"; + sudo sh -c "echo '${URL}' > ${SRC_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${SRC_IMG:?}/${FILE_IMG:?}" "${SRC_IMG:?}/${FILE_URL:?}"; fi } ########################################################################## handle_zip_img() { - echo -e "\e[32mhandle_zip_img(\e[0m$1\e[32m)\e[0m"; + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + ###################################################################### - # $1 : short name - # $2 : download url + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2} : optional options + local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local RAW_FILENAME=$(basename $URL .zip) - local RAW_FILENAME_ZIP=$RAW_FILENAME.zip - local NAME_BOOT=$NAME-boot - local NAME_ROOT=$NAME-root - local DST_NFS_BOOT=$DST_NFS_ETH0/$NAME_BOOT - local DST_NFS_ROOT=$DST_NFS_ETH0/$NAME_ROOT - local FILE_URL=$NAME.url - local FILE_IMG=$NAME.img + local RAW_FILENAME=$(basename "${URL:?}" .zip) + local RAW_FILENAME_ZIP="${RAW_FILENAME:?}.zip" + local NAME_BOOT="${NAME:?}-boot" + local NAME_ROOT="${NAME:?}-root" + local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" + local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" ###################################################################### + echo -e "\e[32mhandle_zip_img(\e[0m${NAME:?}\e[32m)\e[0m"; - if ! [ -d "$DST_IMG/" ]; then sudo mkdir -p $DST_IMG/; fi - if ! [ -d "$DST_NFS_ETH0/" ]; then sudo mkdir -p $DST_NFS_ETH0/; fi + if ! [[ -d "${DST_IMG:?}/" ]]; then sudo mkdir -p "${DST_IMG:?}/"; fi + if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; - sudo umount -f $DST_NFS_BOOT 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; - sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; - sudo umount -f $DST_NFS_ROOT 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; - if [ -z $URL ]; then - if ! [ -s "$DST_IMG/$FILE_IMG" ] \ - && [ -s "$SRC_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_URL" ]; \ + if [[ -z "${URL}" ]]; then + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]]; \ then echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f $FILE_IMG/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; fi else - if [ -s "$SRC_IMG/$FILE_IMG" ] \ - && [ -f "$SRC_IMG/$FILE_URL" ] \ - && grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ - && ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null; \ + if [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]] \ + && grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + && ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null; \ then echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f $FILE_IMG/$FILE_URL; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_IMG $DST_IMG; - sudo rsync -xa --info=progress2 $SRC_IMG/$FILE_URL $DST_IMG; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; fi - if ! [ -s "$DST_IMG/$FILE_IMG" ] \ - || ! grep -q "$URL" $DST_IMG/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $DST_IMG/$FILE_URL $URL); \ + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_IMG:?}/${FILE_URL:?}" "${URL:?}"); \ then echo -e "\e[36m download image\e[0m"; - sudo rm -f $DST_IMG/$FILE_IMG; - sudo rm -f $DST_IMG/$FILE_URL; - sudo wget -O $DST_IMG/$RAW_FILENAME_ZIP $URL; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + sudo wget -O "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" "${URL:?}"; - sudo sh -c "echo '$URL' > $DST_IMG/$FILE_URL"; - sudo touch -r $DST_IMG/$RAW_FILENAME_ZIP $DST_IMG/$FILE_URL; + sudo sh -c "echo '${URL}' > ${DST_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" "${DST_IMG:?}/${FILE_URL:?}"; echo -e "\e[36m extract image\e[0m"; - sudo unzip $DST_IMG/$RAW_FILENAME_ZIP -d $DST_IMG > /tmp/output.tmp; - sudo rm -f $DST_IMG/$RAW_FILENAME_ZIP; + sudo unzip "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" -d "${DST_IMG:?}" > /tmp/output.tmp; + sudo rm -f "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}"; local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) - sudo mv $DST_IMG/$RAW_FILENAME_IMG $DST_IMG/$FILE_IMG; + sudo mv "${DST_IMG:?}/${RAW_FILENAME_IMG:?}" "${DST_IMG:?}/${FILE_IMG:?}"; rm /tmp/output.tmp fi fi - if ! [ -s $DST_IMG/$FILE_IMG ]; then - sudo rm -f $DST_IMG/$FILE_IMG; - sudo rm -f $DST_IMG/$FILE_URL; + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; fi - if [ -s "$DST_IMG/$FILE_IMG" ]; then - local OFFSET_BOOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $4}' | sed 's/,//'))) - local SIZE_BOOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\1 | awk '{print $6}' | sed 's/,//'))) - local OFFSET_ROOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\2 | awk '{print $4}' | sed 's/,//'))) - local SIZE_ROOT=$((512*$(sfdisk -d $DST_IMG/$FILE_IMG | grep $DST_IMG/$FILE_IMG\2 | awk '{print $6}' | sed 's/,//'))) - #sfdisk -d $DST_IMG/$FILE_IMG + if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + local OFFSET_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) + local SIZE_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) + local OFFSET_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $4}' | sed 's/,//'))) + local SIZE_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $6}' | sed 's/,//'))) + #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" - sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" - sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" + sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" + sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" ## boot - if ! [ -d "$DST_NFS_BOOT" ]; then + if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then echo -e "\e[36m create image-boot folder\e[0m"; - sudo mkdir -p $DST_NFS_BOOT; + sudo mkdir -p "${DST_NFS_BOOT:?}"; fi - if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then + if ! grep -q "${DST_NFS_BOOT:?}" /etc/fstab; then echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_BOOT auto ro,nofail,auto,loop,offset=$OFFSET_BOOT,sizelimit=$SIZE_BOOT 0 11' >> /etc/fstab"; + sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_BOOT:?} auto ro,nofail,auto,loop,offset=${OFFSET_BOOT:?},sizelimit=${SIZE_BOOT:?} 0 11' >> /etc/fstab"; fi - if ! grep -q "$DST_NFS_BOOT" /etc/exports; then + if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then echo -e "\e[36m add image-boot folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_BOOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + sudo sh -c "echo '${DST_NFS_BOOT:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi ## root - if ! [ -d "$DST_NFS_ROOT" ]; then + if ! [[ -d "${DST_NFS_ROOT:?}" ]]; then echo -e "\e[36m create image-root folder\e[0m"; - sudo mkdir -p $DST_NFS_ROOT; + sudo mkdir -p "${DST_NFS_ROOT:?}"; fi - if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then + if ! grep -q "${DST_NFS_ROOT:?}" /etc/fstab; then echo -e "\e[36m add image-root to fstab\e[0m"; - sudo sh -c "echo '$DST_IMG/$FILE_IMG $DST_NFS_ROOT auto ro,nofail,auto,loop,offset=$OFFSET_ROOT,sizelimit=$SIZE_ROOT 0 11' >> /etc/fstab"; + sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_ROOT:?} auto ro,nofail,auto,loop,offset=${OFFSET_ROOT:?},sizelimit=${SIZE_ROOT:?} 0 11' >> /etc/fstab"; fi - if ! grep -q "$DST_NFS_ROOT" /etc/exports; then + if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then echo -e "\e[36m add image-root folder to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ROOT *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + sudo sh -c "echo '${DST_NFS_ROOT:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - sudo mount $DST_NFS_BOOT; - sudo exportfs *:$DST_NFS_BOOT; + sudo mount "${DST_NFS_BOOT:?}"; + sudo exportfs "*:${DST_NFS_BOOT:?}"; - sudo mount $DST_NFS_ROOT; - sudo exportfs *:$DST_NFS_ROOT; + sudo mount "${DST_NFS_ROOT:?}"; + sudo exportfs "*:${DST_NFS_ROOT:?}"; else ## boot - sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" - sudo sed /etc/exports -i -e "/$NAME_BOOT/d" + sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_BOOT:?}/d" ## root - sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" - sudo sed /etc/exports -i -e "/$NAME_ROOT/d" + sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" fi } ########################################################################## _unhandle_zip_img() { - echo -e "\e[32m_unhandle_zip_img(\e[0m$1\e[32m)\e[0m"; + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + ###################################################################### - # $1 : short name - # $2 : download url + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2} : optional options + local OPT=${2} ###################################################################### - local NAME=$1 - local URL=$2 - local RAW_FILENAME=$(basename $URL .zip) - local RAW_FILENAME_ZIP=$RAW_FILENAME.zip - local NAME_BOOT=$NAME-boot - local NAME_ROOT=$NAME-root - local DST_NFS_BOOT=$DST_NFS_ETH0/$NAME_BOOT - local DST_NFS_ROOT=$DST_NFS_ETH0/$NAME_ROOT - local FILE_URL=$NAME.url - local FILE_IMG=$NAME.img + local RAW_FILENAME=$(basename "${URL:?}" .zip) + local RAW_FILENAME_ZIP="${RAW_FILENAME:?}.zip" + local NAME_BOOT="${NAME:?}-boot" + local NAME_ROOT="${NAME:?}-root" + local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" + local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" ###################################################################### + echo -e "\e[32m_unhandle_zip_img(\e[0m${NAME:?}\e[32m)\e[0m"; ## boot - sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; - sudo umount -f $DST_NFS_BOOT 2> /dev/null; - sudo rm -rf $DST_NFS_BOOT; - sudo sed /etc/fstab -i -e "/$NAME_BOOT/d" - sudo sed /etc/exports -i -e "/$NAME_BOOT/d" + sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; + sudo rm -rf "${DST_NFS_BOOT:?}"; + sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_BOOT:?}/d" ## root - sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; - sudo umount -f $DST_NFS_ROOT 2> /dev/null; - sudo rm -rf $DST_NFS_ROOT; - sudo sed /etc/fstab -i -e "/$NAME_ROOT/d" - sudo sed /etc/exports -i -e "/$NAME_ROOT/d" + sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; + sudo rm -rf "${DST_NFS_ROOT:?}"; + sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" ## img - sudo rm -f $DST_IMG/$FILE_IMG; - sudo rm -f $DST_IMG/$FILE_URL; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - if [ -d "$SRC_IMG" ] \ + if [[ -d "${SRC_IMG:?}" ]] \ && ( \ - ! [ -s "$SRC_IMG/$FILE_IMG" ] \ - || ! grep -q "$URL" $SRC_IMG/$FILE_URL 2> /dev/null \ - || ([ "$3" == "timestamping" ] && ! compare_last_modification_time $SRC_IMG/$FILE_URL $URL) \ + ! [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${SRC_IMG:?}/${FILE_URL:?}" "${URL:?}") \ ); \ then echo -e "\e[36m download image to backup location\e[0m"; - sudo rm -f $SRC_IMG/$FILE_IMG; - sudo rm -f $SRC_IMG/$FILE_URL; - sudo wget -O $SRC_IMG/$RAW_FILENAME_ZIP $URL; + sudo rm -f "${SRC_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${SRC_IMG:?}/${FILE_URL:?}"; + sudo wget -O "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" "${URL:?}"; - sudo sh -c "echo '$URL' > $SRC_IMG/$FILE_URL"; - sudo touch -r $SRC_IMG/$RAW_FILENAME_ZIP $SRC_IMG/$FILE_URL; + sudo sh -c "echo '${URL}' > ${SRC_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" "${SRC_IMG:?}/${FILE_URL:?}"; echo -e "\e[36m extract image to backup location\e[0m"; - sudo unzip $SRC_IMG/$RAW_FILENAME_ZIP -d $SRC_IMG > /tmp/output.tmp; - sudo rm -f $SRC_IMG/$RAW_FILENAME_ZIP; + sudo unzip "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" -d "${SRC_IMG:?}" > /tmp/output.tmp; + sudo rm -f "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}"; local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) - sudo mv $SRC_IMG/$RAW_FILENAME_IMG $SRC_IMG/$FILE_IMG; + sudo mv "${SRC_IMG:?}/${RAW_FILENAME_IMG:?}" "${SRC_IMG:?}/${FILE_IMG:?}"; rm /tmp/output.tmp fi } @@ -1354,21 +1391,21 @@ _unhandle_zip_img() { handle_rpi_pxe_customization() { echo -e "\e[36m handle_rpi_pxe_customization()\e[0m"; ###################################################################### - local DST_CUSTOM_BOOT=$1 - local DST_CUSTOM_ROOT=$2 - local FLAGS=$3 + local DST_CUSTOM_BOOT="${1:?}" + local DST_CUSTOM_ROOT="${2:?}" + local FLAGS="${3:?}" ###################################################################### - if (echo $FLAGS | grep -q redo); then + if (echo "${FLAGS:?}" | grep -q redo); then ################################################################## - if (echo $FLAGS | grep -q cmdline); then + if (echo "${FLAGS:?}" | grep -q cmdline); then echo -e "\e[36m add cmdline file\e[0m"; - sudo sh -c "echo 'dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 plymouth.ignore-serial-consoles root=/dev/nfs nfsroot=$IP_ETH0:$DST_NFS_ROOT,vers=3 rootwait rw ip=dhcp elevator=deadline net.ifnames=0 consoleblank=0' > $DST_CUSTOM_BOOT/cmdline.txt"; + sudo sh -c "echo 'dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 plymouth.ignore-serial-consoles root=/dev/nfs nfsroot=${IP_ETH0:?}:${DST_NFS_ROOT:?},vers=3 rootwait rw ip=dhcp elevator=deadline net.ifnames=0 consoleblank=0' > ${DST_CUSTOM_BOOT:?}/cmdline.txt"; fi ################################################################## - if (echo $FLAGS | grep -q config); then + if (echo "${FLAGS:?}" | grep -q config); then echo -e "\e[36m add config file\e[0m"; - cat << EOF | sudo tee $DST_CUSTOM_BOOT/config.txt + cat << EOF | sudo tee "${DST_CUSTOM_BOOT:?}/config.txt" &>/dev/null # Enable audio (loads snd_bcm2835) dtparam=audio=on @@ -1394,31 +1431,31 @@ EOF fi ################################################################## - if (echo $FLAGS | grep -q ssh); then + if (echo "${FLAGS:?}" | grep -q ssh); then echo -e "\e[36m add ssh file\e[0m"; - sudo touch $DST_CUSTOM_BOOT/ssh; + sudo touch "${DST_CUSTOM_BOOT:?}/ssh"; fi ################################################################## - if (echo $FLAGS | grep -q root); then + if (echo "${FLAGS:?}" | grep -q root); then ############################################################## - if (echo $FLAGS | grep -q fstab); then + if (echo "${FLAGS:?}" | grep -q fstab); then echo -e "\e[36m add fstab file\e[0m"; - cat << EOF | sudo tee $DST_CUSTOM_ROOT/etc/fstab &>/dev/null + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/fstab" &>/dev/null ######################################## proc /proc proc defaults 0 0 -$IP_ETH0:$DST_NFS_ROOT / nfs defaults,noatime 0 1 -$IP_ETH0:$DST_NFS_BOOT /boot nfs defaults,noatime 0 2 +${IP_ETH0:?}:${DST_NFS_ROOT:?} / nfs defaults,noatime 0 1 +${IP_ETH0:?}:${DST_NFS_BOOT:?} /boot nfs defaults,noatime 0 2 EOF - sudo rm $DST_CUSTOM_ROOT/etc/init.d/resize2fs_once; + sudo rm "${DST_CUSTOM_ROOT:?}/etc/init.d/resize2fs_once"; fi ############################################################## - if (echo $FLAGS | grep -q wpa); then + if (echo "${FLAGS:?}" | grep -q wpa); then echo -e "\e[36m add wpa_supplicant template file\e[0m"; - cat << EOF | sudo tee $DST_CUSTOM_ROOT/etc/wpa_supplicant/wpa_supplicant.conf &>/dev/null + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/wpa_supplicant/wpa_supplicant.conf" &>/dev/null ######################################## -country=$COUNTRY_WLAN0 +country=${COUNTRY_WLAN0:?} ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 @@ -1434,16 +1471,16 @@ network={ key_mgmt=WPA-PSK } EOF - if [ -s "$SRC_BACKUP/wpa_supplicant.conf" ]; then + if [[ -s "${SRC_BACKUP:?}/wpa_supplicant.conf" ]]; then echo -e "\e[36m add wpa_supplicant file from backup\e[0m"; - sudo rsync -xa --info=progress2 $SRC_BACKUP/wpa_supplicant.conf $DST_CUSTOM_ROOT/etc/wpa_supplicant/ + sudo rsync -xa --info=progress2 "${SRC_BACKUP:?}/wpa_supplicant.conf" "${DST_CUSTOM_ROOT:?}/etc/wpa_supplicant/" fi fi ############################################################## - if (echo $FLAGS | grep -q history); then + if (echo "${FLAGS:?}" | grep -q history); then echo -e "\e[36m add .bash_history file\e[0m"; - cat << EOF | sudo tee $DST_CUSTOM_ROOT/home/pi/.bash_history &>/dev/null + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/home/pi/.bash_history" &>/dev/null sudo poweroff sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y --purge && sudo apt autoclean -y && sync && echo Done. sudo nano /etc/resolv.conf @@ -1455,16 +1492,16 @@ wpa_passphrase sudo iwlist wlan0 scan [essid ] sudo raspi-config EOF - sudo chown 1000:1000 $DST_CUSTOM_ROOT/home/pi/.bash_history; + sudo chown 1000:1000 "${DST_CUSTOM_ROOT:?}/home/pi/.bash_history"; fi ################################################################## - if (echo $FLAGS | grep -q apt); then + if (echo "${FLAGS:?}" | grep -q apt); then ############################################################## - if ! [ -f "$DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy" ]; then + if ! [[ -f "${DST_CUSTOM_ROOT:?}/etc/apt/apt.conf.d/01proxy" ]]; then echo -e "\e[36m add apt proxy file\e[0m"; - cat << EOF | sudo tee $DST_CUSTOM_ROOT/etc/apt/apt.conf.d/01proxy &>/dev/null -Acquire::http::Proxy "http://$IP_ETH0:3142"; + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/apt/apt.conf.d/01proxy" &>/dev/null +Acquire::http::Proxy "http://${IP_ETH0:?}:3142"; EOF fi fi @@ -1474,273 +1511,335 @@ EOF ########################################################################## handle_rpi_pxe_classic() { - echo -e "\e[32mhandle_rpi_pxe_classic(\e[0m$1\e[32m)\e[0m"; - ###################################################################### - # $1 : short name - # $2 : serial number - # $3 : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) - ###################################################################### - local NAME=$1 - local SN=$2 - local FLAGS=$3 - local NAME_BOOT=$NAME-boot - local NAME_ROOT=$NAME-root - local DST_SN_BOOT=$SN-boot - local DST_SN_ROOT=$SN-root - local SRC_BOOT=$DST_NFS_ETH0/$NAME_BOOT - local SRC_ROOT=$DST_NFS_ETH0/$NAME_ROOT - local DST_NFS_BOOT=$DST_NFS_ETH0/$DST_SN_BOOT - local DST_NFS_ROOT=$DST_NFS_ETH0/$DST_SN_ROOT - local FILE_URL=$NAME.url + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + + # ${!1} : name of VARIABLE + # ${!2} : name of VARIABLE for serial number + # ${3} : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) + ############################################################## + local NAME="${!1}" + local SN="${!2}" + local FLAGS="${3}" + local NAME_BOOT="${NAME:?}-boot" + local NAME_ROOT="${NAME:?}-root" + local DST_SN_BOOT="${SN:?}-boot" + local DST_SN_ROOT="${SN:?}-root" + local SRC_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" + local SRC_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" + local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${DST_SN_BOOT:?}" + local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${DST_SN_ROOT:?}" + local FILE_URL="${NAME:?}.url" ###################################################################### - local DST_CUSTOM_BOOT=$DST_NFS_BOOT - local DST_CUSTOM_ROOT=$DST_NFS_ROOT + local DST_CUSTOM_BOOT="${DST_NFS_BOOT:?}" + local DST_CUSTOM_ROOT="${DST_NFS_ROOT:?}" ###################################################################### + echo -e "\e[32mhandle_rpi_pxe_classic(\e[0m${NAME:?}\e[32m)\e[0m"; - sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; - sudo umount -f $DST_NFS_BOOT 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; - sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; - sudo umount -f $DST_NFS_BOOT 2> /dev/null; + sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; ###################################################################### - if (echo $FLAGS | grep -q redo) \ - || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_NFS_BOOT/$FILE_URL 2> /dev/null; then + if (echo "${FLAGS:?}" | grep -q redo) \ + || ( [[ -f "${DST_IMG:?}/${FILE_URL:?}" ]] && ! grep -q $(cat "${DST_IMG:?}/${FILE_URL:?}") "${DST_NFS_BOOT:?}/${FILE_URL:?}" ) 2> /dev/null; then echo -e "\e[36m delete old boot files\e[0m"; - sudo rm -rf $DST_NFS_BOOT; + sudo rm -rf "${DST_NFS_BOOT:?}"; echo -e "\e[36m delete old root files\e[0m"; - sudo rm -rf $DST_NFS_ROOT; - sudo sed /etc/fstab -i -e "/$DST_SN_BOOT/d" - sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" - sudo sed /etc/exports -i -e "/$DST_SN_BOOT/d" - sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" - local FLAGS=$FLAGS,redo + sudo rm -rf "${DST_NFS_ROOT:?}"; + sudo sed /etc/fstab -i -e "/${DST_SN_BOOT:?}/d" + sudo sed /etc/fstab -i -e "/${DST_SN_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${DST_SN_BOOT:?}/d" + sudo sed /etc/exports -i -e "/${DST_SN_ROOT:?}/d" + local FLAGS="${FLAGS:?}",redo fi ###################################################################### - if ! [ -d "$DST_NFS_BOOT" ]; then + if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then echo -e "\e[36m copy boot files\e[0m"; - sudo mkdir -p $DST_NFS_BOOT; - sudo rsync -xa --info=progress2 $SRC_BOOT/* $DST_NFS_BOOT/ + sudo mkdir -p "${DST_NFS_BOOT:?}"; + sudo rsync -xa --info=progress2 "${SRC_BOOT:?}/"* "${DST_NFS_BOOT:?}/" fi - if ! [ -d "$DST_NFS_ROOT" ] \ - && (echo $FLAGS | grep -q root); then + if ! [[ -d "${DST_NFS_ROOT:?}" ]] \ + && (echo "${FLAGS:?}" | grep -q root); then echo -e "\e[36m copy root files\e[0m"; - sudo mkdir -p $DST_NFS_ROOT; - sudo rsync -xa --info=progress2 $SRC_ROOT/* $DST_NFS_ROOT/ + sudo mkdir -p "${DST_NFS_ROOT:?}"; + sudo rsync -xa --info=progress2 "${SRC_ROOT:?}/"* "${DST_NFS_ROOT:?}/" fi ###################################################################### - if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi + if ! [[ -h "${DST_TFTP_ETH0:?}/${SN:?}" ]]; then sudo ln -s "${DST_NFS_BOOT:?}/" "${DST_TFTP_ETH0:?}/${SN:?}"; fi ###################################################################### - sudo cp $DST_IMG/$FILE_URL $DST_CUSTOM_BOOT/$FILE_URL; - handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; + sudo cp "${DST_IMG:?}/${FILE_URL:?}" "${DST_CUSTOM_BOOT:?}/${FILE_URL:?}"; + handle_rpi_pxe_customization "${DST_CUSTOM_BOOT:?}" "${DST_CUSTOM_ROOT:?}" "${FLAGS:?}"; ###################################################################### - if ! grep -q "$DST_NFS_BOOT" /etc/exports; then - echo -e "\e[36m add $DST_NFS_BOOT to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then + echo -e "\e[36m add ${DST_NFS_BOOT:?} to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_BOOT:?} *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; fi - sudo exportfs *:$DST_NFS_BOOT; + sudo exportfs "*:${DST_NFS_BOOT:?}"; ###################################################################### - if (echo $FLAGS | grep -q root); then - if ! grep -q "$DST_NFS_ROOT" /etc/exports; then - echo -e "\e[36m add $DST_NFS_ROOT to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; + if (echo "${FLAGS:?}" | grep -q root); then + if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then + echo -e "\e[36m add ${DST_NFS_ROOT:?} to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_ROOT:?} *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; fi - sudo exportfs *:$DST_NFS_ROOT; + sudo exportfs "*:${DST_NFS_ROOT:?}"; else - sudo sed /etc/exports -i -e "/$NAME_ROOT/d" + sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" fi ###################################################################### - if ! [ -f "$DST_TFTP_ETH0/bootcode.bin" ]; then + if ! [[ -f "${DST_TFTP_ETH0:?}/bootcode.bin" ]]; then echo -e "\e[36m download bootcode.bin for RPi3 network booting\e[0m"; - sudo wget -O $DST_TFTP_ETH0/bootcode.bin https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; + sudo wget -O "${DST_TFTP_ETH0:?}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; fi } ########################################################################## handle_rpi_pxe_overlay() { - echo -e "\e[32mhandle_rpi_pxe_overlay(\e[0m$1\e[32m)\e[0m"; - ###################################################################### - # $1 : short name - # $2 : serial number - # $3 : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) - ###################################################################### - local NAME=$1 - local SN=$2 - local FLAGS=$3 - local NAME_BOOT=$NAME-boot - local NAME_ROOT=$NAME-root - local DST_SN_BOOT=$SN-boot - local DST_SN_ROOT=$SN-root - local SRC_BOOT=$DST_NFS_ETH0/$NAME_BOOT - local SRC_ROOT=$DST_NFS_ETH0/$NAME_ROOT - local DST_NFS_BOOT=$DST_NFS_ETH0/$DST_SN_BOOT - local DST_NFS_ROOT=$DST_NFS_ETH0/$DST_SN_ROOT - local FILE_URL=$NAME.url - ###################################################################### - local DST_LOWER_BOOT=/srv/tmp/lower/$NAME_BOOT - local DST_LOWER_ROOT=$SRC_ROOT - local DST_UPPER_BOOT=/srv/tmp/upper/$DST_SN_BOOT - local DST_UPPER_ROOT=/srv/tmp/upper/$DST_SN_ROOT - local DST_WORK_BOOT=/srv/tmp/work/$DST_SN_BOOT - local DST_WORK_ROOT=/srv/tmp/work/$DST_SN_ROOT - local DST_MERGED_BOOT=/srv/tmp/merged/$DST_SN_BOOT - local DST_MERGED_ROOT=/srv/tmp/merged/$DST_SN_ROOT - ###################################################################### - local DST_CUSTOM_BOOT=$DST_NFS_BOOT - local DST_CUSTOM_ROOT=$DST_NFS_ROOT - ###################################################################### - - sudo exportfs -u *:$DST_NFS_BOOT 2> /dev/null; - sudo umount -f $DST_NFS_BOOT 2> /dev/null; - sudo umount -f $DST_MERGED_BOOT 2> /dev/null; - sudo umount -f $DST_LOWER_BOOT 2> /dev/null; - - sudo exportfs -u *:$DST_NFS_ROOT 2> /dev/null; - sudo umount -f $DST_NFS_ROOT 2> /dev/null; - sudo umount -f $DST_MERGED_ROOT 2> /dev/null; - - - ###################################################################### - if (echo $FLAGS | grep -q redo) \ - || ! grep -q $(cat $DST_IMG/$FILE_URL) $DST_UPPER_BOOT/$FILE_URL 2> /dev/null; then + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + + # ${!1} : name of VARIABLE + # ${!2} : name of VARIABLE for serial number + # ${3} : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) + local NAME="${!1}" + local SN="${!2}" + local FLAGS="${3}" + ############################################################## + local NAME_BOOT="${NAME:?}-boot" + local NAME_ROOT="${NAME:?}-root" + local DST_SN_BOOT="${SN:?}-boot" + local DST_SN_ROOT="${SN:?}-root" + local SRC_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" + local SRC_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" + local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${DST_SN_BOOT:?}" + local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${DST_SN_ROOT:?}" + local FILE_URL="${NAME:?}.url" + ###################################################################### + local DST_LOWER_BOOT="/srv/tmp/lower/${NAME_BOOT:?}" + local DST_LOWER_ROOT="${SRC_ROOT:?}" + local DST_UPPER_BOOT="/srv/tmp/upper/${DST_SN_BOOT:?}" + local DST_UPPER_ROOT="/srv/tmp/upper/${DST_SN_ROOT:?}" + local DST_WORK_BOOT="/srv/tmp/work/${DST_SN_BOOT:?}" + local DST_WORK_ROOT="/srv/tmp/work/${DST_SN_ROOT:?}" + local DST_MERGED_BOOT="/srv/tmp/merged/${DST_SN_BOOT:?}" + local DST_MERGED_ROOT="/srv/tmp/merged/${DST_SN_ROOT:?}" + ###################################################################### + local DST_CUSTOM_BOOT="${DST_NFS_BOOT:?}" + local DST_CUSTOM_ROOT="${DST_NFS_ROOT:?}" + ###################################################################### + echo -e "\e[32mhandle_rpi_pxe_overlay(\e[0m${NAME:?}\e[32m)\e[0m"; + + sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_MERGED_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_LOWER_BOOT:?}" 2> /dev/null; + + sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_MERGED_ROOT:?}" 2> /dev/null; + + + ###################################################################### + if (echo "${FLAGS:?}" | grep -q redo) \ + || ( [[ -f "${DST_IMG:?}/${FILE_URL:?}" ]] && ! grep -q $(cat "${DST_IMG:?}/${FILE_URL:?}") "${DST_UPPER_BOOT:?}/${FILE_URL:?}" ) 2> /dev/null; then echo -e "\e[36m delete old boot files\e[0m"; - sudo rm -rf $DST_NFS_BOOT; - sudo rm -rf $DST_UPPER_BOOT; - sudo rm -rf $DST_WORK_BOOT; - sudo rm -rf $DST_MERGED_BOOT; - sudo rm -rf $DST_LOWER_BOOT; + sudo rm -rf "${DST_NFS_BOOT:?}"; + sudo rm -rf "${DST_UPPER_BOOT:?}"; + sudo rm -rf "${DST_WORK_BOOT:?}"; + sudo rm -rf "${DST_MERGED_BOOT:?}"; + sudo rm -rf "${DST_LOWER_BOOT:?}"; echo -e "\e[36m delete old root files\e[0m"; - sudo rm -rf $DST_NFS_ROOT; - sudo rm -rf $DST_UPPER_ROOT; - sudo rm -rf $DST_WORK_ROOT; - sudo rm -rf $DST_MERGED_BOOT; - sudo sed /etc/fstab -i -e "/$DST_SN_BOOT/d" - sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" - sudo sed /etc/exports -i -e "/$DST_SN_BOOT/d" - sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" - local FLAGS=$FLAGS,redo + sudo rm -rf "${DST_NFS_ROOT:?}"; + sudo rm -rf "${DST_UPPER_ROOT:?}"; + sudo rm -rf "${DST_WORK_ROOT:?}"; + sudo rm -rf "${DST_MERGED_BOOT:?}"; + sudo sed /etc/fstab -i -e "/${DST_SN_BOOT:?}/d" + sudo sed /etc/fstab -i -e "/${DST_SN_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${DST_SN_BOOT:?}/d" + sudo sed /etc/exports -i -e "/${DST_SN_ROOT:?}/d" + local FLAGS="${FLAGS:?}",redo fi ###################################################################### - if ! [ -d "$DST_NFS_BOOT" ]; then sudo mkdir -p $DST_NFS_BOOT; fi - if ! [ -d "$DST_UPPER_BOOT" ]; then sudo mkdir -p $DST_UPPER_BOOT; fi - if ! [ -d "$DST_WORK_BOOT" ]; then sudo mkdir -p $DST_WORK_BOOT; fi - if ! [ -d "$DST_MERGED_BOOT" ]; then sudo mkdir -p $DST_MERGED_BOOT; fi - if ! [ -d "$DST_LOWER_BOOT" ]; then sudo mkdir -p $DST_LOWER_BOOT; fi + if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then sudo mkdir -p "${DST_NFS_BOOT:?}"; fi + if ! [[ -d "${DST_UPPER_BOOT:?}" ]]; then sudo mkdir -p "${DST_UPPER_BOOT:?}"; fi + if ! [[ -d "${DST_WORK_BOOT:?}" ]]; then sudo mkdir -p "${DST_WORK_BOOT:?}"; fi + if ! [[ -d "${DST_MERGED_BOOT:?}" ]]; then sudo mkdir -p "${DST_MERGED_BOOT:?}"; fi + if ! [[ -d "${DST_LOWER_BOOT:?}" ]]; then sudo mkdir -p "${DST_LOWER_BOOT:?}"; fi ###################################################################### - if (echo $FLAGS | grep -q root); then - if ! [ -d "$DST_NFS_ROOT" ]; then sudo mkdir -p $DST_NFS_ROOT; fi - if ! [ -d "$DST_UPPER_ROOT" ]; then sudo mkdir -p $DST_UPPER_ROOT; fi - if ! [ -d "$DST_WORK_ROOT" ]; then sudo mkdir -p $DST_WORK_ROOT; fi - if ! [ -d "$DST_MERGED_ROOT" ]; then sudo mkdir -p $DST_MERGED_ROOT; fi + if (echo "${FLAGS:?}" | grep -q root); then + if ! [[ -d "${DST_NFS_ROOT:?}" ]]; then sudo mkdir -p "${DST_NFS_ROOT:?}"; fi + if ! [[ -d "${DST_UPPER_ROOT:?}" ]]; then sudo mkdir -p "${DST_UPPER_ROOT:?}"; fi + if ! [[ -d "${DST_WORK_ROOT:?}" ]]; then sudo mkdir -p "${DST_WORK_ROOT:?}"; fi + if ! [[ -d "${DST_MERGED_ROOT:?}" ]]; then sudo mkdir -p "${DST_MERGED_ROOT:?}"; fi fi ###################################################################### - if ! [ -f "/etc/mount-delayed.sh" ]; then sudo touch /etc/mount-delayed.sh; sudo chmod 0755 /etc/mount-delayed.sh; fi + if ! [[ -f "/etc/mount-delayed.sh" ]]; then sudo touch /etc/mount-delayed.sh; sudo chmod 0755 /etc/mount-delayed.sh; fi if ! grep -q "mount-delayed.sh" /etc/rc.local; then sudo sed /etc/rc.local -i -e "s/^exit 0$/\########################################\n## workaround\n\/etc\/mount-delayed.sh;\n\nexit 0/" fi - sudo sed /etc/mount-delayed.sh -i -e "/$DST_SN_BOOT/d" - sudo sh -c "echo 'mount $DST_LOWER_BOOT' >> /etc/mount-delayed.sh"; - sudo sh -c "echo 'mount $DST_MERGED_BOOT' >> /etc/mount-delayed.sh"; - sudo sh -c "echo 'mount $DST_NFS_BOOT' >> /etc/mount-delayed.sh"; - sudo sed /etc/mount-delayed.sh -i -e "/$DST_SN_ROOT/d" - if (echo $FLAGS | grep -q root); then - sudo sh -c "echo 'mount $DST_MERGED_ROOT' >> /etc/mount-delayed.sh"; - sudo sh -c "echo 'mount $DST_NFS_ROOT' >> /etc/mount-delayed.sh"; + sudo sed /etc/mount-delayed.sh -i -e "/${DST_SN_BOOT:?}/d" + sudo sh -c "echo 'mount ${DST_LOWER_BOOT:?}' >> /etc/mount-delayed.sh"; + sudo sh -c "echo 'mount ${DST_MERGED_BOOT:?}' >> /etc/mount-delayed.sh"; + sudo sh -c "echo 'mount ${DST_NFS_BOOT:?}' >> /etc/mount-delayed.sh"; + sudo sed /etc/mount-delayed.sh -i -e "/${DST_SN_ROOT:?}/d" + if (echo "${FLAGS:?}" | grep -q root); then + sudo sh -c "echo 'mount ${DST_MERGED_ROOT:?}' >> /etc/mount-delayed.sh"; + sudo sh -c "echo 'mount ${DST_NFS_ROOT:?}' >> /etc/mount-delayed.sh"; fi ###################################################################### - if ! grep -q "$DST_NFS_BOOT" /etc/fstab; then + if ! grep -q "${DST_NFS_BOOT:?}" /etc/fstab; then echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo '$SRC_BOOT $DST_LOWER_BOOT fuse.bindfs ro,noauto 0 12' >> /etc/fstab"; - sudo sh -c "echo 'overlay $DST_MERGED_BOOT overlay rw,noauto,lowerdir=$DST_LOWER_BOOT,upperdir=$DST_UPPER_BOOT,workdir=$DST_WORK_BOOT 0 13' >> /etc/fstab"; - sudo sh -c "echo '$DST_MERGED_BOOT $DST_NFS_BOOT fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; + sudo sh -c "echo '${SRC_BOOT:?} ${DST_LOWER_BOOT:?} fuse.bindfs ro,noauto 0 12' >> /etc/fstab"; + sudo sh -c "echo 'overlay ${DST_MERGED_BOOT:?} overlay rw,noauto,lowerdir=${DST_LOWER_BOOT:?},upperdir=${DST_UPPER_BOOT:?},workdir=${DST_WORK_BOOT:?} 0 13' >> /etc/fstab"; + sudo sh -c "echo '${DST_MERGED_BOOT:?} ${DST_NFS_BOOT:?} fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; fi ###################################################################### - if (echo $FLAGS | grep -q root); then - if ! grep -q "$DST_NFS_ROOT" /etc/fstab; then + if (echo "${FLAGS:?}" | grep -q root); then + if ! grep -q "${DST_NFS_ROOT:?}" /etc/fstab; then echo -e "\e[36m add image-root to fstab\e[0m"; - sudo sh -c "echo 'overlay $DST_MERGED_ROOT overlay rw,lowerdir=$DST_LOWER_ROOT,upperdir=$DST_UPPER_ROOT,workdir=$DST_WORK_ROOT 0 13' >> /etc/fstab"; - sudo sh -c "echo '$DST_MERGED_ROOT $DST_NFS_ROOT fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; + sudo sh -c "echo 'overlay ${DST_MERGED_ROOT:?} overlay rw,lowerdir=${DST_LOWER_ROOT:?},upperdir=${DST_UPPER_ROOT:?},workdir=${DST_WORK_ROOT:?} 0 13' >> /etc/fstab"; + sudo sh -c "echo '${DST_MERGED_ROOT:?} ${DST_NFS_ROOT:?} fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; fi fi ###################################################################### - sudo mount $DST_LOWER_BOOT; - sudo mount $DST_MERGED_BOOT; - sudo mount $DST_NFS_BOOT; - if (echo $FLAGS | grep -q root); then - sudo mount $DST_MERGED_ROOT; - sudo mount $DST_NFS_ROOT; + sudo mount "${DST_LOWER_BOOT:?}"; + sudo mount "${DST_MERGED_BOOT:?}"; + sudo mount "${DST_NFS_BOOT:?}"; + if (echo "${FLAGS:?}" | grep -q root); then + sudo mount "${DST_MERGED_ROOT:?}"; + sudo mount "${DST_NFS_ROOT:?}"; fi ###################################################################### - if ! [ -h "$DST_TFTP_ETH0/$SN" ]; then sudo ln -s $DST_NFS_BOOT/ $DST_TFTP_ETH0/$SN; fi + if ! [[ -h "${DST_TFTP_ETH0:?}/${SN:?}" ]]; then sudo ln -s "${DST_NFS_BOOT:?}/" "${DST_TFTP_ETH0:?}/${SN:?}"; fi ###################################################################### - sudo cp $DST_IMG/$FILE_URL $DST_CUSTOM_BOOT/$FILE_URL; - handle_rpi_pxe_customization $DST_CUSTOM_BOOT $DST_CUSTOM_ROOT $FLAGS; + sudo cp "${DST_IMG:?}/${FILE_URL:?}" "${DST_CUSTOM_BOOT:?}/${FILE_URL:?}"; + handle_rpi_pxe_customization "${DST_CUSTOM_BOOT:?}" "${DST_CUSTOM_ROOT:?}" "${FLAGS:?}"; ###################################################################### - if ! grep -q "$DST_NFS_BOOT" /etc/exports; then - echo -e "\e[36m add $DST_NFS_BOOT to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_BOOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then + echo -e "\e[36m add ${DST_NFS_BOOT:?} to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_BOOT:?} *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - sudo exportfs *:$DST_NFS_BOOT; + sudo exportfs "*:${DST_NFS_BOOT:?}"; ###################################################################### - if (echo $FLAGS | grep -q root); then - if ! grep -q "$DST_NFS_ROOT" /etc/exports; then - echo -e "\e[36m add $DST_NFS_ROOT to exports\e[0m"; - sudo sh -c "echo '$DST_NFS_ROOT *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + if (echo "${FLAGS:?}" | grep -q root); then + if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then + echo -e "\e[36m add ${DST_NFS_ROOT:?} to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_ROOT:?} *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi - sudo exportfs *:$DST_NFS_ROOT; + sudo exportfs "*:${DST_NFS_ROOT:?}"; else - sudo sed /etc/fstab -i -e "/$DST_SN_ROOT/d" - sudo sed /etc/exports -i -e "/$DST_SN_ROOT/d" + sudo sed /etc/fstab -i -e "/${DST_SN_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${DST_SN_ROOT:?}/d" fi ###################################################################### - if ! [ -f "$DST_TFTP_ETH0/bootcode.bin" ]; then + if ! [[ -f "${DST_TFTP_ETH0:?}/bootcode.bin" ]]; then echo -e "\e[36m download bootcode.bin for RPi3 network booting\e[0m"; - sudo wget -O $DST_TFTP_ETH0/bootcode.bin https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; + sudo wget -O "${DST_TFTP_ETH0:?}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; fi } ########################################################################## handle_rpi_pxe() { - if [ "$2" == "--------" ]; then + local SN="${!2}" + if [[ "${SN:?}" == "--------" ]]; then echo -e "\e[36m skipped: no proper serial number given.\e[0m"; return 1; fi - if [ $(($KERNEL_VER < 413)) != 0 ]; then - handle_rpi_pxe_classic $1 $2 $3; + if [[ $(("${KERNEL_VER:?}" < 413)) != 0 ]]; then + handle_rpi_pxe_classic "${1:?}" "${2:?}" "${3:?}"; # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy # note: this construction does NOT work reliably - data loss! - #handle_rpi_pxe_overlay $1 $2 $3; + #handle_rpi_pxe_overlay "${1:?}" "${2:?}" "${3:?}"; else # overlayFS is still not able to export via nfs - handle_rpi_pxe_classic $1 $2 $3; + handle_rpi_pxe_classic "${1:?}" "${2:?}" "${3:?}"; # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy # note: this construction does NOT work reliably - data loss! - #handle_rpi_pxe_overlay $1 $2 $3; + #handle_rpi_pxe_overlay "${1:?}" "${2:?}" "${3:?}"; fi } + +########################################################################## +handle_item() { + local ITEM_ACTION="${1}" + local ITEM_TYPE="${2}" + + shift; + shift; + + case "${ITEM_ACTION:?}" in + '+') + case "${ITEM_TYPE:?}" in + img) + handle_img $*; + ;; + iso) + handle_iso $*; + ;; + kernel) + handle_kernel $*; + ;; + zip_img) + handle_zip_img $*; + ;; + rpi_pxe) + handle_rpi_pxe $*; + ;; + *) + ;; + esac + ;; + '-') + case "${ITEM_TYPE:?}" in + img) + _unhandle_img $*; + ;; + iso) + _unhandle_iso $*; + ;; + kernel) + _unhandle_kernel $*; + ;; + zip_img) + _unhandle_zip_img $*; + ;; + rpi_pxe) + #_unhandle_rpi_pxe $*; + ;; + *) + ;; + esac + ;; + '#') + ;; + *) + ;; + esac +} + ########################################################################## handle_optional() { echo -e "\e[32mhandle_optional()\e[0m"; @@ -1755,9 +1854,9 @@ handle_optional() { ## mod_install_server net.ipv4.ip_forward=1 net.ipv6.conf.all.forwarding=1 -net.ipv6.conf.$INTERFACE_ETH0.accept_ra=2 -net.ipv6.conf.$INTERFACE_ETH1.accept_ra=2 -net.ipv6.conf.$INTERFACE_WLAN0.accept_ra=2 +net.ipv6.conf.${INTERFACE_ETH0:?}.accept_ra=2 +net.ipv6.conf.${INTERFACE_ETH1:?}.accept_ra=2 +net.ipv6.conf.${INTERFACE_WLAN0:?}.accept_ra=2 EOF sudo sysctl -p &>/dev/null sudo sysctl --system &>/dev/null @@ -1768,20 +1867,20 @@ EOF ## network nat sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { echo -e "\e[36m setup iptables for nat\e[0m"; - sudo iptables -t nat -A POSTROUTING -o $INTERFACE_ETH0 -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over $INTERFACE_ETH0" + sudo iptables -t nat -A POSTROUTING -o "${INTERFACE_ETH0:?}" -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over ${INTERFACE_ETH0:?}" sudo dpkg-reconfigure --unseen-only iptables-persistent } ###################################################################### ## network nat limit access of eth1 and wlan0 sudo iptables-save | grep -q LIMIT-ACCESS 2> /dev/null || { - echo -e "\e[36m setup iptables for limiting traffic of $INTERFACE_ETH1\e[0m"; - sudo iptables -t filter -A INPUT -s $IP_ETH1_0 ! -d $IP_ETH1_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" - sudo iptables -t filter -A INPUT -s $IP_WLAN0_0 ! -d $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" - sudo iptables -t filter -A FORWARD -s $IP_WLAN0_0 -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" - sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but $INTERFACE_ETH0 to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i $INTERFACE_ETH0 -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but $INTERFACE_ETH0 to local NTP server" + echo -e "\e[36m setup iptables for limiting traffic of ${INTERFACE_ETH1:?}\e[0m"; + sudo iptables -t filter -A INPUT -s "${IP_ETH1_0:?}" ! -d "${IP_ETH1_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" + sudo iptables -t filter -A INPUT -s "${IP_WLAN0_0:?}" ! -d "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" + sudo iptables -t filter -A FORWARD -s "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" + sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but ${INTERFACE_ETH0:?} to local NTP server" sudo dpkg-reconfigure --unseen-only iptables-persistent } } @@ -1804,7 +1903,7 @@ server ptbtime3.ptb.de iburst server ntp1.oma.be iburst server ntp2.oma.be iburst -pool $CUSTOM_LANG.pool.ntp.org iburst +pool ${CUSTOM_LANGUAGE:?}.pool.ntp.org iburst keyfile /etc/chrony/chrony.keys driftfile /var/lib/chrony/chrony.drift @@ -1820,17 +1919,17 @@ EOF ########################################################################## -sudo mkdir -p $DST_ISO; -sudo mkdir -p $DST_IMG; -sudo mkdir -p $DST_TFTP_ETH0; -sudo mkdir -p $DST_NFS_ETH0; +sudo mkdir -p "${DST_ISO:?}"; +sudo mkdir -p "${DST_IMG:?}"; +sudo mkdir -p "${DST_TFTP_ETH0:?}"; +sudo mkdir -p "${DST_NFS_ETH0:?}"; ########################################################################## -if [ -d "/var/www/html" ]; then - [ -d "/var/www/html/srv" ] || sudo mkdir -p /var/www/html/srv - [ -h "/var/www/html/srv$ISO" ] || sudo ln -s $DST_ISO /var/www/html/srv$ISO; - [ -h "/var/www/html/srv$IMG" ] || sudo ln -s $DST_IMG /var/www/html/srv$IMG; - [ -h "/var/www/html/srv$NFS_ETH0" ] || sudo ln -s $DST_NFS_ETH0 /var/www/html/srv$NFS_ETH0; +if [[ -d "/var/www/html" ]]; then + [[ -d "/var/www/html/srv" ]] || sudo mkdir -p /var/www/html/srv + [[ -h "/var/www/html/srv${ISO:?}" ]] || sudo ln -s "${DST_ISO:?}" "/var/www/html/srv${ISO:?}"; + [[ -h "/var/www/html/srv${IMG:?}" ]] || sudo ln -s "${DST_IMG:?}" "/var/www/html/srv${IMG:?}"; + [[ -h "/var/www/html/srv${NFS_ETH0:?}" ]] || sudo ln -s "${DST_NFS_ETH0:?}" "/var/www/html/srv${NFS_ETH0:?}"; fi @@ -1844,15 +1943,7 @@ handle_chrony; ########################################################################## -########################################################################## -## comment out those entries, -## you don't want to download, mount, export, install for PXE boot -## or -## "_unhandle_iso ...", -## if you want to delete the entire iso and its nfs export to free disk space -########################################################################## -########################################################################## -. "$script_dir/p2-include-handle.sh" +. "${script_dir:?}/p2-include-handle.sh" ########################################################################## @@ -1861,14 +1952,14 @@ handle_ipxe; ########################################################################## -if [ -d "$SRC_ISO" ] && ! [ "$SRC_ISO" == "$DST_ISO" ]; then +if [[ -d "${SRC_ISO:?}" ]] && ! [[ "${SRC_ISO:?}" == "${DST_ISO:?}" ]]; then echo -e "\e[32mbackup new iso images to usb-stick\e[0m"; - sudo rsync -xa --info=progress2 $DST_ISO/*.iso $DST_ISO/*.url $SRC_ISO/ 2>/dev/null + sudo rsync -xa --info=progress2 "${DST_ISO:?}/"*.iso "${DST_ISO:?}/"*.url "${SRC_ISO:?}/" 2>/dev/null fi ###################################################################### -if [ -d "$SRC_IMG" ] && ! [ "$SRC_IMG" == "$DST_IMG" ]; then +if [[ -d "${SRC_IMG:?}" ]] && ! [[ "${SRC_IMG:?}" == "${DST_IMG:?}" ]]; then echo -e "\e[32mbackup new images to usb-stick\e[0m"; - sudo rsync -xa --info=progress2 $DST_IMG/*.img $DST_IMG/*.url $SRC_IMG/ 2>/dev/null + sudo rsync -xa --info=progress2 "${DST_IMG:?}/"*.img "${DST_IMG:?}/"*.url "${SRC_IMG:?}/" 2>/dev/null fi ########################################################################## sync diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 370eb05..9e786d8 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -1,101 +1,124 @@ #!/bin/bash ########################################################################## -if [ -z "$script_dir" ] +if [[ -z "$script_dir" ]] then - echo "do not run this script directly !" - echo "this script is part of install-pxe-server-pass2.sh" - exit -1 + echo 'do not run this script directly !' + echo 'this script is part of install-pxe-server-pass2.sh' + exit -1 fi ########################################################################## ########################################################################## ########################################################################## -## comment out those entries, -## you don't want to download, mount, export, install for PXE boot -## or -## "_unhandle_iso ...", -## if you want to delete the entire iso and its nfs export to free disk space -########################################################################## -########################################################################## -_unhandle_iso $BLACKARCH_X64 $BLACKARCH_X64_URL; -_unhandle_iso $CLONEZILLA_X64 $CLONEZILLA_X64_URL; -_unhandle_iso $CLONEZILLA_X86 $CLONEZILLA_X86_URL; -handle_iso $DEBIAN_X64 $DEBIAN_X64_URL; -_unhandle_iso $DEBIAN_X86 $DEBIAN_X86_URL; -_unhandle_iso $DEVUAN_X64 $DEVUAN_X64_URL; -_unhandle_iso $DEVUAN_X86 $DEVUAN_X86_URL; -handle_iso $DRAGONOS_X64 $DRAGONOS_X64_URL; -_unhandle_iso $ESET_SYSRESCUE_X86 $ESET_SYSRESCUE_X86_URL; -handle_iso $FEDORA_X64 $FEDORA_X64_URL; -_unhandle_iso $GNURADIO_X64 $GNURADIO_X64_URL; -handle_iso $KALI_X64 $KALI_X64_URL; -_unhandle_iso $KASPERSKY_RESCUE_X86 $KASPERSKY_RESCUE_X86_URL timestamping; -_unhandle_iso $KNOPPIX_X86 $KNOPPIX_X86_URL; -#_unhandle_iso $LUBUNTU_DAILY_X64 $LUBUNTU_DAILY_X64_URL timestamping; -_unhandle_iso $LUBUNTU_LTS_X64 $LUBUNTU_LTS_X64_URL; -_unhandle_iso $LUBUNTU_LTS_X86 $LUBUNTU_LTS_X86_URL; -_unhandle_iso $LUBUNTU_X64 $LUBUNTU_X64_URL; -_unhandle_iso $LUBUNTU_X86 $LUBUNTU_X86_URL; -_unhandle_iso $MINT_X64 $MINT_X64_URL; -_unhandle_iso $OPENSUSE_RESCUE_X64 $OPENSUSE_RESCUE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 0 1; -handle_iso $OPENSUSE_X64 $OPENSUSE_X64_URL timestamping ,gid=root,uid=root,norock,mode=292 vbladed 1 1; -handle_iso $PARROT_FULL_X64 $PARROT_FULL_X64_URL; -_unhandle_iso $PARROT_LITE_X64 $PARROT_LITE_X64_URL; -#_unhandle_iso $PENTOO_BETA_X64 $PENTOO_BETA_X64_URL timestamping; -#_unhandle_iso $PENTOO_X64 $PENTOO_X64_URL timestamping; -#_unhandle_iso $RPDESKTOP_X86 $RPDESKTOP_X86_URL timestamping; -_unhandle_iso $SYSTEMRESCUE_X64 $SYSTEMRESCUE_X64_URL; -handle_iso $TINYCORE_X64 $TINYCORE_X64_URL timestamping; -handle_iso $TINYCORE_X86 $TINYCORE_X86_URL timestamping; -#_unhandle_iso $UBUNTU_DAILY_X64 $UBUNTU_DAILY_X64_URL timestamping; -_unhandle_iso $UBUNTU_LTS_X64 $UBUNTU_LTS_X64_URL; -_unhandle_iso $UBUNTU_LTS_X86 $UBUNTU_LTS_X86_URL; -#_unhandle_iso $UBUNTU_STUDIO_DAILY_X64 $UBUNTU_STUDIO_DAILY_X64_URL timestamping; -_unhandle_iso $UBUNTU_STUDIO_X64 $UBUNTU_STUDIO_X64_URL; -handle_iso $UBUNTU_X64 $UBUNTU_X64_URL; +## +## '+' = add image to PXE service +## download if not there +## update if newer version is available +## +## '-' = remove image from PXE service +## free resources on server +## if backup exist, keep updating backup) +## +## '#' = skip image handling +## keep everything untouched +## does not updating backup +## good, when timestamping option is set +## +## iso = iso image (ISO,UDF, ISO_HYBRID) +## +## img = harddrive image (MPT, GPT) +## +## kernel = kernel +## +## zip_img = zip file containing an harddrive image (zip -> MTP, GPT) +## +## rpi_pxe = only if you want to pxe boot a RPi3. +## (copyes files from boot & root partition to local directors) +## requires an already mounted harddrive image (img or zip_img) +## note: option '-' does nothing for rpi_pxe. +## you have to free resources for rpi_pxe by hand +## +## +## NOTE: +## do not put the $ infornt of the VARIABLE name !!! +## the handle_item functions do need the NAME of the VARIABLE (without _URL) +## +########################################################################## +########################################################################## +handle_item '-' iso BLACKARCH_X64; +handle_item '-' iso CLONEZILLA_X64; +handle_item '-' iso CLONEZILLA_X86; +handle_item '+' iso DEBIAN_X64; +handle_item '-' iso DEBIAN_X86; +handle_item '-' iso DEVUAN_X64; +handle_item '-' iso DEVUAN_X86; +handle_item '-' iso DRAGONOS_X64; +handle_item '-' iso ESET_SYSRESCUE_X86; +handle_item '+' iso FEDORA_X64; +handle_item '-' iso GNURADIO_X64; +handle_item '-' iso KALI_X64; +handle_item '#' iso KASPERSKY_RESCUE_X86 timestamping; +handle_item '-' iso KNOPPIX_X86; +handle_item '#' iso LUBUNTU_DAILY_X64 timestamping; +handle_item '-' iso LUBUNTU_LTS_X64; +handle_item '-' iso LUBUNTU_LTS_X86; +handle_item '-' iso LUBUNTU_X64; +handle_item '-' iso LUBUNTU_X86; +handle_item '-' iso MINT_X64; +handle_item '#' iso OPENSUSE_RESCUE_X64 timestamping ,gid=root,uid=root,norock,mode=292 vbladed 0 1; +handle_item '+' iso OPENSUSE_X64 timestamping ,gid=root,uid=root,norock,mode=292 vbladed 1 1; +handle_item '-' iso PARROT_FULL_X64; +handle_item '-' iso PARROT_LITE_X64; +handle_item '#' iso PENTOO_BETA_X64 timestamping; +handle_item '#' iso PENTOO_X64 timestamping; +handle_item '#' iso RPDESKTOP_X86 timestamping; +handle_item '-' iso SYSTEMRESCUE_X64; +handle_item '+' iso TINYCORE_X64 timestamping; +handle_item '#' iso TINYCORE_X86 timestamping; +handle_item '#' iso UBUNTU_DAILY_X64 timestamping; +handle_item '-' iso UBUNTU_LTS_X64; +handle_item '-' iso UBUNTU_LTS_X86; +handle_item '#' iso UBUNTU_STUDIO_DAILY_X64 timestamping; +handle_item '-' iso UBUNTU_STUDIO_X64; +handle_item '+' iso UBUNTU_X64; #custom# -handle_iso $DESINFECT_X64 $DESINFECT_X64_URL; -handle_iso $DESINFECT_X86 $DESINFECT_X86_URL; -_unhandle_iso $UBUNTU_NONPAE $UBUNTU_NONPAE_URL; -handle_iso $WIN_PE_X86 $WIN_PE_X86_URL; -handle_iso $WIN_PE_X64 $WIN_PE_X64_URL; +handle_item '+' iso DESINFECT_X64; +handle_item '+' iso DESINFECT_X86; +handle_item '-' iso UBUNTU_NONPAE; +handle_item '+' iso WIN_PE_X86; +handle_item '+' iso WIN_PE_X64; #broken# -_unhandle_iso $ANDROID_X86 $ANDROID_X86_URL; -_unhandle_iso $CENTOS_X64 $CENTOS_X64_URL; -handle_iso $TAILS_X64 $TAILS_X64_URL; +handle_item '-' iso ANDROID_X86; +handle_item '-' iso CENTOS_X64; +handle_item '-' iso TAILS_X64; -#discontinued# _unhandle_iso $DEFT_X64 $DEFT_X64_URL; -#discontinued# _unhandle_iso $DEFTZ_X64 $DEFTZ_X64_URL ,gid=root,uid=root,norock,mode=292; +#discontinued# handle_item '#' iso DEFT_X64; +#discontinued# handle_item '#' iso DEFTZ_X64 ,gid=root,uid=root,norock,mode=292; -########################################################################## -_unhandle_img $UBUNTU_FWTS $UBUNTU_FWTS_URL; ########################################################################## -_unhandle_kernel $ARCH_NETBOOT_X64 $ARCH_NETBOOT_X64_URL timestamping; +handle_item '-' img UBUNTU_FWTS; ########################################################################## -########################################################################## -## comment out those entries, -## you don't want to download, mount, export -########################################################################## -########################################################################## -_unhandle_zip_img $PI_CORE $PI_CORE_URL; -#_unhandle_zip_img $RPD_BASIC $RPD_BASIC_URL timestamping; -#_unhandle_zip_img $RPD_FULL $RPD_FULL_URL timestamping; -#_unhandle_zip_img $RPD_LITE $RPD_LITE_URL timestamping; +handle_item '#' kernel ARCH_NETBOOT_X64 timestamping; + ########################################################################## +handle_item '-' zip_img PI_CORE; +handle_item '#' zip_img RPD_BASIC timestamping; +handle_item '#' zip_img RPD_FULL timestamping; +handle_item '#' zip_img RPD_LITE timestamping; + + ########################################################################## -## comment out those entries, -## you don't want to have as pi 3 pxe network booting -########################################################################## +## must be the last, because it requireas an already mounted image ########################################################################## -#handle_rpi_pxe $PI_CORE $RPI_SN0 bootcode,config,root; -#handle_rpi_pxe $RPD_BASIC $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -#handle_rpi_pxe $RPD_FULL $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -#handle_rpi_pxe $RPD_LITE $RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +handle_item '-' rpi_pxe PI_CORE RPI_SN0 bootcode,config,root; +handle_item '-' rpi_pxe RPD_BASIC RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +handle_item '-' rpi_pxe RPD_FULL RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +handle_item '-' rpi_pxe RPD_LITE RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 46baf17..3f744fb 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -1,7 +1,7 @@ #!/bin/bash ########################################################################## -if [ -z "$script_dir" ] +if [[ -z "$script_dir" ]] then echo "do not run this script directly !" echo "this script is part of install-pxe-server-pass2.sh" @@ -9,14 +9,14 @@ then fi ########################################################################## -if ! [ "$1" == "ipxe" ] +if ! [[ "$1" == "ipxe" ]] then ########################################################################## ## lpxelinux #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X64/kernel" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X64/kernel" ]]; then echo -e "\e[36m add $ARCH_NETBOOT_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -34,8 +34,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]]; then echo -e "\e[36m add $BLACKARCH_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -43,8 +43,8 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL BlackArch x64 KERNEL $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux INITRD $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/intel-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/amd-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/initramfs-linux.img - APPEND ro archisobasedir=blackarch archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$BLACKARCH_X64 copytoram=n - SYSAPPEND 3 + APPEND ip=dhcp ro archisobasedir=blackarch archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$BLACKARCH_X64 copytoram=n + #SYSAPPEND 3 TEXT HELP Boot to BlackArch Linux full medium (x86_64, UEFI) User: root, Password: blackarch @@ -54,8 +54,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]]; then echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -63,7 +63,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Clonezilla x64 KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x64 User: user, Password: live @@ -73,8 +73,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]]; then echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -82,7 +82,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Clonezilla x86 KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Clonezilla x86 User: user, Password: live @@ -92,8 +92,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]]; then echo -e "\e[36m add $DEBIAN_TESTING_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -101,7 +101,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Debian x64 (testing) KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/initrd.img-$DEBIAN_TESTING_KVER-amd64 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live (testing) User: user, Password: live @@ -111,8 +111,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]]; then echo -e "\e[36m add $DEBIAN_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -120,7 +120,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Debian x64 KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live LXDE User: user, Password: live @@ -130,8 +130,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -139,7 +139,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Debian x86 KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE User: user, Password: live @@ -149,8 +149,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $DEFT_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -158,7 +158,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DEFT x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DEFT x64 Live User: root, Password: toor @@ -168,8 +168,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $DEFTZ_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -177,7 +177,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DEFT Zero x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor @@ -187,8 +187,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]]; then echo -e "\e[36m add $DEVUAN_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -196,7 +196,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Devuan x64 KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Devuan x64 Live User: devuan @@ -206,8 +206,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]]; then echo -e "\e[36m add $DEVUAN_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -215,7 +215,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Devuan x86 KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Devuan x86 Live User: devuan @@ -225,8 +225,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $DRAGONOS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -234,7 +234,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL DragonOS x64 KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DragonOS x64 Live User: live @@ -244,8 +244,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]]; then echo -e "\e[36m add $ESET_SYSRESCUE_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -253,7 +253,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL ESET SysRescue Live KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to ESET SysRescue Live ENDTEXT @@ -262,8 +262,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]]; then echo -e "\e[36m add $FEDORA_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -274,7 +274,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Fedora x64 KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE + APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -284,8 +284,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]]; then echo -e "\e[36m add $GNURADIO_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -293,7 +293,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL GNU Radio x64 KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to GNU Radio x64 Live User: ubuntu @@ -303,8 +303,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]]; then echo -e "\e[36m add $KALI_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -312,7 +312,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Kali x64 KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Kali x64 Live User: kali, Password: kali @@ -322,8 +322,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]]; then echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -331,7 +331,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Kaspersky Rescue Disk KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz - APPEND netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us + APPEND ip=dhcp netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us TEXT HELP Boot to Kaspersky Rescue Disk ENDTEXT @@ -340,13 +340,13 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]; then - if ! [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then echo -e "\e[36m download patch for $KNOPPIX_X86\e[0m"; sudo wget --quiet -O $DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/$KNOPPIX_X86-miniroot-8.6.1.gz fi - if [ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]; then + if [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then echo -e "\e[36m add $KNOPPIX_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -357,7 +357,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Knoppix x86 KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz - APPEND nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de + APPEND ip=dhcp nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de TEXT HELP Boot to Knoppix x86 Live ENDTEXT @@ -370,8 +370,8 @@ fi #========== END ========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -379,7 +379,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -389,8 +389,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -398,7 +398,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu LTS x64 Live User: lubuntu @@ -408,8 +408,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]]; then echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -417,7 +417,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu LTS x86 Live User: lubuntu @@ -427,8 +427,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $LUBUNTU_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -436,7 +436,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -446,8 +446,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]]; then echo -e "\e[36m add $LUBUNTU_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -455,7 +455,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -465,8 +465,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $MINT_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -474,7 +474,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL linux-mint x64 KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to linux-mint x64 Live User: @@ -484,8 +484,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]]; then echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -493,7 +493,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL openSUSE Leap Rescue x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND root=live:AOEINTERFACE=e0.1 rd.kiwi.live.pxe -- + APPEND ip=dhcp root=live:AOEINTERFACE=e0.1 rd.kiwi.live.pxe -- TEXT HELP Boot to openSUSE Leap Rescue Live User: liveuser @@ -503,8 +503,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]]; then echo -e "\e[36m add $OPENSUSE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -512,7 +512,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL openSUSE Leap x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND root=live:AOEINTERFACE=e1.1 rd.kiwi.live.pxe -- + APPEND ip=dhcp root=live:AOEINTERFACE=e1.1 rd.kiwi.live.pxe -- TEXT HELP Boot to openSUSE Leap Live User: liveuser @@ -522,8 +522,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]]; then echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -531,7 +531,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Parrot Full x64 KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE pkeys=$CUSTOM_KMAP setxkbmap=$CUSTOM_KMAP utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -541,8 +541,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]]; then echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -550,7 +550,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Parrot Lite x64 KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG pkeys=$CUSTOM_LANG setxkbmap=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE pkeys=$CUSTOM_KMAP setxkbmap=$CUSTOM_KMAP utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live @@ -560,8 +560,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo" ]]; then echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -569,7 +569,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Pentoo Beta x64 KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- TEXT HELP Boot to Pentoo Beta x64 Live User: pentoo @@ -579,8 +579,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$PENTOO_X64/boot/pentoo" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$PENTOO_X64/boot/pentoo" ]]; then echo -e "\e[36m add $PENTOO_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -588,7 +588,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Pentoo x64 KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/boot/pentoo INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/boot/pentoo.igz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- TEXT HELP Boot to Pentoo x64 Live User: pentoo @@ -598,8 +598,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]]; then echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -607,7 +607,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Raspberry Pi Desktop KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LANG_LOCALE keyboard-layouts=$CUSTOM_LANG utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Raspberry Pi Desktop User: pi, Password: raspberry @@ -617,8 +617,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz" ]]; then echo -e "\e[36m add $SYSTEMRESCUE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -627,8 +627,8 @@ if [ -f "$FILE_MENU" ] \ KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/intel_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/amd_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/sysresccd.img #APPEND archisobasedir=sysresccd archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X64 - APPEND archisobasedir=sysresccd archiso_http_srv=$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/ - SYSAPPEND 3 + APPEND ip=dhcp archisobasedir=sysresccd archiso_http_srv=$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/ + #SYSAPPEND 3 TEXT HELP Boot to System Rescue x64 Live User: root @@ -638,14 +638,14 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]; then - if ! [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz : fi - if [ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]; then + if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then echo -e "\e[36m add $TAILS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -657,7 +657,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Tails x64 KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC -- keyboard-layouts=$CUSTOM_LANG + APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC -- keyboard-layouts=$CUSTOM_LAYOUTCODE TEXT HELP Boot to Tails x64 Live ENDTEXT @@ -670,8 +670,8 @@ fi #========== END ========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then echo -e "\e[36m add $TINYCORE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -680,9 +680,9 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL tiny core x64 KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 tz=Europe/Berlin noswap norestore settime showapps pause + APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 tz=Europe/Berlin noswap norestore settime showapps pause TEXT HELP Boot to tiny core x64 User: tc @@ -692,8 +692,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then echo -e "\e[36m add $TINYCORE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -712,8 +712,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]]; then echo -e "\e[36m add $TINYCORE_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -723,7 +723,7 @@ if [ -f "$FILE_MENU" ] \ KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore TEXT HELP Boot to tiny core x86 User: tc @@ -733,8 +733,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -742,7 +742,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -752,8 +752,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -764,7 +764,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Live FirmwareTestSuite KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper toram -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- TEXT HELP Boot to Ubuntu Live FirmwareTestSuite User: ubuntu @@ -774,8 +774,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -783,7 +783,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -793,8 +793,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -802,7 +802,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu @@ -812,8 +812,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -821,7 +821,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu Studio x64 Daily-Live User: ubuntu @@ -831,8 +831,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -840,7 +840,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu Studio x64 Live User: ubuntu @@ -850,8 +850,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -859,7 +859,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -869,8 +869,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -878,7 +878,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu x86 Live User: ubuntu @@ -893,8 +893,8 @@ fi #custom# #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]]; then echo -e "\e[36m add $DESINFECT_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -902,7 +902,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL desinfect x86 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to ct desinfect x86 User: desinfect @@ -912,8 +912,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]]; then echo -e "\e[36m add $DESINFECT_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -921,7 +921,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL desinfect x64 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to ct desinfect x64 User: desinfect @@ -931,8 +931,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]]; then echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -940,7 +940,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Ubuntu non-PAE x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs ip=dhcp file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LANG_LOCALE console-setup/layoutcode=$CUSTOM_LANG keyboard-configuration/layoutcode=$CUSTOM_LANG keyboard-configuration/variant=$CUSTOM_LANG_WRITTEN + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu non-PAE x86 Live User: ubuntu @@ -950,8 +950,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]]; then echo -e "\e[36m add $WIN_PE_X86 (PXE)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -966,8 +966,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_ISO/$WIN_PE_X86.iso" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_ISO/$WIN_PE_X86.iso" ]]; then echo -e "\e[36m add $WIN_PE_X86 (ISO)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -984,9 +984,9 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_TFTP_ETH0/$1/wimboot" ] \ -&& [ -f "$DST_NFS_ETH0/$WIN_PE_X86/sources/boot.wim" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_TFTP_ETH0/$1/wimboot" ]] \ +&& [[ -f "$DST_NFS_ETH0/$WIN_PE_X86/sources/boot.wim" ]]; then echo -e "\e[36m add $WIN_PE_X86 (WIM)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -1002,8 +1002,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_TFTP_ETH0/$1/pxeboot.n12" ]]; then echo -e "\e[36m add $WIN_PE_X64 (PXE)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -1018,8 +1018,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_ISO/$WIN_PE_X64.iso" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_ISO/$WIN_PE_X64.iso" ]]; then echo -e "\e[36m add $WIN_PE_X64 (ISO)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -1036,9 +1036,9 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_TFTP_ETH0/$1/wimboot" ] \ -&& [ -f "$DST_NFS_ETH0/$WIN_PE_X64/sources/boot.wim" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_TFTP_ETH0/$1/wimboot" ]] \ +&& [[ -f "$DST_NFS_ETH0/$WIN_PE_X64/sources/boot.wim" ]]; then echo -e "\e[36m add $WIN_PE_X64 (WIM)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -1059,8 +1059,8 @@ fi #broken# #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]]; then echo -e "\e[36m add $ANDROID_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -1069,7 +1069,7 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL Android x86 (broken) KERNEL $FILE_BASE$NFS_ETH0/$ANDROID_X86/kernel INITRD $FILE_BASE$NFS_ETH0/$ANDROID_X86/initrd.img - APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ANDROID_X86 ro netboot=nfs root=/dev/ram0 androidboot.selinux=permissive SRC= DATA= + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ANDROID_X86 ro netboot=nfs root=/dev/ram0 androidboot.selinux=permissive SRC= DATA= TEXT HELP Boot to Android x86 Live User: root @@ -1079,8 +1079,8 @@ fi #=========== END =========== #========== BEGIN ========== -if [ -f "$FILE_MENU" ] \ -&& [ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz" ]; then +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz" ]]; then echo -e "\e[36m add $CENTOS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -1092,21 +1092,21 @@ if [ -f "$FILE_MENU" ] \ MENU LABEL CentOS x64 (broken) KERNEL $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CENTOS_X64/isolinux/initrd.img - #APPEND root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE + #APPEND ip=dhcp root=live:nfs:$IP_ETH0$DST_NFS_ETH0/$CENTOS_X64 ro rootfstype=auto rd.live.image rhgb rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 rd.shell rd.break console=tty0 loglevel=7 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE + #APPEND ip=dhcp root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE # dracut: FATAL: Don't know how to handle 'root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img'; - #APPEND root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE + #APPEND ip=dhcp root=live:nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE # mount.nfs: mountpoint /sysroot is not a directory - #APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE + #APPEND ip=dhcp root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64/LiveOS/squashfs.img ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE # Warning: Could not boot. # Warning: /dev/mapper/live-rw does not exist # Starting Dracut Emergency Shell - APPEND root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_LANG_EXT locale.LANG=$CUSTOM_LANG_LOCALE + APPEND ip=dhcp root=nfs:$IP_ETH0:$DST_NFS_ETH0/$CENTOS_X64 ro root-path=/LiveOS/squashfs.img rootfstype=squashfs rd.live.image rd.live.ram=1 rd.live.overlay=none rd.luks=0 rd.md=0 rd.dm=0 vga=794 rd.shell log_buf_len=1M rd.retry=10 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE TEXT HELP Boot to CentOS LiveGNOME @@ -1123,12 +1123,12 @@ else ########################################################################## ## ipxe #========== BEGIN ========== -if [ -f "$FILE_MENU" ]; then +if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add ipxe menu\e[0m"; cat << EOF | sudo tee $FILE_MENU &>/dev/null #!ipxe -# 2021-01-19 +# 2021-01-30 # made by https://github.com/beta-tester # for project https://github.com/beta-tester/RPi-PXE-Server @@ -1139,14 +1139,12 @@ if [ -f "$FILE_MENU" ]; then iseq \${product} VirtualBox || goto end_ipxe_chainload_serverversion set version_vbox 1.0.0+ iseq \${version} \${version_vbox} || goto end_ipxe_chainload_serverversion - :ipxe_chainload_serverversion echo download iPXE iseq \${platform} efi && set ipxe_file ipxe.efi || set ipxe_file undionly.kpxe imgfree || chain \${ipxe_file} exit - :end_ipxe_chainload_serverversion @@ -1155,13 +1153,13 @@ exit set base http://\${next-server}/srv/nfs set nfsroot \${next-server}:/srv/nfs -set language de -set layoutcode de -set variant German -set locale de_DE.UTF-8 -set timezone Europe/Berlin -set keymap de-latin1-nodeadkeys -set kmap qwertz/de-latin1 +set keymap $CUSTOM_KEYMAP +set kmap $CUSTOM_KMAP +set language $CUSTOM_LANGUAGE +set layoutcode $CUSTOM_LAYOUTCODE +set locale $CUSTOM_LOCALE +set timezone $CUSTOM_TIMEZONE +set variant $CUSTOM_VARIANT # Figure out if client is 64-bit capable @@ -1171,13 +1169,13 @@ cpuid --ext 29 && set arch2 amd64 || set arch2 i686 cpuid --ext 29 && set bit_cpu 64 || set bit_cpu 32 # Figure out if BIOS, EFI32 or EFI64 -iseq \${platform} efi && goto is_efi || +:begin_test_bios +iseq \${platform} efi && goto test_bios_is_efi || set pxe_menu menu-bios -goto start -:is_efi +goto end_test_bios +:test_bios_is_efi cpuid --ext 29 && set pxe_menu menu-efi64 || set pxe_menu menu-efi32 -goto start - +:end_test_bios ######################################################################## ### MAIN MENU @@ -1327,7 +1325,7 @@ goto start :debian-mate-x86 :debian-x64 :debian-x86 -set version 4.19.0-13 +set version $DEBIAN_KVER set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config imgselect \${base}/\${os}/live/vmlinuz-\${version}-\${arch} \${options} \${custom} || goto failed diff --git a/p2-include-url.sh b/p2-include-url.sh index 3531313..e526a82 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -1,7 +1,7 @@ #!/bin/bash ########################################################################## -if [ -z "$script_dir" ] +if [[ -z "$script_dir" ]] then echo "do not run this script directly !" echo "this script is part of install-pxe-server-pass2.sh" diff --git a/p2-include-var.sh b/p2-include-var.sh index 3053dc9..27187b5 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -1,7 +1,7 @@ #!/bin/bash ########################################################################## -if [ -z "$script_dir" ] +if [[ -z "$script_dir" ]] then echo "do not run this script directly !" echo "this script is part of install-pxe-server-pass2.sh" @@ -19,13 +19,14 @@ fi ## and other variables... ########################################################################## ########################################################################## -CUSTOM_LANG=de -CUSTOM_LANG_LONG=de_DE -CUSTOM_LANG_UPPER=DE -CUSTOM_LANG_LOCALE=de_DE.UTF-8 -CUSTOM_LANG_WRITTEN=German -CUSTOM_LANG_EXT=de-latin1-nodeadkeys +CUSTOM_COUNTRY=DE +CUSTOM_KEYMAP=de-latin1-nodeadkeys +CUSTOM_KMAP=qwertz/de-latin1 +CUSTOM_LANGUAGE=de +CUSTOM_LAYOUTCODE=de +CUSTOM_LOCALE=de_DE.UTF-8 CUSTOM_TIMEZONE=Europe/Berlin +CUSTOM_VARIANT=German ########################################################################## RPI_SN0=-------- RPI_SN1=-------- @@ -36,19 +37,19 @@ INTERFACE_ETH0= INTERFACE_ETH1=eth1 INTERFACE_WLAN0=wlan0 ########################################################################## -if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/scb/fd580000.genet/net ]; then +if [[ -z "$INTERFACE_ETH0" ]] && [[ -d /sys/devices/platform/scb/fd580000.genet/net ]]; then # RPi4B INTERFACE_ETH0=$(ls /sys/devices/platform/scb/fd580000.genet/net) fi -if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net ]; then +if [[ -z "$INTERFACE_ETH0" ]] && [[ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net ]]; then # RPi3B+ INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/net) fi -if [ -z "$INTERFACE_ETH0" ] && [ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net ]; then +if [[ -z "$INTERFACE_ETH0" ]] && [[ -d /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net ]]; then # RPi1B rev.1, RPi1B rev.2, RPi1B+, RPi2B, RPi3B INTERFACE_ETH0=$(ls /sys/devices/platform/soc/*.usb/usb1/1-1/1-1.1/1-1.1:1.0/net) fi -if [ -z "$INTERFACE_ETH0" ]; then +if [[ -z "$INTERFACE_ETH0" ]]; then # fallback INTERFACE_ETH0=eth0 fi @@ -75,7 +76,7 @@ IP_WLAN0_END=192.168.251.110 IP_WLAN0_MASK=255.255.255.0 ########################################################################## DRIVER_WLAN0=nl80211 -COUNTRY_WLAN0=$CUSTOM_LANG_UPPER +COUNTRY_WLAN0=$CUSTOM_COUNTRY PASSWORD_WLAN0=p@ssw0rd SSID_WLAN0=wlan0@domain.local INTERFACE_WLAN0X=wlan0x @@ -102,6 +103,7 @@ DST_NFS_ETH0=$DST_ROOT$NFS_ETH0 DST_PXE_BIOS=menu-bios DST_PXE_EFI32=menu-efi32 DST_PXE_EFI64=menu-efi64 +DST_IPXE=menu-ipxe ########################################################################## KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') From 56c0009ba5019b28fbb46645d00ae37277ec1f9b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 31 Jan 2021 20:24:42 +0100 Subject: [PATCH 394/694] renamed and split scripts - renamed scripts install-pxe-server-... to p0-install.sh and p1-setup.sh - split of p2-update.sh from p1-setup.sh to separate functionality - created script run.sh as only entry point to automatically choose the right next action - added c2-custom-... scripts for customization and description how to fill (inspired by jake5253) - updated README - updated url (tails, clonezilla) --- README.md | 83 +- c2-custom-handle.sh | 64 + c2-custom-menu.sh | 35 + c2-custom-url.sh | 34 + c2-custom-var.sh | 29 + install-pxe-server_pass1.sh => p0-install.sh | 66 +- p1-setup.sh | 572 +++++ p2-include-handle.sh | 118 +- p2-include-menu.sh | 14 +- p2-include-url.sh | 54 +- p2-include-var.sh | 34 +- install-pxe-server_pass2.sh => p2-update.sh | 2108 +++++++----------- run.sh | 92 + 13 files changed, 1822 insertions(+), 1481 deletions(-) create mode 100644 c2-custom-handle.sh create mode 100644 c2-custom-menu.sh create mode 100644 c2-custom-url.sh create mode 100644 c2-custom-var.sh rename install-pxe-server_pass1.sh => p0-install.sh (94%) create mode 100644 p1-setup.sh rename install-pxe-server_pass2.sh => p2-update.sh (75%) create mode 100644 run.sh diff --git a/README.md b/README.md index 28734b4..76e43c2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ it is a private project i have made for myself.
i did not keep an eye on network security. **the script will override some existing configurations**
-(a backup of the changed configuration files will be stored to **backup.tar.xz**)
+(a backup of the changed configuration files will be stored to **backup.tar.xz** in the script folder)
(to extract all versions of all files to /tmp: `tar --backup=numbered -xavf backup.tar.xz -C /tmp`, some files will be hidden) **USE IT AT YOUR OWN RISK.** @@ -80,26 +80,27 @@ mkdir -p /backup/tftp/EFI ``` replace **** with the path, where you mounted your USB stick. -1. run `bash install-pxe-server_pass1.sh` to install necessary packages
+1. run `bash run.sh` the first time, to install necessary packages
(use **_bash_** and do not run it from **_sudo_**) 2. reboot your RPi with `sudo reboot` -3. run `bash install-pxe-server_pass2.sh` to copy/download iso images of LiveDVDs, mount and export them and setup PXE menu according installed images.
-(use **_bash_** and do not run it from **_sudo_**) +3. run `bash run.sh` the second time to setup everything required for PXE server. 4. reboot your RPi with `sudo reboot` +5. run `bash run.sh` the third time to copy/download iso images of LiveDVDs, mount and export them and setup PXE menu according installed images.
+6. reboot your RPi with `sudo reboot` done. ## update: -to update your images, update the url in the **p2-include-url.sh** file
-and re-run `bash install-pxe-server_pass2.sh`. -this will download all updated iso files. +to update your images, update the url in the **p2-include-url.sh** and **c2-custom-url.sh** file
+and re-run `bash run.sh`. +this will download all updated iso files and menu entries. ## modifying the script: -### p2-include-var.sh +### p2-include-var.sh / c2-custom-var.sh includes all important variables like source and destination directories, ip-addresses, and so on. e.g.: by changing '**DST_ROOT=/srv**' you can tell the script to download and store all iso to an external storage, instead of storing to the internal SD card. -### p2-include-url.sh +### p2-include-url.sh / c2-custom-url.sh includes all url and name of images ``` e.g. @@ -107,7 +108,7 @@ DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://... ``` -### p2-include-menu.sh +### p2-include-menu.sh / c2-custom-menu.sh includes all pxe-menu entries and kernel parameters in the script, for each image there is a pxe-menu entry enclosed by
`#========== BEGIN ==========`
@@ -115,47 +116,49 @@ and
`#=========== END ===========`
comments. -### p2-include-handle.sh -includes all handler to control what image to download and expose to the pxe-server -**if you don't want some iso images getting downloaded and mounted, you can disable images from handling '#'.
+### p2-include-handle.sh / c2-custom-handle.sh +includes all handler to control what image to download and expose to the pxe-server
+if you don't want some iso images getting downloaded and mounted, you can disable images from handling '#'.
or '-' to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
-e.g.:** +e.g.: ``` handle_item '+' iso UBUNTU_X64; handle_item '-' iso UBUNTU_LTS_X64; handle_item '#' iso UBUNTU_DAILY_X64 timestamping; ... ``` -'+' = add image to PXE service - download if not there - update if newer version is available +action: + '+' = add image to PXE service + download if not there + update if new version is available -'-' = remove image from PXE service - free resources on server - if backup exist, keep updating backup) + '-' = remove image from PXE service + free resources on server + if backup exist, keep updating backup -'#' = skip image handling - keep everything untouched - does not updating backup - good, when timestamping option is set + '#' = skip image handling + keep everything untouched + does not updating backup + good, when timestamping option is set but want to keep the current version and you don't want to download each daily update -iso = iso image (ISO,UDF, ISO_HYBRID) +type: + iso = iso image (ISO, UDF, ISO_HYBRID) -img = harddrive image (MPT, GPT) + img = hard drive image (MPT, GPT) -kernel = kernel + kernel = kernel -zip_img = zip file containing an harddrive image (zip -> MTP, GPT) + zip_img = zip file containing a hard drive image (zip -> img -> MTP/GPT) -rpi_pxe = only if you want to pxe boot a RPi3. - (copyes files from boot & root partition to local directors) - requires an already mounted harddrive image (img or zip_img) - note: option '-' does nothing for rpi_pxe. - you have to free resources for rpi_pxe by hand + rpi_pxe = only if you want to pxe boot a RPi3. + copies files from its selected image boot & root partition to PXE server directories + requires an already mounted hard drive image (img or zip_img) + note: Action '-' does nothing for rpi_pxe. It is not implemented. + You have to free resources for rpi_pxe by hand note: -do not put the $ infornt of the VARIABLE name !!! -the handle_item functions do need the NAME of the VARIABLE (without _URL) + do not put the $ in fornt of the VARIABLE name !!! + the handle_item functions do need the NAME of the VARIABLE (without _URL) ## what else you should know, when you make modification to the script... there are three important locations for the pxe boot and the pxe menu that must fit. otherwise the pxe menu and the following boot process can not find required files. @@ -181,7 +184,7 @@ there are three important locations for the pxe boot and the pxe menu that must └── var └── www └── html (HTML root) - └── srv (only a symbolic link to IMG files) + └── srv (only a symbolic link to /srv) ├── img (only a symbolic link to IMG files) ├── iso (only a symbolic link to ISO files) └── nfs (only a symbolic link to NFS files) @@ -252,7 +255,7 @@ and another issue is, overlayfs can't handle **vfat** partitions as source (lowe some of the PXE-menu entries has additional parameters, that lets the Live systems boot with German language (keyboard layout). if you don't like or want, remove those additional parameters just behind the ' --' in the menu entries -to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var.sh** script. +to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var.sh** script or use **c2-custom-var.sh** to override those variables with your values. ``` CUSTOM_COUNTRY=DE CUSTOM_KEYMAP=de-latin1-nodeadkeys @@ -265,11 +268,13 @@ CUSTOM_VARIANT=German ``` ## note3: -it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet by me, because of lack of hardware for UEFI boot. +it is prepared for BIOS, UEFI 32bit and UEFI 64bit boot, but UEFI is not tested yet by me, because of lack of hardware for UEFI boot.
+IPv4 UEFI 64bit boot with SecureBoot enabled is tested and working on my computer (with Asus board and latest Fedora, Debian and Ubuntu distro).
+but tested with an other computer it wont work - it depends on the UEFI firmware. ## note4: NETWORK BOOTING for Raspberry Pi 3 client the server is prepared for to boot a Raspberry Pi 3 client via network. -in the script ```install-pxe-server_pass2.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
+in the script ```p2-include-var.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
skip the leading '00000000'. take only the last 8 digits!
e.g. ``` diff --git a/c2-custom-handle.sh b/c2-custom-handle.sh new file mode 100644 index 0000000..1d32f20 --- /dev/null +++ b/c2-custom-handle.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +######################################################################## +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of p2-update.sh' + exit -1 +fi +######################################################################## + + +######################################################################## +# Add your custom entries to this file. +# +# Example: +# handle_item '+' iso CUSTOM_ENTRY1; +# handle_item '+' iso CUSTOM_ENTRY2; +# +# Ensure your CUSTOM_ENTRY name is unique +# and the same name as in c2-custom-url.sh and c2-custom-menu.sh + + +######################################################################## +# +# Action: +# '+' = Add image to PXE service +# Download if not there +# Update if new version is available +# +# '-' = Remove image from PXE service +# Free resources on server +# If backup exist, keep updating backup +# +# '#' = Skip image handling +# Keep everything untouched +# Does not updating backup +# Good, when timestamping option is set but want to keep the current version and you don't want to download each daily update +# +# Type: +# iso = Iso image (ISO, UDF, ISO_HYBRID) +# +# img = Hard drive image (MPT, GPT) +# +# kernel = Kernel +# +# zip_img = Zip file containing a hard drive image (zip -> img -> MTP/GPT) +# +# rpi_pxe = Only if you want to pxe boot a RPi3. +# Copies files from its selected image boot & root partition to PXE server directories +# Requires an already mounted hard drive image (img or zip_img) +# Note: Action '-' does nothing for rpi_pxe. It is not implemented. +# You have to free resources for rpi_pxe by hand +# +# +# Note: +# Do not put the $ in fornt of the VARIABLE name !!! +# the handle_item functions do need the NAME of the VARIABLE (without _URL) + +######################################################################## +##-----------+----+-----+------------------------+---------------------- +##exec |act.|type |VAR. name of item |optional options +#handle_item '+' iso CUSTOM_ENTRY1 timestamping ,custom_fstab_options; +#handle_item '+' iso CUSTOM_ENTRY2 ,custom_fstab_options vbladed 1 1; diff --git a/c2-custom-menu.sh b/c2-custom-menu.sh new file mode 100644 index 0000000..d0f34d9 --- /dev/null +++ b/c2-custom-menu.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +######################################################################## +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of p2-update.sh' + exit -1 +fi +######################################################################## + + +######################################################################## +# Add your custom entries to this file. +# +# Ensure your $CUSTOM_ENTRY name is unique +# and the same name as in handle_custom and url_custom + +#========== BEGIN Example ========== +# if [[ -f "$FILE_MENU" ]] \ # This line is needed on ALL entries +# && [[ -f "$DST_ISO/$CUSTOM_ENTRY.iso" ]]; then # This file may be the iso itself, or any file in the iso. It just verifies the file exists +# echo -e "\e[36m add $CUSTOM_ENTRY\e[0m"; # Use your $custom_entry name +# cat << EOF | sudo tee -a $FILE_MENU &>/dev/null # This line is needed on ALL entries +# ######################################## +# LABEL $CUSTOM_ENTRY # This is best to use your $CUSTOM_ENTRY name, but can be any unique name with no whitespace +# MENU LABEL My Customized Linux x64 # This can be anything. This is what will be displayed on the Menu +# KERNEL $FILE_BASE$NFS_ETH0/$CUSTOM_ENTRY/live/vmlinuz-5.7.7 # This entry and entries below are what loads the OS. You'll have to determine these yourself +# INITRD $FILE_BASE$NFS_ETH0/$CUSTOM_ENTRY/live/initrd-5.7.7.lz # Look at other entries in the main p2-include-menu.sh for a similar distro and try those/similar settings +# APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CUSTOM_ENTRY ro netboot=nfs ip=dhcp boot=live union=overlay livecd-installer console=tty splash -- +# TEXT HELP +# Boot into My Custom Linux version x64 # This can be anything. This is what will be displayed when the menu entry is selected +# ENDTEXT +# EOF +# fi +#=========== END Example=========== diff --git a/c2-custom-url.sh b/c2-custom-url.sh new file mode 100644 index 0000000..716144d --- /dev/null +++ b/c2-custom-url.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +######################################################################## +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of p2-update.sh' + exit -1 +fi +######################################################################## + + +######################################################################## +# Add your custom entry URLs to this file +# +# Example: +# CUSTOM_ENTRY1=my-custom-linux-x64 +# CUSTOM_ENTRY1_URL=https://isos.my-live-os.org/my_customized_linux-super-cool.iso +# CUSTOM_ENTRY1_SUM=https://isos.my-live-os.org/my_customized_linux-super-cool.sum +# CUSTOM_ENTRY1_SUM_TYPE=sha256 +# +# For local files, use the full path starting from the root directory - / +# Example: +# CUSTOM_ENTRY2=my-custom-linux-x64 +# CUSTOM_ENTRY2_URL=/home/pi/Downloads/my_customized_linux-super-cool.iso +# CUSTOM_ENTRY2_SUM=/home/pi/Downloads/my_customized_linux-super-cool.sum +# CUSTOM_ENTRY2_SUM_TYPE=sha256 +# +# Note: +# ..._SUM= Optional. Url to a file that contains somewhere the hash value of the image file +# ..._SUM_TYPE= Optional. Hash function used to calculate the hash value of the image file +# +# Ensure your CUSTOM_ENTRY name is unique +# and the same name as in c2-custom-handle.sh and c2-custom-menu.sh diff --git a/c2-custom-var.sh b/c2-custom-var.sh new file mode 100644 index 0000000..c2037b6 --- /dev/null +++ b/c2-custom-var.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +######################################################################## +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of p2-update.sh' + exit -1 +fi +######################################################################## + + +######################################################################## +# Add your custom entries to this file. +# +# You can override existing variables here: +# Example: +# CUSTOM_COUNTRY=DE +# CUSTOM_KEYMAP=de-latin1-nodeadkeys +# CUSTOM_KMAP=qwertz/de-latin1 +# CUSTOM_LANGUAGE=de +# CUSTOM_LAYOUTCODE=de +# CUSTOM_LOCALE=de_DE.UTF-8 +# CUSTOM_TIMEZONE=Europe/Berlin +# CUSTOM_VARIANT=German +# +# Or add additional variables you want to use in your other custom files e.g.: c2-custom-menu.sh +# Example: +# MY_CUSTOM_VARIABLE=my custom value diff --git a/install-pxe-server_pass1.sh b/p0-install.sh similarity index 94% rename from install-pxe-server_pass1.sh rename to p0-install.sh index 372508d..d50a4b2 100644 --- a/install-pxe-server_pass1.sh +++ b/p0-install.sh @@ -1,7 +1,10 @@ #!/bin/bash -###################################################################### -BACKUP_FILE=backup.tar.xz +script_dir=$(dirname "${BASH_SOURCE:?}") + + +######################################################################## +BACKUP_FILE="${script_dir:?}/backup.tar.xz" BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// do_backup() { @@ -9,34 +12,37 @@ do_backup() { } +######################################################################## + + do_backup boot/cmdline.txt -###################################################################### +######################################################################## grep -q max_loop /boot/cmdline.txt &>/dev/null || { echo -e "\e[32msetup cmdline.txt for more loop devices\e[0m"; sudo sed -i '1 s/$/ max_loop=64/' /boot/cmdline.txt; } -###################################################################### +######################################################################## grep -q net.ifnames /boot/cmdline.txt &>/dev/null || { echo -e "\e[32msetup cmdline.txt for old style network interface names\e[0m"; sudo sed -i '1 s/$/ net.ifnames=0/' /boot/cmdline.txt; } -###################################################################### +######################################################################## grep -q quiet /boot/cmdline.txt &>/dev/null && { echo -e "\e[32msetup cmdline.txt for more boot output\e[0m"; sudo sed -i '1 s/ quiet//' /boot/cmdline.txt; } -###################################################################### +######################################################################## grep -q splash /boot/cmdline.txt &>/dev/null && { echo -e "\e[32msetup cmdline.txt for no splash screen\e[0m"; sudo sed -i '1 s/ splash//' /boot/cmdline.txt; } -###################################################################### +######################################################################## echo -e "\e[32msync...\e[0m" && sudo sync \ && echo -e "\e[32mupdate...\e[0m" && sudo apt update \ && echo -e "\e[32mupgrade...\e[0m" && sudo apt full-upgrade -y \ @@ -48,53 +54,53 @@ echo -e "\e[32msync...\e[0m" && sudo sync \ ; -###################################################################### +######################################################################## echo -e "\e[32minstall debconf-utils\e[0m"; sudo apt install -y --no-install-recommends debconf-utils; -###################################################################### +######################################################################## echo -e "\e[32minstall uuid\e[0m"; sudo apt install -y --no-install-recommends uuid; -###################################################################### +######################################################################## echo -e "\e[32minstall nfs-kernel-server for pxe\e[0m"; sudo apt install -y --no-install-recommends nfs-kernel-server; sudo systemctl enable nfs-kernel-server.service; sudo systemctl restart nfs-kernel-server.service; -###################################################################### +######################################################################## echo -e "\e[32menable port mapping\e[0m"; sudo systemctl enable rpcbind.service; sudo systemctl restart rpcbind.service; -###################################################################### +######################################################################## echo -e "\e[32minstall dnsmasq for pxe\e[0m"; sudo apt install -y --no-install-recommends dnsmasq sudo systemctl enable dnsmasq.service; sudo systemctl restart dnsmasq.service; -###################################################################### +######################################################################## echo -e "\e[32minstall samba\e[0m"; echo "samba-common samba-common/dhcp boolean false" | sudo debconf-set-selections; sudo apt install -y --no-install-recommends samba; -###################################################################### +######################################################################## echo -e "\e[32minstall rsync\e[0m"; sudo apt install -y --no-install-recommends rsync; -###################################################################### +######################################################################## echo -e "\e[32minstall syslinux-common for pxe\e[0m"; sudo apt install -y --no-install-recommends pxelinux syslinux-common syslinux-efi; -###################################################################### +######################################################################## echo -e "\e[32minstall lighttpd\e[0m"; sudo apt install -y --no-install-recommends lighttpd; grep -q mod_install_server /etc/lighttpd/lighttpd.conf &>/dev/null || { @@ -113,24 +119,24 @@ do_backup var/www/html/index.lighttpd.html sudo rm /var/www/html/index.lighttpd.html -###################################################################### +######################################################################## echo -e "\e[32minstall vblade\e[0m"; sudo apt install -y --no-install-recommends vblade vblade-persist; -###################################################################### +######################################################################## echo -e "\e[32minstall wlan access point\e[0m"; sudo apt install -y --no-install-recommends hostapd -###################################################################### +######################################################################## echo -e "\e[32minstall iptables for network address translation (NAT)\e[0m"; echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | sudo debconf-set-selections; echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | sudo debconf-set-selections; sudo apt install -y --no-install-recommends iptables iptables-persistent -###################################################################### +######################################################################## $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { echo -e "\e[32minstall chrony as ntp client and ntp server\e[0m"; sudo apt install -y --no-install-recommends chrony; @@ -138,39 +144,39 @@ $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { sudo systemctl restart chronyd.service; } -###################################################################### -###################################################################### +######################################################################## +######################################################################## echo -e "\e[32minstall real-vnc-server\e[0m"; sudo apt install -y --no-install-recommends realvnc-vnc-server realvnc-vnc-viewer sudo systemctl enable vncserver-x11-serviced.service; sudo systemctl restart vncserver-x11-serviced.service; -###################################################################### +######################################################################## ## optional echo -e "\e[32minstall tools to create initrd images\e[0m"; sudo apt install -y --no-install-recommends squashfs-tools initramfs-tools xz-utils; -###################################################################### +######################################################################## ## optional #echo -e "\e[32minstall apt-cacher-ng\e[0m"; #sudo apt install -y --no-install-recommends apt-cacher-ng; -###################################################################### +######################################################################## ## optional #echo -e "\e[32minstall bindfs\e[0m"; #sudo apt install -y --no-install-recommends fuse bindfs; -###################################################################### +######################################################################## ## optional #bridge#echo -e "\e[32minstall network bridge\e[0m"; #bridge#sudo apt install -y --no-install-recommends bridge-utils -###################################################################### +######################################################################## ## optional echo -e "\e[32minstall wireshark\e[0m"; echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; @@ -187,7 +193,7 @@ sudo systemctl stop minissdpd.service sudo systemctl disable minissdpd.service -###################################################################### +######################################################################## ## optional grep -q logo.nologo /boot/cmdline.txt 2> /dev/null || { echo -e "\e[32msetup cmdline.txt for no logo\e[0m"; @@ -195,7 +201,7 @@ sudo sed -i '1 s/$/ logo.nologo/' /boot/cmdline.txt; } -###################################################################### +######################################################################## ## optional echo -e "\e[32mchange hostname\e[0m"; do_backup etc/hostname @@ -204,7 +210,7 @@ do_backup etc/hosts sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts -###################################################################### +######################################################################## sync echo -e "\e[32mDone.\e[0m"; echo -e "\e[1;31mPlease reboot\e[0m"; diff --git a/p1-setup.sh b/p1-setup.sh new file mode 100644 index 0000000..98ebdad --- /dev/null +++ b/p1-setup.sh @@ -0,0 +1,572 @@ +#!/bin/bash + +######################################################################## +# known issues: +# overlayfs can not get exported via nfs +# overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy +# note: this overlayfs+bindfs construction does NOT work reliably - data loss! +# solution: maybe linux kernel 5.6 + + +script_dir=$(dirname "${BASH_SOURCE:?}") + + +######################################################################## +BACKUP_FILE="${script_dir:?}/backup.tar.xz" +BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// + +do_backup() { + tar -ravf "${BACKUP_FILE:?}" --transform="${BACKUP_TRANSFORM:?}" -C / "${1:?}" &>/dev/null +} + + +######################################################################## +echo -e "\e[36msetup variables\e[0m"; + + +######################################################################## +######################################################################## +. "${script_dir:?}/p2-include-var.sh" +. "${script_dir:?}/c2-custom-var.sh" + + +echo +echo -e "${KERNEL_MAJOR}.${KERNEL_MINOR} \e[36mis kernel version\e[0m"; +echo -e "${INTERFACE_ETH0} \e[36mis used as primary networkadapter for PXE\e[0m"; +echo -e "${IP_ETH0} \e[36mis used as primary IP address for PXE\e[0m"; +echo -e "${RPI_SN0} \e[36mis used as SN for RPi3 network booting\e[0m"; +echo + +if [[ -z "${IP_ETH0}" ]]; then + echo -e "\e[1;31mIP address not found. please check your ethernet cable.\e[0m"; + exit 1 +fi + +if [[ -z "${IP_ETH0_ROUTER}" ]]; then + echo -e "\e[1;31mrouter IP address not found. please check your router settings.\e[0m"; + exit 1 +fi + +[[ -z "${SRC_MOUNT}" ]] && sudo umount -f "${SRC_MOUNT}" &>/dev/null; +[[ -z "${SRC_MOUNT}" ]] && sudo mount "${SRC_MOUNT}" &>/dev/null; + + +######################################################################## +handle_chrony() { + #################################################################### + ## chrony + grep -q mod_install_server /etc/chrony/chrony.conf 2> /dev/null || { + echo -e "\e[36m setup chrony\e[0m"; + do_backup etc/chrony/chrony.conf + cat << EOF | sudo tee /etc/chrony/chrony.conf &>/dev/null +######################################## +## mod_install_server +allow + +server ptbtime1.ptb.de iburst +server ptbtime2.ptb.de iburst +server ptbtime3.ptb.de iburst +server ntp1.oma.be iburst +server ntp2.oma.be iburst + +pool ${CUSTOM_LANGUAGE:?}.pool.ntp.org iburst + +keyfile /etc/chrony/chrony.keys +driftfile /var/lib/chrony/chrony.drift +logdir /var/log/chrony +maxupdateskew 100.0 +hwclockfile /etc/adjtime +rtcsync +makestep 1 5 +EOF + sudo systemctl restart chronyd.service; + } +} + + +######################################################################## +handle_dhcpcd() { + echo -e "\e[32mhandle_dhcpcd()\e[0m"; + + #################################################################### + grep -q mod_install_server /etc/dhcpcd.conf || { + echo -e "\e[36m setup dhcpcd.conf\e[0m"; + do_backup etc/dhcpcd.conf + cat << EOF | sudo tee -a /etc/dhcpcd.conf &>/dev/null + +######################################## +## mod_install_server +interface ${INTERFACE_ETH0:?} + slaac private + static ip_address=${IP_ETH0:?}/24 + static ip6_address=fd80::${IP_ETH0:?}/120 + static routers=${IP_ETH0_ROUTER:?} + static domain_name_servers=${IP_ETH0_ROUTER:?} 1.1.1.1 2606:4700:4700::1111 + +######################################## +interface ${INTERFACE_ETH1:?} + slaac private + static ip_address=${IP_ETH1:?}/24 + static ip6_address=fd80::${IP_ETH1:?}/120 + static routers=${IP_ETH1_ROUTER:?} + static domain_name_servers=${IP_ETH1_ROUTER:?} + +######################################## +interface ${INTERFACE_WLAN0:?} + slaac private + static ip_address=${IP_WLAN0:?}/24 + static ip6_address=fd80::${IP_WLAN0:?}/120 + static routers=${IP_WLAN0_ROUTER:?} + static domain_name_servers=${IP_WLAN0_ROUTER:?} +EOF + sudo systemctl daemon-reload; + sudo systemctl restart dhcpcd.service; + } +} + + +######################################################################## +handle_dnsmasq() { + echo -e "\e[32mhandle_dnsmasq()\e[0m"; + + #################################################################### + [[ -f /etc/dnsmasq.d/10-pxe-server ]] || { + echo -e "\e[36m setup dnsmasq for pxe\e[0m"; + do_backup etc/dnsmasq.d/10-pxe-server + cat << EOF | sudo tee /etc/dnsmasq.d/10-pxe-server &>/dev/null +######################################## +#/etc/dnsmasq.d/pxeboot +## mod_install_server + +log-dhcp +#log-queries + +# for local resolve +interface=lo + +# interface selection +interface=${INTERFACE_ETH0:?} +interface=${INTERFACE_ETH1:?} +interface=${INTERFACE_WLAN0:?} +except-interface=wlan1mon +except-interface=wlan2mon + +# +bind-dynamic + +########## +# TFTP_ETH0 (enabled) +enable-tftp=${INTERFACE_ETH0:?} +#tftp-lowercase +tftp-root=${DST_TFTP_ETH0:?}/, ${INTERFACE_ETH0:?} +dhcp-option=tag:${INTERFACE_ETH0:?}, option:tftp-server, 0.0.0.0 + +# +dhcp-option=tag:${INTERFACE_ETH1:?}, option:nis-domain, eth-nis +dhcp-option=tag:${INTERFACE_ETH1:?}, option:domain-name, eth-domain.local +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:nis-domain, wlan-nis +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:domain-name, wlan-domain.local + +########## +# Time Server +dhcp-option=tag:${INTERFACE_ETH0:?}, option:ntp-server, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH1:?}, option:ntp-server, 0.0.0.0 +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:ntp-server, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH0:?}, option6:ntp-server, [::] +dhcp-option=tag:${INTERFACE_ETH1:?}, option6:ntp-server, [::] +dhcp-option=tag:${INTERFACE_WLAN0:?}, option6:ntp-server, [::] + +########## +# DHCP +log-dhcp +#enable-ra + +# block NETGEAR managed switch +dhcp-mac=set:block, 28:c6:8e:*:*:* + +# static IP +#dhcp-host=set:known_128, 08:08:08:08:08:08, 192.168.1.128, [fd80::192.168.1.128], infinite +#dhcp-host=set:known_129, client_acb, 192.168.1.129, [fd80::192.168.1.129], infinite + +# dynamic IP +dhcp-range=tag:${INTERFACE_ETH0:?}, tag:!block, fd80::${IP_ETH0_START:?}, fd80::${IP_ETH0_END:?}, 120, 1h +dhcp-range=tag:${INTERFACE_ETH1:?}, fd80::${IP_ETH1_START:?}, fd80::${IP_ETH1_END:?}, 120, 1h +dhcp-range=tag:${INTERFACE_WLAN0:?}, fd80::${IP_WLAN0_START:?}, fd80::${IP_WLAN0_END:?}, 120, 1h +dhcp-range=tag:${INTERFACE_ETH0:?}, tag:!block, ${IP_ETH0_START:?}, ${IP_ETH0_END:?}, 255.255.255.0, 1h +dhcp-range=tag:${INTERFACE_ETH1:?}, ${IP_ETH1_START:?}, ${IP_ETH1_END:?}, 255.255.255.0, 1h +dhcp-range=tag:${INTERFACE_WLAN0:?}, ${IP_WLAN0_START:?}, ${IP_WLAN0_END:?}, 255.255.255.0, 1h + +########## +# DNS (enabled) +port=53 +#log-queries +dns-loop-detect +stop-dns-rebind +bogus-priv +domain-needed +dhcp-option=tag:${INTERFACE_ETH0:?}, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH1:?}, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:netbios-ns, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH0:?}, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:${INTERFACE_ETH1:?}, option:netbios-dd, 0.0.0.0 +dhcp-option=tag:${INTERFACE_WLAN0:?}, option:netbios-dd, 0.0.0.0 + +# PXE (enabled) +# warning: unfortunately, a RPi3 identifies itself as of architecture x86PC (x86PC=0) +dhcp-mac=set:IS_RPI3,B8:27:EB:*:*:* +dhcp-mac=set:IS_RPI4,DC:A6:32:*:*:* +dhcp-match=set:ARCH_0, option:client-arch, 0 + +# test if it is a RPi or a regular x86PC +tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI3 +tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI4 + +########## +# RPi 3 +pxe-service=tag:IS_RPI3,0, "Raspberry Pi Boot ", bootcode.bin +dhcp-boot=tag:IS_RPI3, bootcode.bin + + +########## +# iPXE +dhcp-match=set:iPXE, option:user-class, iPXE +dhcp-match=set:ipxe.priority, 175, 1 #= signed integer 8; +dhcp-match=set:ipxe.keep-san, 175, 8 #= unsigned integer 8; +dhcp-match=set:ipxe.skip-san-boot, 175, 9 #= unsigned integer 8; +dhcp-match=set:ipxe.syslogs, 175, 85 #= string; +dhcp-match=set:ipxe.cert, 175, 91 #= string; +dhcp-match=set:ipxe.privkey, 175, 92 #= string; +dhcp-match=set:ipxe.crosscert, 175, 93 #= string; +dhcp-match=set:ipxe.no-pxedhcp, 175, 176 #= unsigned integer 8; +dhcp-match=set:ipxe.bus-id, 175, 177 #= string; +dhcp-match=set:ipxe.san-filename, 175, 188 #= string; +dhcp-match=set:ipxe.bios-drive, 175, 189 #= unsigned integer 8; +dhcp-match=set:ipxe.username, 175, 190 #= string; +dhcp-match=set:ipxe.password, 175, 191 #= string; +dhcp-match=set:ipxe.reverse-username, 175, 192 #= string; +dhcp-match=set:ipxe.reverse-password, 175, 193 #= string; +dhcp-match=set:ipxe.version, 175, 235 #= string; +dhcp-match=set:iscsi-initiator-iqn, 175, 203 #= string; +# Feature indicators +dhcp-match=set:ipxe.pxeext, 175, 16 #= unsigned integer 8; +dhcp-match=set:ipxe.iscsi, 175, 17 #= unsigned integer 8; +dhcp-match=set:ipxe.aoe, 175, 18 #= unsigned integer 8; +dhcp-match=set:ipxe.http, 175, 19 #= unsigned integer 8; +dhcp-match=set:ipxe.https, 175, 20 #= unsigned integer 8; +dhcp-match=set:ipxe.tftp, 175, 21 #= unsigned integer 8; +dhcp-match=set:ipxe.ftp, 175, 22 #= unsigned integer 8; +dhcp-match=set:ipxe.dns, 175, 23 #= unsigned integer 8; +dhcp-match=set:ipxe.bzimage, 175, 24 #= unsigned integer 8; +dhcp-match=set:ipxe.multiboot, 175, 25 #= unsigned integer 8; +dhcp-match=set:ipxe.slam, 175, 26 #= unsigned integer 8; +dhcp-match=set:ipxe.srp, 175, 27 #= unsigned integer 8; +dhcp-match=set:ipxe.nbi, 175, 32 #= unsigned integer 8; +dhcp-match=set:ipxe.pxe, 175, 33 #= unsigned integer 8; +dhcp-match=set:ipxe.elf, 175, 34 #= unsigned integer 8; +dhcp-match=set:ipxe.comboot, 175, 35 #= unsigned integer 8; +dhcp-match=set:ipxe.efi, 175, 36 #= unsigned integer 8; +dhcp-match=set:ipxe.fcoe, 175, 37 #= unsigned integer 8; +dhcp-match=set:ipxe.vlan, 175, 38 #= unsigned integer 8; +dhcp-match=set:ipxe.menu, 175, 39 #= unsigned integer 8; +dhcp-match=set:ipxe.sdi, 175, 40 #= unsigned integer 8; +dhcp-match=set:ipxe.nfs, 175, 41 #= unsigned integer 8; + + +########## +# PXE Linux +dhcp-match=set:x86_UEFI, option:client-arch, 6 +dhcp-match=set:x64_UEFI, option:client-arch, 7 +dhcp-match=set:x64_UEFI, option:client-arch, 9 +tag-if=set:x86_BIOS, tag:ARCH_0, tag:!ARM_RPI + +#pxe-service=tag:x86_BIOS,x86PC, "PXE Boot Menu (BIOS 00:00)", ${DST_PXE_BIOS:?}/lpxelinux +#pxe-service=6, "PXE Boot Menu (UEFI 00:06)", ${DST_PXE_EFI32:?}/bootia32.efi +#pxe-service=tag:x86-64_EFI, "PXE Boot Menu (UEFI 00:07)", ${DST_PXE_EFI64:?}/bootx64.efi +#pxe-service=9, "PXE Boot Menu (UEFI 00:09)", ${DST_PXE_EFI64:?}/bootx64.efi + +tag-if=set:ipxe_feature_rich, tag:iPXE,tag:ipxe.priority,tag:ipxe.bus-id,tag:ipxe.version,tag:ipxe.pxeext,tag:ipxe.iscsi,tag:ipxe.aoe,tag:ipxe.http,tag:ipxe.tftp,tag:ipxe.dns,tag:ipxe.bzimage,tag:ipxe.multiboot,tag:ipxe.pxe,tag:ipxe.elf,tag:ipxe.menu +dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, menu-ipxe/menu.ipxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, menu-ipxe/undionly.kpxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, menu-ipxe/ipxe.efi +dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/menu.ipxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/undionly.kpxe +dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/ipxe.efi + +dhcp-boot=tag:!iPXE,tag:x86_BIOS, ${DST_PXE_BIOS:?}/lpxelinux.0 +dhcp-boot=tag:!iPXE,tag:x86_UEFI, ${DST_PXE_EFI32:?}/bootia32.efi +dhcp-boot=tag:!iPXE,tag:x64_UEFI, ${DST_PXE_EFI64:?}/bootx64.efi +dhcp-option=tag:!iPXE,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_BIOS:?}/lpxelinux.0 +dhcp-option=tag:!iPXE,tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_EFI32:?}/bootia32.efi +dhcp-option=tag:!iPXE,tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_EFI64:?}/bootx64.efi + +EOF + sudo systemctl restart dnsmasq.service; + } +} + + +######################################################################## +handle_hostapd() { + echo -e "\e[32mhandle_hostapd()\e[0m"; + + #################################################################### + grep -q mod_install_server /etc/hostapd/hostapd.conf || { + echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; + do_backup etc/hostapd/hostapd.conf + cat << EOF | sudo tee /etc/hostapd/hostapd.conf &>/dev/null +######################################## +#/etc/hostapd/hostapd.conf +## mod_install_server +interface=${INTERFACE_WLAN0:?} +driver=${DRIVER_WLAN0:?} + + +##### IEEE 802.11 related configuration ####################################### +country_code=${COUNTRY_WLAN0:?} +ieee80211d=1 + +##### 802.11b +#hw_mode=b +#channel=1 +#channel=6 +#channel=11 + +##### 802.11g +hw_mode=g +channel=1 +#channel=5 +#channel=9 +#channel=13 + +#channel=1 +#channel=6 +#channel=11 + +##### 802.11n (hw_mode=g + ieee80211n=1) +#channel=3 +#channel=11 + +##### 802.11a +#hw_mode=a +#channel=36 + +#macaddr_acl=1 +#accept_mac_file=/etc/hostapd.accept + +ignore_broadcast_ssid=0 + +# QoS support (gives different packages different priority) +#wmm_enabled=1 + + +##### IEEE 802.11n related configuration ###################################### +ieee80211n=1 + + +##### WPA/IEEE 802.11i configuration ########################################## +# bit 0 (1) = WPA; bit 1 (2) = WEP; (3) = WPA + WEP +auth_algs=1 +# bit 0 (1) = WPA; bit 1 (2) = WPA2 (IEEE822.11i/RSN); (3) = WPA + WPA2 +wpa=2 +wpa_key_mgmt=WPA-PSK +# WPA2 encryption algorithm +rsn_pairwise=CCMP + +#wpa_passphrase=${PASSWORD_WLAN0:?} +wpa_psk=$(wpa_passphrase ${SSID_WLAN0:?} ${PASSWORD_WLAN0:?} | grep '[[:blank:]]psk' | cut -d = -f2) +ssid=${SSID_WLAN0:?} + + +## optional: create virtual wlan adapter +#auth_algs=1 +#wpa=2 +#wpa_key_mgmt=WPA-PSK +#rsn_pairwise=CCMP +##wpa_passphrase=${PASSWORD_WLAN0X:?} +#wpa_psk=$(wpa_passphrase ${SSID_WLAN0X:?} ${PASSWORD_WLAN0X:?} | grep '[[:blank:]]psk' | cut -d = -f2) +#ssid=${SSID_WLAN0X:?} +#bss=${INTERFACE_WLAN0X:?} +EOF + + ################################################################ + grep -q mod_install_server /etc/default/hostapd || { + echo -e "\e[36m setup hostapd for wlan access point\e[0m"; + do_backup etc/default/hostapd + cat << EOF | sudo tee /etc/default/hostapd &>/dev/null +######################################## +#/etc/default/hostapd +## mod_install_server +DAEMON_CONF="/etc/hostapd/hostapd.conf" +EOF + } + + sudo systemctl stop wpa_supplicant; + sudo systemctl disable wpa_supplicant; + sudo rfkill unblock wlan; + + sudo systemctl unmask hostapd; + sudo systemctl enable hostapd; + sudo systemctl restart hostapd; + } +} + + +######################################################################## +handle_optional() { + echo -e "\e[32mhandle_optional()\e[0m"; + + #################################################################### + ## network nat + grep -q mod_install_server /etc/sysctl.conf 2> /dev/null || { + echo -e "\e[36m setup sysctrl for nat\e[0m"; + do_backup etc/sysctl.conf + cat << EOF | sudo tee -a /etc/sysctl.conf &>/dev/null +######################################## +## mod_install_server +net.ipv4.ip_forward=1 +net.ipv6.conf.all.forwarding=1 +net.ipv6.conf.${INTERFACE_ETH0:?}.accept_ra=2 +net.ipv6.conf.${INTERFACE_ETH1:?}.accept_ra=2 +net.ipv6.conf.${INTERFACE_WLAN0:?}.accept_ra=2 +EOF + sudo sysctl -p &>/dev/null + sudo sysctl --system &>/dev/null + } + + + #################################################################### + ## network nat + sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { + echo -e "\e[36m setup iptables for nat\e[0m"; + sudo iptables -t nat -A POSTROUTING -o "${INTERFACE_ETH0:?}" -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over ${INTERFACE_ETH0:?}" + sudo dpkg-reconfigure --unseen-only iptables-persistent + } + + #################################################################### + ## network nat limit access of eth1 and wlan0 + sudo iptables-save | grep -q LIMIT-ACCESS 2> /dev/null || { + echo -e "\e[36m setup iptables for limiting traffic of ${INTERFACE_ETH1:?}\e[0m"; + sudo iptables -t filter -A INPUT -s "${IP_ETH1_0:?}" ! -d "${IP_ETH1_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" + sudo iptables -t filter -A INPUT -s "${IP_WLAN0_0:?}" ! -d "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" + sudo iptables -t filter -A FORWARD -s "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" + sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" + sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but ${INTERFACE_ETH0:?} to local NTP server" + sudo dpkg-reconfigure --unseen-only iptables-persistent + } +} + + +######################################################################## +handle_samba() { + echo -e "\e[32mhandle_samba()\e[0m"; + + #################################################################### + grep -q mod_install_server /etc/samba/smb.conf 2> /dev/null || ( \ + echo -e "\e[36m setup samba\e[0m"; + do_backup etc/samba/smb.conf + #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; + cat << EOF | sudo tee /etc/samba/smb.conf &>/dev/null +######################################## +## mod_install_server +#======================= Global Settings ======================= +[global] + +## Browsing/Identification ### + workgroup = WORKGROUP +dns proxy = yes +enhanced browsing = no + +#### Networking #### +interfaces = ${IP_ETH0_0:?} ${INTERFACE_ETH0:?} +bind interfaces only = yes + +#### Debugging/Accounting #### + log file = /var/log/samba/log.%m + max log size = 1000 + syslog = 0 + panic action = /usr/share/samba/panic-action %d + +####### Authentication ####### + server role = standalone server + obey pam restrictions = yes + unix password sync = yes + passwd program = /usr/bin/passwd %u + passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . + pam password change = yes + map to guest = bad user + +########## Domains ########### + +############ Misc ############ + usershare allow guests = yes + +#======================= Share Definitions ======================= +[srv] + path = ${DST_ROOT:?} + comment = /srv folder of pxe-server + guest ok = yes + guest only = yes + browseable = no + read only = no + create mask = 0644 + directory mask = 0755 + force create mode = 0644 + force directory mode = 0755 + force user = root + force group = root + hide dot files = no + +[media] + path = /media/ + comment = /media folder of pxe-server + guest ok = yes + guest only = yes + browseable = no + read only = no + create mask = 0644 + directory mask = 0755 + force create mode = 0644 + force directory mode = 0755 + force user = root + force group = root + hide dot files = no +EOF + sudo systemctl restart smbd.service; + ) +} + + +######################################################################## +sudo mkdir -p "${DST_ISO:?}"; +sudo mkdir -p "${DST_IMG:?}"; +sudo mkdir -p "${DST_TFTP_ETH0:?}"; +sudo mkdir -p "${DST_NFS_ETH0:?}"; + + +######################################################################## +if [[ -d "/var/www/html" ]]; then + [[ -d "/var/www/html/srv" ]] || sudo mkdir -p /var/www/html/srv + [[ -h "/var/www/html/srv${ISO:?}" ]] || sudo ln -s "${DST_ISO:?}" "/var/www/html/srv${ISO:?}"; + [[ -h "/var/www/html/srv${IMG:?}" ]] || sudo ln -s "${DST_IMG:?}" "/var/www/html/srv${IMG:?}"; + [[ -h "/var/www/html/srv${NFS_ETH0:?}" ]] || sudo ln -s "${DST_NFS_ETH0:?}" "/var/www/html/srv${NFS_ETH0:?}"; +fi + + +######################################################################## +handle_hostapd; +handle_dhcpcd; +handle_dnsmasq; +handle_samba; +handle_optional; +handle_chrony; + + +######################################################################## +. "${script_dir:?}/p2-update.sh" + + +######################################################################## +#sync +#echo -e "\e[32mDone.\e[0m"; +#echo -e "\e[1;31mPlease reboot\e[0m"; diff --git a/p2-include-handle.sh b/p2-include-handle.sh index 9e786d8..f444d0a 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -1,52 +1,52 @@ #!/bin/bash -########################################################################## +######################################################################## if [[ -z "$script_dir" ]] then echo 'do not run this script directly !' - echo 'this script is part of install-pxe-server-pass2.sh' + echo 'this script is part of p2-update.sh' exit -1 fi -########################################################################## +######################################################################## -########################################################################## -########################################################################## -## -## '+' = add image to PXE service -## download if not there -## update if newer version is available -## -## '-' = remove image from PXE service -## free resources on server -## if backup exist, keep updating backup) -## -## '#' = skip image handling -## keep everything untouched -## does not updating backup -## good, when timestamping option is set -## -## iso = iso image (ISO,UDF, ISO_HYBRID) -## -## img = harddrive image (MPT, GPT) -## -## kernel = kernel -## -## zip_img = zip file containing an harddrive image (zip -> MTP, GPT) -## -## rpi_pxe = only if you want to pxe boot a RPi3. -## (copyes files from boot & root partition to local directors) -## requires an already mounted harddrive image (img or zip_img) -## note: option '-' does nothing for rpi_pxe. -## you have to free resources for rpi_pxe by hand -## -## -## NOTE: -## do not put the $ infornt of the VARIABLE name !!! -## the handle_item functions do need the NAME of the VARIABLE (without _URL) -## -########################################################################## -########################################################################## +######################################################################## +# +# Action: +# '+' = Add image to PXE service +# Download if not there +# Update if new version is available +# +# '-' = Remove image from PXE service +# Free resources on server +# If backup exist, keep updating backup +# +# '#' = Skip image handling +# Keep everything untouched +# Does not updating backup +# Good, when timestamping option is set but want to keep the current version and you don't want to download each daily update +# +# Type: +# iso = Iso image (ISO, UDF, ISO_HYBRID) +# +# img = Hard drive image (MPT, GPT) +# +# kernel = Kernel +# +# zip_img = Zip file containing a hard drive image (zip -> img -> MTP/GPT) +# +# rpi_pxe = Only if you want to pxe boot a RPi3. +# Copies files from its selected image boot & root partition to PXE server directories +# Requires an already mounted hard drive image (img or zip_img) +# Note: Action '-' does nothing for rpi_pxe. It is not implemented. +# You have to free resources for rpi_pxe by hand +# Note: +# Do not put the $ in fornt of the VARIABLE name !!! +# the handle_item functions do need the NAME of the VARIABLE (without _URL) + +######################################################################## +#-----------+----+-----+------------------------+----------------------- +#exec |act.|type |VAR. name of item |optional options handle_item '-' iso BLACKARCH_X64; handle_item '-' iso CLONEZILLA_X64; handle_item '-' iso CLONEZILLA_X86; @@ -100,25 +100,33 @@ handle_item '-' iso TAILS_X64; #discontinued# handle_item '#' iso DEFTZ_X64 ,gid=root,uid=root,norock,mode=292; -########################################################################## -handle_item '-' img UBUNTU_FWTS; +######################################################################## +#-----------+----+-----+------------------------+----------------------- +#exec |act.|type |VAR. name of item |optional options +handle_item '-' img UBUNTU_FWTS; -########################################################################## -handle_item '#' kernel ARCH_NETBOOT_X64 timestamping; +######################################################################## +#-----------+----+--------+--------------------+------------------------ +#exec |act.|type |VAR. name of item |optional options +handle_item '#' kernel ARCH_NETBOOT_X64 timestamping; -########################################################################## -handle_item '-' zip_img PI_CORE; -handle_item '#' zip_img RPD_BASIC timestamping; -handle_item '#' zip_img RPD_FULL timestamping; -handle_item '#' zip_img RPD_LITE timestamping; +######################################################################## +#-----------+----+--------+--------------------+------------------------ +#exec |act.|type |VAR. name of item |optional options +handle_item '-' zip_img PI_CORE; +handle_item '#' zip_img RPD_BASIC timestamping; +handle_item '#' zip_img RPD_FULL timestamping; +handle_item '#' zip_img RPD_LITE timestamping; -########################################################################## +######################################################################## ## must be the last, because it requireas an already mounted image -########################################################################## -handle_item '-' rpi_pxe PI_CORE RPI_SN0 bootcode,config,root; -handle_item '-' rpi_pxe RPD_BASIC RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -handle_item '-' rpi_pxe RPD_FULL RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; -handle_item '-' rpi_pxe RPD_LITE RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +######################################################################## +#-----------+----+--------+----------+---------+------------------------ +#exec |act.|type |VAR. name |VAR. sn |optional options +handle_item '-' rpi_pxe PI_CORE RPI_SN0 bootcode,config,root; +handle_item '-' rpi_pxe RPD_BASIC RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +handle_item '-' rpi_pxe RPD_FULL RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; +handle_item '-' rpi_pxe RPD_LITE RPI_SN0 bootcode,cmdline,config,ssh,root,fstab,wpa,history,apt; diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 3f744fb..23c9680 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -1,17 +1,17 @@ #!/bin/bash -########################################################################## +######################################################################## if [[ -z "$script_dir" ]] then echo "do not run this script directly !" - echo "this script is part of install-pxe-server-pass2.sh" + echo "this script is part of p2-update.sh" exit -1 fi -########################################################################## +######################################################################## if ! [[ "$1" == "ipxe" ]] then -########################################################################## +######################################################################## ## lpxelinux #========== BEGIN ========== @@ -889,7 +889,7 @@ fi -########################################################################## +######################################################################## #custom# #========== BEGIN ========== @@ -1055,7 +1055,7 @@ fi -########################################################################## +######################################################################## #broken# #========== BEGIN ========== @@ -1120,7 +1120,7 @@ fi else -########################################################################## +######################################################################## ## ipxe #========== BEGIN ========== if [[ -f "$FILE_MENU" ]]; then diff --git a/p2-include-url.sh b/p2-include-url.sh index e526a82..6f4a546 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -1,20 +1,20 @@ #!/bin/bash -########################################################################## +######################################################################## if [[ -z "$script_dir" ]] then echo "do not run this script directly !" - echo "this script is part of install-pxe-server-pass2.sh" + echo "this script is part of p2-update.sh" exit -1 fi -########################################################################## +######################################################################## -# v 2021-01-09 +# v 2021-01-31 -# check broken url -# for i in $(grep [A-Z]=http ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*http/http/g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# check for broken url +# for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done -########################################################################## +######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install # https://www.heise.de/ct/artikel/c-t-Notfall-Windows-2020-4514169.html # https://github.com/pebakery/pebakery @@ -31,6 +31,7 @@ fi # debian https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ # https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ # devuan https://files.devuan.org/devuan_beowulf/desktop-live/ +# dragon os https://sourceforge.net/projects/dragonos-focal/files/ # gnuradio https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment # http://eu2-dist.gnuradio.org/ # parrotsec https://cdimage.parrotsec.org/parrot/iso/ @@ -64,21 +65,20 @@ fi # http://tinycorelinux.net/9.x/armv7/releases/RPi/ -########################################################################## -########################################################################## -## url to iso images, with LiveDVD systems -## note: -## update the url, if iso is outdated -########################################################################## -########################################################################## +######################################################################## +# url to iso images, with LiveDVD systems +# note: +# update the url, if iso is outdated +######################################################################## + ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.1-22/clonezilla-live-2.7.1-22-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.0-10/clonezilla-live-2.7.0-10-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.1-22/clonezilla-live-2.7.1-22-i686.iso BLACKARCH_X64=blackarch-x64 @@ -219,8 +219,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.01/systemrescue-7.01-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.14/tails-amd64-4.14.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.14/tails-amd64-4.14.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.15.1/tails-amd64-4.15.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.15.1/tails-amd64-4.15.1.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -301,15 +301,13 @@ CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.tx CENTOS_X64_SUM_TYPE=sha256 -########################################################################## -########################################################################## -## url to zip files, -## that contains disk images -## for raspbarry pi 3 pxe network booting -## note: -## update the url, if disk image is outdated -########################################################################## -########################################################################## +######################################################################## +# url to zip files, +# that contains disk images +# for raspbarry pi 3 pxe network booting +# note: +# update the url, if disk image is outdated +######################################################################## PI_CORE=pi-core PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip @@ -330,4 +328,4 @@ RPD_LITE_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-os/ RPD_LITE_SUM_TYPE=sha256 -########################################################################## +######################################################################## diff --git a/p2-include-var.sh b/p2-include-var.sh index 27187b5..f89b4ff 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -1,24 +1,24 @@ #!/bin/bash -########################################################################## +######################################################################## if [[ -z "$script_dir" ]] then echo "do not run this script directly !" - echo "this script is part of install-pxe-server-pass2.sh" + echo "this script is part of p2-update.sh" exit -1 fi -########################################################################## +######################################################################## -########################################################################## -########################################################################## +######################################################################## +######################################################################## ## variables, you have to customize ## e.g.: ## RPI_SN0 : serial number ## of the raspberry pi 3 for network booting ## and other variables... -########################################################################## -########################################################################## +######################################################################## +######################################################################## CUSTOM_COUNTRY=DE CUSTOM_KEYMAP=de-latin1-nodeadkeys CUSTOM_KMAP=qwertz/de-latin1 @@ -27,16 +27,16 @@ CUSTOM_LAYOUTCODE=de CUSTOM_LOCALE=de_DE.UTF-8 CUSTOM_TIMEZONE=Europe/Berlin CUSTOM_VARIANT=German -########################################################################## +######################################################################## RPI_SN0=-------- RPI_SN1=-------- RPI_SN2=-------- RPI_SN3=-------- -########################################################################## +######################################################################## INTERFACE_ETH0= INTERFACE_ETH1=eth1 INTERFACE_WLAN0=wlan0 -########################################################################## +######################################################################## if [[ -z "$INTERFACE_ETH0" ]] && [[ -d /sys/devices/platform/scb/fd580000.genet/net ]]; then # RPi4B INTERFACE_ETH0=$(ls /sys/devices/platform/scb/fd580000.genet/net) @@ -53,7 +53,7 @@ if [[ -z "$INTERFACE_ETH0" ]]; then # fallback INTERFACE_ETH0=eth0 fi -########################################################################## +######################################################################## IP_ETH0=$(ip -4 address show dev $INTERFACE_ETH0 | grep -o -E '(([0-9]{1,3}[\.]){3}[0-9]{1,3})' | sed '1!d') IP_ETH0_=$(echo $IP_ETH0 | grep -o -E '([0-9]{1,3}[\.]){3}') IP_ETH0_0=$(echo $(echo $IP_ETH0_)0)/24 @@ -62,19 +62,19 @@ IP_ETH0_END=$(echo $(echo $IP_ETH0_)250) IP_ETH0_ROUTER=$(echo $(ip rout show dev $INTERFACE_ETH0 | grep default | cut -d' ' -f3)) IP_ETH0_DNS=$IP_ETH0_ROUTER IP_ETH0_MASK=255.255.255.0 -########################################################################## +######################################################################## IP_ETH1=192.168.250.1 IP_ETH1_0=192.168.250.0/24 IP_ETH1_START=192.168.250.100 IP_ETH1_END=192.168.250.110 IP_ETH1_MASK=255.255.255.0 -########################################################################## +######################################################################## IP_WLAN0=192.168.251.1 IP_WLAN0_0=192.168.251.0/24 IP_WLAN0_START=192.168.251.100 IP_WLAN0_END=192.168.251.110 IP_WLAN0_MASK=255.255.255.0 -########################################################################## +######################################################################## DRIVER_WLAN0=nl80211 COUNTRY_WLAN0=$CUSTOM_COUNTRY PASSWORD_WLAN0=p@ssw0rd @@ -83,7 +83,7 @@ INTERFACE_WLAN0X=wlan0x PASSWORD_WLAN0X=p@ssw0rd SSID_WLAN0X=wlan0x@domain.local -########################################################################## +######################################################################## ISO=/iso IMG=/img TFTP_ETH0=/tftp @@ -99,12 +99,12 @@ DST_ISO=$DST_ROOT$ISO DST_IMG=$DST_ROOT$IMG DST_TFTP_ETH0=$DST_ROOT$TFTP_ETH0 DST_NFS_ETH0=$DST_ROOT$NFS_ETH0 -########################################################################## +######################################################################## DST_PXE_BIOS=menu-bios DST_PXE_EFI32=menu-efi32 DST_PXE_EFI64=menu-efi64 DST_IPXE=menu-ipxe -########################################################################## +######################################################################## KERNEL_MAJOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $1}') KERNEL_MINOR=$(cat /proc/version | awk '{print $3}' | awk -F . '{print $2}') KERNEL_VER=$((KERNEL_MAJOR*100 + KERNEL_MINOR)) diff --git a/install-pxe-server_pass2.sh b/p2-update.sh similarity index 75% rename from install-pxe-server_pass2.sh rename to p2-update.sh index bcc7dc6..34758e8 100644 --- a/install-pxe-server_pass2.sh +++ b/p2-update.sh @@ -1,6 +1,6 @@ #!/bin/bash -########################################################################## +######################################################################## # known issues: # overlayfs can not get exported via nfs # overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy @@ -11,677 +11,401 @@ script_dir=$(dirname "${BASH_SOURCE:?}") -########################################################################## -BACKUP_FILE=backup.tar.xz -BACKUP_TRANSFORM=s/^/$(date +%Y-%m-%dT%H_%M_%S)-pxe-server\\// +######################################################################## +echo -e "\e[36msetup variables\e[0m"; -do_backup() { - tar -ravf "${BACKUP_FILE:?}" --transform="${BACKUP_TRANSFORM:?}" -C / "${1:?}" &>/dev/null -} +######################################################################## +######################################################################## +. "${script_dir:?}/p2-include-var.sh" +. "${script_dir:?}/c2-custom-var.sh" -########################################################################## -echo -e "\e[36msetup variables\e[0m"; +######################################################################## +######################################################################## +. "${script_dir:?}/p2-include-url.sh" +. "${script_dir:?}/c2-custom-url.sh" -########################################################################## -########################################################################## -## variables, you have to customize -## e.g.: -## RPI_SN0 : serial number -## of the raspberry pi 3 for network booting -## and other variables... -########################################################################## -########################################################################## -. "${script_dir:?}/p2-include-var.sh" echo -echo -e "${KERNEL_MAJOR:?}.${KERNEL_MINOR:?} \e[36mis kernel version\e[0m"; -echo -e "${INTERFACE_ETH0:?} \e[36mis used as primary networkadapter for PXE\e[0m"; -echo -e "${IP_ETH0:?} \e[36mis used as primary IP address for PXE\e[0m"; -echo -e "${RPI_SN0:?} \e[36mis used as SN for RPi3 network booting\e[0m"; +echo -e "${KERNEL_MAJOR}.${KERNEL_MINOR} \e[36mis kernel version\e[0m"; +echo -e "${INTERFACE_ETH0} \e[36mis used as primary networkadapter for PXE\e[0m"; +echo -e "${IP_ETH0} \e[36mis used as primary IP address for PXE\e[0m"; +echo -e "${RPI_SN0} \e[36mis used as SN for RPi3 network booting\e[0m"; echo -if [[ -z "${IP_ETH0:?}" ]]; then +if [[ -z "${IP_ETH0}" ]]; then echo -e "\e[1;31mIP address not found. please check your ethernet cable.\e[0m"; exit 1 fi -if [[ -z "${IP_ETH0_ROUTER:?}" ]]; then +if [[ -z "${IP_ETH0_ROUTER}" ]]; then echo -e "\e[1;31mrouter IP address not found. please check your router settings.\e[0m"; exit 1 fi -sudo umount -f "${SRC_MOUNT:?}" &>/dev/null; -sudo mount "${SRC_MOUNT:?}" &>/dev/null; +[[ -z "${SRC_MOUNT}" ]] && sudo umount -f "${SRC_MOUNT}" &>/dev/null; +[[ -z "${SRC_MOUNT}" ]] && sudo mount "${SRC_MOUNT}" &>/dev/null; -########################################################################## -########################################################################## -## url to iso images, with LiveDVD systems -## note: -## update the url, if iso is outdated -########################################################################## -########################################################################## -. "${script_dir:?}/p2-include-url.sh" +######################################################################## +compare_last_modification_time() { + python3 - << EOF "${1:?}" "${2:?}" +import sys +import os +import urllib.request +import time + +try: + arg_file = sys.argv[1] + stat_file = os.stat(arg_file) + time_file = time.gmtime(stat_file.st_mtime) + arg_url = sys.argv[2] + conn_url = urllib.request.urlopen(arg_url) + time_url = time.strptime(conn_url.headers['last-modified'], '%a, %d %b %Y %H:%M:%S %Z') + if time_url <= time_file: + exit_code = 0 + else: + exit_code = 1 -########################################################################## -handle_hostapd() { - echo -e "\e[32mhandle_hostapd()\e[0m"; + print('file:{} <-> url:{}'.format(time.strftime("%Y-%m-%d %H:%M:%S", time_file), time.strftime("%Y-%m-%d %H:%M:%S", time_url))) +except: + exit_code = 1 - ###################################################################### - grep -q mod_install_server /etc/hostapd/hostapd.conf || { - echo -e "\e[36m setup hostapd.conf for wlan access point\e[0m"; - do_backup etc/hostapd/hostapd.conf - cat << EOF | sudo tee /etc/hostapd/hostapd.conf &>/dev/null -######################################## -#/etc/hostapd/hostapd.conf -## mod_install_server -interface=${INTERFACE_WLAN0:?} -driver=${DRIVER_WLAN0:?} +sys.exit(exit_code) +EOF +} -##### IEEE 802.11 related configuration ####################################### -country_code=${COUNTRY_WLAN0:?} -ieee80211d=1 +######################################################################## +_unhandle_img() { + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi -##### 802.11b -#hw_mode=b -#channel=1 -#channel=6 -#channel=11 + #################################################################### + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + local OPT=${2} + #################################################################### + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" + #################################################################### + echo -e "\e[32m_unhandle_img(\e[0m${NAME:?}\e[32m)\e[0m"; -##### 802.11g -hw_mode=g -channel=1 -#channel=5 -#channel=9 -#channel=13 + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; -#channel=1 -#channel=6 -#channel=11 + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; -##### 802.11n (hw_mode=g + ieee80211n=1) -#channel=3 -#channel=11 + sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; -##### 802.11a -#hw_mode=a -#channel=36 + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" -#macaddr_acl=1 -#accept_mac_file=/etc/hostapd.accept + if [[ -d "${SRC_IMG:?}" ]] \ + && ( \ + ! [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${SRC_IMG:?}/${FILE_IMG:?}" "${URL:?}") \ + ); \ + then + echo -e "\e[36m download image to backup location\e[0m"; + sudo rm -f "${SRC_IMG:?}/${FILE_URL:?}"; + sudo rm -f "${SRC_IMG:?}/${FILE_IMG:?}"; + sudo wget -O "${SRC_IMG:?}/${FILE_IMG:?}" "${URL:?}"; + sudo sh -c "echo '${URL}' > ${SRC_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${SRC_IMG:?}/${FILE_IMG:?}" "${SRC_IMG:?}/${FILE_URL:?}"; + fi +} -ignore_broadcast_ssid=0 -# QoS support (gives different packages different priority) -#wmm_enabled=1 +######################################################################## +_unhandle_iso() { + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + #################################################################### + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + # local OPT=${2} + #################################################################### + local FILE_URL="${NAME:?}.url" + local FILE_ISO="${NAME:?}.iso" + #################################################################### + echo -e "\e[32m_unhandle_iso(\e[0m${NAME:?}\e[32m)\e[0m"; -##### IEEE 802.11n related configuration ###################################### -ieee80211n=1 + local timestamping; + local bindfs; + local vblade; + local vblade_shelf; + local vblade_slot; + local fstab_options; + # collect optional options + shift; -##### WPA/IEEE 802.11i configuration ########################################## -# bit 0 (1) = WPA; bit 1 (2) = WEP; (3) = WPA + WEP -auth_algs=1 -# bit 0 (1) = WPA; bit 1 (2) = WPA2 (IEEE822.11i/RSN); (3) = WPA + WPA2 -wpa=2 -wpa_key_mgmt=WPA-PSK -# WPA2 encryption algorithm -rsn_pairwise=CCMP + while [[ $# -gt 0 ]]; do + case "${1}" in + timestamping) + timestamping=yes; + ;; + bindfs) + bindfs=yes; + ;; + vbladed) + vblade=yes; + vblade_shelf="${2}"; + vblade_slot="${3}"; + shift 2; + ;; + *) + fstab_options="${1}" + ;; + esac + shift; + done + #################################################################### -#wpa_passphrase=${PASSWORD_WLAN0:?} -wpa_psk=$(wpa_passphrase ${SSID_WLAN0:?} ${PASSWORD_WLAN0:?} | grep '[[:blank:]]psk' | cut -d = -f2) -ssid=${SSID_WLAN0:?} + if [[ "${vblade}" == "yes" ]]; then + sudo systemctl stop vblade@$(systemd-escape "${NAME:?}").service &>/dev/null; + sudo rm -f "/etc/vblade.conf.d/${NAME:?}.conf" &>/dev/null; + sudo systemctl daemon-reload &>/dev/null; + sudo systemctl restart vblade.service &>/dev/null; + fi + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; -## optional: create virtual wlan adapter -#auth_algs=1 -#wpa=2 -#wpa_key_mgmt=WPA-PSK -#rsn_pairwise=CCMP -##wpa_passphrase=${PASSWORD_WLAN0X:?} -#wpa_psk=$(wpa_passphrase ${SSID_WLAN0X:?} ${PASSWORD_WLAN0X:?} | grep '[[:blank:]]psk' | cut -d = -f2) -#ssid=${SSID_WLAN0X:?} -#bss=${INTERFACE_WLAN0X:?} -EOF + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; - ###################################################################### - grep -q mod_install_server /etc/default/hostapd || { - echo -e "\e[36m setup hostapd for wlan access point\e[0m"; - do_backup etc/default/hostapd - cat << EOF | sudo tee /etc/default/hostapd &>/dev/null -######################################## -#/etc/default/hostapd -## mod_install_server -DAEMON_CONF="/etc/hostapd/hostapd.conf" -EOF - } + sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; - sudo systemctl stop wpa_supplicant; - sudo systemctl disable wpa_supplicant; - sudo rfkill unblock wlan; + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" - sudo systemctl unmask hostapd; - sudo systemctl enable hostapd; - sudo systemctl restart hostapd; - } + if [[ -d "${SRC_ISO:?}" ]] \ + && ( \ + ! [[ -s "${SRC_ISO:?}/${FILE_ISO:?}" ]] \ + || ! grep -q "${URL}" "${SRC_ISO:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${timestamping}" == "yes" ]] && ! compare_last_modification_time "${SRC_ISO:?}/${FILE_ISO:?}" "${URL:?}") \ + ); \ + then + echo -e "\e[36m download iso image to backup location\e[0m"; + sudo rm -f "${SRC_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${SRC_ISO:?}/${FILE_ISO:?}"; + sudo wget -O "${SRC_ISO:?}/${FILE_ISO:?}" "${URL:?}"; + sudo sh -c "echo '${URL}' > ${SRC_ISO:?}/${FILE_URL:?}"; + sudo touch -r "${SRC_ISO:?}/${FILE_ISO:?}" "${SRC_ISO:?}/${FILE_URL:?}"; + fi } -########################################################################## -handle_dhcpcd() { - echo -e "\e[32mhandle_dhcpcd()\e[0m"; +######################################################################## +_unhandle_kernel() { + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + + #################################################################### + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + #################################################################### + local FILE_URL="${NAME:?}.url" + local FILE_KERNEL="${NAME:?}.kernel" + #################################################################### + echo -e "\e[32m_unhandle_kernel(\e[0m${NAME:?}\e[32m)\e[0m"; - ################################################################## - grep -q mod_install_server /etc/dhcpcd.conf || { - echo -e "\e[36m setup dhcpcd.conf\e[0m"; - do_backup etc/dhcpcd.conf - cat << EOF | sudo tee -a /etc/dhcpcd.conf &>/dev/null + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; -######################################## -## mod_install_server -interface ${INTERFACE_ETH0:?} - slaac private - static ip_address=${IP_ETH0:?}/24 - static ip6_address=fd80::${IP_ETH0:?}/120 - static routers=${IP_ETH0_ROUTER:?} - static domain_name_servers=${IP_ETH0_ROUTER:?} 1.1.1.1 2606:4700:4700::1111 + sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; + sudo rm -f "${DST_ISO:?}/${FILE_KERNEL:?}"; -######################################## -interface ${INTERFACE_ETH1:?} - slaac private - static ip_address=${IP_ETH1:?}/24 - static ip6_address=fd80::${IP_ETH1:?}/120 - static routers=${IP_ETH1_ROUTER:?} - static domain_name_servers=${IP_ETH1_ROUTER:?} + sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; -######################################## -interface ${INTERFACE_WLAN0:?} - slaac private - static ip_address=${IP_WLAN0:?}/24 - static ip6_address=fd80::${IP_WLAN0:?}/120 - static routers=${IP_WLAN0_ROUTER:?} - static domain_name_servers=${IP_WLAN0_ROUTER:?} -EOF - sudo systemctl daemon-reload; - sudo systemctl restart dhcpcd.service; - } + sudo sed /etc/exports -i -e "/${NAME:?}/d" } -########################################################################## -handle_dnsmasq() { - echo -e "\e[32mhandle_dnsmasq()\e[0m"; +######################################################################## +_unhandle_zip_img() { + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - ###################################################################### - [[ -f /etc/dnsmasq.d/10-pxe-server ]] || { - echo -e "\e[36m setup dnsmasq for pxe\e[0m"; - do_backup etc/dnsmasq.d/10-pxe-server - cat << EOF | sudo tee /etc/dnsmasq.d/10-pxe-server &>/dev/null -######################################## -#/etc/dnsmasq.d/pxeboot -## mod_install_server - -log-dhcp -#log-queries - -# for local resolve -interface=lo - -# interface selection -interface=${INTERFACE_ETH0:?} -interface=${INTERFACE_ETH1:?} -interface=${INTERFACE_WLAN0:?} -except-interface=wlan1mon -except-interface=wlan2mon - -# -bind-dynamic - -########## -# TFTP_ETH0 (enabled) -enable-tftp=${INTERFACE_ETH0:?} -#tftp-lowercase -tftp-root=${DST_TFTP_ETH0:?}/, ${INTERFACE_ETH0:?} -dhcp-option=tag:${INTERFACE_ETH0:?}, option:tftp-server, 0.0.0.0 - -# -dhcp-option=tag:${INTERFACE_ETH1:?}, option:nis-domain, eth-nis -dhcp-option=tag:${INTERFACE_ETH1:?}, option:domain-name, eth-domain.local -dhcp-option=tag:${INTERFACE_WLAN0:?}, option:nis-domain, wlan-nis -dhcp-option=tag:${INTERFACE_WLAN0:?}, option:domain-name, wlan-domain.local - -########## -# Time Server -dhcp-option=tag:${INTERFACE_ETH0:?}, option:ntp-server, 0.0.0.0 -dhcp-option=tag:${INTERFACE_ETH1:?}, option:ntp-server, 0.0.0.0 -dhcp-option=tag:${INTERFACE_WLAN0:?}, option:ntp-server, 0.0.0.0 -dhcp-option=tag:${INTERFACE_ETH0:?}, option6:ntp-server, [::] -dhcp-option=tag:${INTERFACE_ETH1:?}, option6:ntp-server, [::] -dhcp-option=tag:${INTERFACE_WLAN0:?}, option6:ntp-server, [::] - -########## -# DHCP -log-dhcp -#enable-ra - -# block NETGEAR managed switch -dhcp-mac=set:block, 28:c6:8e:*:*:* - -# static IP -#dhcp-host=set:known_128, 08:08:08:08:08:08, 192.168.1.128, [fd80::192.168.1.128], infinite -#dhcp-host=set:known_129, client_acb, 192.168.1.129, [fd80::192.168.1.129], infinite - -# dynamic IP -dhcp-range=tag:${INTERFACE_ETH0:?}, tag:!block, fd80::${IP_ETH0_START:?}, fd80::${IP_ETH0_END:?}, 120, 1h -dhcp-range=tag:${INTERFACE_ETH1:?}, fd80::${IP_ETH1_START:?}, fd80::${IP_ETH1_END:?}, 120, 1h -dhcp-range=tag:${INTERFACE_WLAN0:?}, fd80::${IP_WLAN0_START:?}, fd80::${IP_WLAN0_END:?}, 120, 1h -dhcp-range=tag:${INTERFACE_ETH0:?}, tag:!block, ${IP_ETH0_START:?}, ${IP_ETH0_END:?}, 255.255.255.0, 1h -dhcp-range=tag:${INTERFACE_ETH1:?}, ${IP_ETH1_START:?}, ${IP_ETH1_END:?}, 255.255.255.0, 1h -dhcp-range=tag:${INTERFACE_WLAN0:?}, ${IP_WLAN0_START:?}, ${IP_WLAN0_END:?}, 255.255.255.0, 1h - -########## -# DNS (enabled) -port=53 -#log-queries -dns-loop-detect -stop-dns-rebind -bogus-priv -domain-needed -dhcp-option=tag:${INTERFACE_ETH0:?}, option:netbios-ns, 0.0.0.0 -dhcp-option=tag:${INTERFACE_ETH1:?}, option:netbios-ns, 0.0.0.0 -dhcp-option=tag:${INTERFACE_WLAN0:?}, option:netbios-ns, 0.0.0.0 -dhcp-option=tag:${INTERFACE_ETH0:?}, option:netbios-dd, 0.0.0.0 -dhcp-option=tag:${INTERFACE_ETH1:?}, option:netbios-dd, 0.0.0.0 -dhcp-option=tag:${INTERFACE_WLAN0:?}, option:netbios-dd, 0.0.0.0 - -# PXE (enabled) -# warning: unfortunately, a RPi3 identifies itself as of architecture x86PC (x86PC=0) -dhcp-mac=set:IS_RPI3,B8:27:EB:*:*:* -dhcp-mac=set:IS_RPI4,DC:A6:32:*:*:* -dhcp-match=set:ARCH_0, option:client-arch, 0 - -# test if it is a RPi or a regular x86PC -tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI3 -tag-if=set:ARM_RPI, tag:ARCH_0, tag:IS_RPI4 - -########## -# RPi 3 -pxe-service=tag:IS_RPI3,0, "Raspberry Pi Boot ", bootcode.bin -dhcp-boot=tag:IS_RPI3, bootcode.bin - - -########## -# iPXE -dhcp-match=set:iPXE, option:user-class, iPXE -dhcp-match=set:ipxe.priority, 175, 1 #= signed integer 8; -dhcp-match=set:ipxe.keep-san, 175, 8 #= unsigned integer 8; -dhcp-match=set:ipxe.skip-san-boot, 175, 9 #= unsigned integer 8; -dhcp-match=set:ipxe.syslogs, 175, 85 #= string; -dhcp-match=set:ipxe.cert, 175, 91 #= string; -dhcp-match=set:ipxe.privkey, 175, 92 #= string; -dhcp-match=set:ipxe.crosscert, 175, 93 #= string; -dhcp-match=set:ipxe.no-pxedhcp, 175, 176 #= unsigned integer 8; -dhcp-match=set:ipxe.bus-id, 175, 177 #= string; -dhcp-match=set:ipxe.san-filename, 175, 188 #= string; -dhcp-match=set:ipxe.bios-drive, 175, 189 #= unsigned integer 8; -dhcp-match=set:ipxe.username, 175, 190 #= string; -dhcp-match=set:ipxe.password, 175, 191 #= string; -dhcp-match=set:ipxe.reverse-username, 175, 192 #= string; -dhcp-match=set:ipxe.reverse-password, 175, 193 #= string; -dhcp-match=set:ipxe.version, 175, 235 #= string; -dhcp-match=set:iscsi-initiator-iqn, 175, 203 #= string; -# Feature indicators -dhcp-match=set:ipxe.pxeext, 175, 16 #= unsigned integer 8; -dhcp-match=set:ipxe.iscsi, 175, 17 #= unsigned integer 8; -dhcp-match=set:ipxe.aoe, 175, 18 #= unsigned integer 8; -dhcp-match=set:ipxe.http, 175, 19 #= unsigned integer 8; -dhcp-match=set:ipxe.https, 175, 20 #= unsigned integer 8; -dhcp-match=set:ipxe.tftp, 175, 21 #= unsigned integer 8; -dhcp-match=set:ipxe.ftp, 175, 22 #= unsigned integer 8; -dhcp-match=set:ipxe.dns, 175, 23 #= unsigned integer 8; -dhcp-match=set:ipxe.bzimage, 175, 24 #= unsigned integer 8; -dhcp-match=set:ipxe.multiboot, 175, 25 #= unsigned integer 8; -dhcp-match=set:ipxe.slam, 175, 26 #= unsigned integer 8; -dhcp-match=set:ipxe.srp, 175, 27 #= unsigned integer 8; -dhcp-match=set:ipxe.nbi, 175, 32 #= unsigned integer 8; -dhcp-match=set:ipxe.pxe, 175, 33 #= unsigned integer 8; -dhcp-match=set:ipxe.elf, 175, 34 #= unsigned integer 8; -dhcp-match=set:ipxe.comboot, 175, 35 #= unsigned integer 8; -dhcp-match=set:ipxe.efi, 175, 36 #= unsigned integer 8; -dhcp-match=set:ipxe.fcoe, 175, 37 #= unsigned integer 8; -dhcp-match=set:ipxe.vlan, 175, 38 #= unsigned integer 8; -dhcp-match=set:ipxe.menu, 175, 39 #= unsigned integer 8; -dhcp-match=set:ipxe.sdi, 175, 40 #= unsigned integer 8; -dhcp-match=set:ipxe.nfs, 175, 41 #= unsigned integer 8; - - -########## -# PXE Linux -dhcp-match=set:x86_UEFI, option:client-arch, 6 -dhcp-match=set:x64_UEFI, option:client-arch, 7 -dhcp-match=set:x64_UEFI, option:client-arch, 9 -tag-if=set:x86_BIOS, tag:ARCH_0, tag:!ARM_RPI - -#pxe-service=tag:x86_BIOS,x86PC, "PXE Boot Menu (BIOS 00:00)", ${DST_PXE_BIOS:?}/lpxelinux -#pxe-service=6, "PXE Boot Menu (UEFI 00:06)", ${DST_PXE_EFI32:?}/bootia32.efi -#pxe-service=tag:x86-64_EFI, "PXE Boot Menu (UEFI 00:07)", ${DST_PXE_EFI64:?}/bootx64.efi -#pxe-service=9, "PXE Boot Menu (UEFI 00:09)", ${DST_PXE_EFI64:?}/bootx64.efi - -tag-if=set:ipxe_feature_rich, tag:iPXE,tag:ipxe.priority,tag:ipxe.bus-id,tag:ipxe.version,tag:ipxe.pxeext,tag:ipxe.iscsi,tag:ipxe.aoe,tag:ipxe.http,tag:ipxe.tftp,tag:ipxe.dns,tag:ipxe.bzimage,tag:ipxe.multiboot,tag:ipxe.pxe,tag:ipxe.elf,tag:ipxe.menu -dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, menu-ipxe/menu.ipxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, menu-ipxe/undionly.kpxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, menu-ipxe/ipxe.efi -dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/menu.ipxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/undionly.kpxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/ipxe.efi - -dhcp-boot=tag:!iPXE,tag:x86_BIOS, ${DST_PXE_BIOS:?}/lpxelinux.0 -dhcp-boot=tag:!iPXE,tag:x86_UEFI, ${DST_PXE_EFI32:?}/bootia32.efi -dhcp-boot=tag:!iPXE,tag:x64_UEFI, ${DST_PXE_EFI64:?}/bootx64.efi -dhcp-option=tag:!iPXE,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_BIOS:?}/lpxelinux.0 -dhcp-option=tag:!iPXE,tag:x86_UEFI, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_EFI32:?}/bootia32.efi -dhcp-option=tag:!iPXE,tag:x64_UEFI, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/${DST_PXE_EFI64:?}/bootx64.efi + #################################################################### + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2} : optional options + local OPT=${2} + #################################################################### + local RAW_FILENAME=$(basename "${URL:?}" .zip) + local RAW_FILENAME_ZIP="${RAW_FILENAME:?}.zip" + local NAME_BOOT="${NAME:?}-boot" + local NAME_ROOT="${NAME:?}-root" + local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" + local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" + #################################################################### + echo -e "\e[32m_unhandle_zip_img(\e[0m${NAME:?}\e[32m)\e[0m"; -EOF - sudo systemctl restart dnsmasq.service; - } -} + ## boot + sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; + sudo rm -rf "${DST_NFS_BOOT:?}"; + sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_BOOT:?}/d" + ## root + sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; + sudo rm -rf "${DST_NFS_ROOT:?}"; + sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" -########################################################################## -handle_samba() { - echo -e "\e[32mhandle_samba()\e[0m"; + ## img + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - ###################################################################### - grep -q mod_install_server /etc/samba/smb.conf 2> /dev/null || ( \ - echo -e "\e[36m setup samba\e[0m"; - do_backup etc/samba/smb.conf - #sudo sed -i /etc/samba/smb.conf -n -e "1,/#======================= Share Definitions =======================/p"; - cat << EOF | sudo tee /etc/samba/smb.conf &>/dev/null -######################################## -## mod_install_server -#======================= Global Settings ======================= -[global] - -## Browsing/Identification ### - workgroup = WORKGROUP -dns proxy = yes -enhanced browsing = no - -#### Networking #### -interfaces = ${IP_ETH0_0:?} ${INTERFACE_ETH0:?} -bind interfaces only = yes - -#### Debugging/Accounting #### - log file = /var/log/samba/log.%m - max log size = 1000 - syslog = 0 - panic action = /usr/share/samba/panic-action %d - -####### Authentication ####### - server role = standalone server - obey pam restrictions = yes - unix password sync = yes - passwd program = /usr/bin/passwd %u - passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . - pam password change = yes - map to guest = bad user - -########## Domains ########### - -############ Misc ############ - usershare allow guests = yes - -#======================= Share Definitions ======================= -[srv] - path = ${DST_ROOT:?} - comment = /srv folder of pxe-server - guest ok = yes - guest only = yes - browseable = no - read only = no - create mask = 0644 - directory mask = 0755 - force create mode = 0644 - force directory mode = 0755 - force user = root - force group = root - hide dot files = no - -[media] - path = /media/ - comment = /media folder of pxe-server - guest ok = yes - guest only = yes - browseable = no - read only = no - create mask = 0644 - directory mask = 0755 - force create mode = 0644 - force directory mode = 0755 - force user = root - force group = root - hide dot files = no -EOF - sudo systemctl restart smbd.service; - ) -} + if [[ -d "${SRC_IMG:?}" ]] \ + && ( \ + ! [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${SRC_IMG:?}/${FILE_URL:?}" "${URL:?}") \ + ); \ + then + echo -e "\e[36m download image to backup location\e[0m"; + sudo rm -f "${SRC_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${SRC_IMG:?}/${FILE_URL:?}"; + sudo wget -O "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" "${URL:?}"; + sudo sh -c "echo '${URL}' > ${SRC_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" "${SRC_IMG:?}/${FILE_URL:?}"; -########################################################################## -handle_pxe_menu() { - # $1 : menu short name - # $2 : menu file name - ###################################################################### - local FILE_MENU="${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg/${2:?}" - local FILE_BASE="http://${IP_ETH0:?}/srv" - ###################################################################### - ## INFO: - ## The entry before -- means that it will be used by the live system / the installer - ## The entry after -- means that it will be carried to and used by the installed system - ## https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kernel-parameters.txt - ## - ## some debian/ubuntu parameter - ## https://www.debian.org/releases/stretch/example-preseed.txt - ## https://www.debian.org/releases/stretch/amd64/apb.html.en - ## https://www.debian.org/releases/stretch/amd64/ch05s03.html.en - ## https://manpages.debian.org/stretch/live-config-doc/live-config.7.en.html - ## http://manpages.ubuntu.com/manpages/precise/man7/live-config.7.html - ###################################################################### - echo -e "\e[32mhandle_pxe_menu(\e[0m${1:?}\e[32m)\e[0m"; - echo -e "\e[36m setup sys menu for pxe\e[0m"; - if ! [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg"; fi - if [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then - cat << EOF | sudo tee "${FILE_MENU:?}" &>/dev/null -######################################## -# ${FILE_MENU:?} + echo -e "\e[36m extract image to backup location\e[0m"; + sudo unzip "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" -d "${SRC_IMG:?}" > /tmp/output.tmp; + sudo rm -f "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}"; + local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) + sudo mv "${SRC_IMG:?}/${RAW_FILENAME_IMG:?}" "${SRC_IMG:?}/${FILE_IMG:?}"; + rm /tmp/output.tmp + fi +} -# http://www.syslinux.org/wiki/index.php?title=Menu -DEFAULT vesamenu.c32 -#TIMEOUT 600 -#ONTIMEOUT localboot -PROMPT 0 -NOESCAPE 1 -ALLOWOPTIONS 1 - -menu color title * #FFFFFFFF * -menu title PXE Boot Menu (${1:?}) -menu rows 20 -menu tabmsgrow 24 -menu tabmsg [Enter]=boot, [Tab]=edit, [Esc]=return -menu cmdlinerow 24 -menu timeoutrow 25 -menu color help 1;37;40 #FFFFFFFF * -menu helpmsgrow 26 - -######################################## -LABEL reboot - MENU LABEL Reboot - COM32 reboot.c32 -######################################## -LABEL poweroff - MENU LABEL Power Off - COM32 poweroff.c32 +######################################################################## +handle_img() { + if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + #################################################################### + # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE + local NAME="${!1}" + local URL="${1}_URL"; URL="${!URL}" + local SUM="${1}_SUM"; SUM="${!SUM}" + local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" + # ${2..} : optional options + local OPT=${2} + #################################################################### + local FILE_URL="${NAME:?}.url" + local FILE_IMG="${NAME:?}.img" + #################################################################### + echo -e "\e[32mhandle_img(\e[0m${NAME:?}\e[32m)\e[0m"; -EOF - fi + if ! [[ -d "${DST_IMG:?}/" ]]; then sudo mkdir -p "${DST_IMG:?}/"; fi + if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - . "${script_dir:?}/p2-include-menu.sh" -} + sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; +# sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}"; + if [[ -z "${URL}" ]]; then + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]]; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; + fi + else + if [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]] \ + && grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + && ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; + fi -########################################################################## -handle_pxe() { - echo -e "\e[32mhandle_pxe()\e[0m"; + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_IMG:?}/${FILE_URL:?}" "${URL:?}"); \ + then + echo -e "\e[36m download image\e[0m"; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + sudo wget -O "${DST_IMG:?}/${FILE_IMG:?}" "${URL:?}"; - ###################################################################### - [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; - if [[ -d "${SRC_TFTP_ETH0:?}" ]]; then - echo -e "\e[36m copy win-pe stuff\e[0m"; - if ! [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/pxeboot.n12" ]] && [[ -f "${SRC_TFTP_ETH0:?}/pxeboot.n12" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/pxeboot.n12" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; fi - if ! [[ -f "${DST_TFTP_ETH0:?}/bootmgr.exe" ]] && [[ -f "${SRC_TFTP_ETH0:?}/bootmgr.exe" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/bootmgr.exe" "${DST_TFTP_ETH0:?}/"; fi - if ! [[ -d "${DST_TFTP_ETH0:?}/Boot" ]] && [[ -d "${SRC_TFTP_ETH0:?}/Boot" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/Boot" "${DST_TFTP_ETH0:?}/"; fi + sudo sh -c "echo '${URL}' > ${DST_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${DST_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}/${FILE_URL:?}"; + fi fi - [[ -h "${DST_TFTP_ETH0:?}/sources" ]] || sudo ln -s "${DST_NFS_ETH0:?}/${WIN_PE_X86:?}/sources/" "${DST_TFTP_ETH0:?}/sources"; - - ###################################################################### - echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; - [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/lpxelinux.0" ]] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/ldlinux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/memdisk" ]] || sudo ln -s /usr/lib/syslinux/memdisk "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso"; - - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" ]] || ( \ - wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" > /dev/null); - - handle_pxe_menu "${DST_PXE_BIOS:?}" default; - - ###################################################################### - echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; - [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/ldlinux.e32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso"; - - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" ]] || ( \ - wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" &>/dev/null); - - handle_pxe_menu "${DST_PXE_EFI32:?}" default; - - ###################################################################### - echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; - [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/ldlinux.e64" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso"; - - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" ]] || (\ - wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" &>/dev/null); - - handle_pxe_menu "${DST_PXE_EFI64:?}" default; -} - - -########################################################################## -handle_ipxe() { - echo -e "\e[32mhandle_ipxe()\e[0m"; - - local FILE_MENU="${DST_TFTP_ETH0:?}/${DST_IPXE:?}/menu.ipxe" - local FILE_BASE="http://${IP_ETH0:?}/srv" - - if ! [[ -d "${DST_TFTP_ETH0:?}/${DST_IPXE:?}" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_IPXE:?}"; fi - - ###################################################################### - # http://ipxe.org/docs - # http://ipxe.org/howto/chainloading - ###################################################################### - if (! compare_last_modification_time "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi); then - echo -e "\e[36m download iPXE stuff\e[0m"; - sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi; - sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/undionly.kpxe" https://boot.ipxe.org/undionly.kpxe; - - [[ -f "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" ]] || (\ - wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" &>/dev/null); - sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.pxe" https://boot.ipxe.org/ipxe.pxe; - sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.iso" https://boot.ipxe.org/ipxe.iso; + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; fi - sudo touch "${FILE_MENU:?}" - . "${script_dir:?}/p2-include-menu.sh" ipxe -} - - -########################################################################## -compare_last_modification_time() { - python3 - << EOF "${1:?}" "${2:?}" -import sys -import os -import urllib.request -import time - -try: - arg_file = sys.argv[1] - stat_file = os.stat(arg_file) - time_file = time.gmtime(stat_file.st_mtime) + if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + local OFFSET_PART1=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) + local SIZE_PART1=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) + #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" - arg_url = sys.argv[2] - conn_url = urllib.request.urlopen(arg_url) - time_url = time.strptime(conn_url.headers['last-modified'], '%a, %d %b %Y %H:%M:%S %Z') + ## partition1 + if ! [[ -d "${DST_NFS_ETH0:?}/${NAME:?}" ]]; then + echo -e "\e[36m create image folder\e[0m"; + sudo mkdir -p "${DST_NFS_ETH0:?}/${NAME:?}"; + fi - if time_url <= time_file: - exit_code = 0 - else: - exit_code = 1 + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/fstab; then + echo -e "\e[36m add image to fstab\e[0m"; + sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_ETH0:?}/${NAME:?} auto ro,nofail,auto,loop,offset=${OFFSET_PART1:?},sizelimit=${SIZE_PART1:?} 0 11' >> /etc/fstab"; + fi - print('file:{} <-> url:{}'.format(time.strftime("%Y-%m-%d %H:%M:%S", time_file), time.strftime("%Y-%m-%d %H:%M:%S", time_url))) -except: - exit_code = 1 + if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/exports; then + echo -e "\e[36m add image folder to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_ETH0:?}/${NAME:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + fi -sys.exit(exit_code) -EOF + sudo mount "${DST_NFS_ETH0:?}/${NAME:?}"; + sudo exportfs "*:${DST_NFS_ETH0:?}/${NAME:?}"; + else + ## partition1 + sudo sed /etc/fstab -i -e "/${NAME:?}/d" + sudo sed /etc/exports -i -e "/${NAME:?}/d" + fi } -########################################################################## +######################################################################## handle_iso() { if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - ###################################################################### + #################################################################### # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE local NAME="${!1}" local URL="${1}_URL"; URL="${!URL}" @@ -689,11 +413,11 @@ handle_iso() { local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" # ${2..} : optional options # local OPT=${2} - ###################################################################### + #################################################################### local FILE_URL="${NAME:?}.url" local FILE_ISO="${NAME:?}.iso" local DST_ORIGINAL="/srv/tmp/original/${NAME:?}" - ###################################################################### + #################################################################### echo -e "\e[32mhandle_iso(\e[0m${NAME:?}\e[32m)\e[0m"; local timestamping; @@ -730,7 +454,7 @@ handle_iso() { esac shift; done - ###################################################################### + #################################################################### if ! [[ -d "${DST_ISO:?}/" ]]; then sudo mkdir -p "${DST_ISO:?}/"; fi if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi @@ -843,96 +567,149 @@ EOF } -########################################################################## -_unhandle_iso() { +######################################################################## +handle_zip_img() { if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - ###################################################################### + #################################################################### # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE local NAME="${!1}" local URL="${1}_URL"; URL="${!URL}" local SUM="${1}_SUM"; SUM="${!SUM}" local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" - # ${2..} : optional options - # local OPT=${2} - ###################################################################### + # ${2} : optional options + local OPT=${2} + #################################################################### + local RAW_FILENAME=$(basename "${URL:?}" .zip) + local RAW_FILENAME_ZIP="${RAW_FILENAME:?}.zip" + local NAME_BOOT="${NAME:?}-boot" + local NAME_ROOT="${NAME:?}-root" + local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" + local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" local FILE_URL="${NAME:?}.url" - local FILE_ISO="${NAME:?}.iso" - ###################################################################### - echo -e "\e[32m_unhandle_iso(\e[0m${NAME:?}\e[32m)\e[0m"; - - local timestamping; - local bindfs; - local vblade; - local vblade_shelf; - local vblade_slot; - local fstab_options; + local FILE_IMG="${NAME:?}.img" + #################################################################### + echo -e "\e[32mhandle_zip_img(\e[0m${NAME:?}\e[32m)\e[0m"; - # collect optional options - shift; + if ! [[ -d "${DST_IMG:?}/" ]]; then sudo mkdir -p "${DST_IMG:?}/"; fi + if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - while [[ $# -gt 0 ]]; do - case "${1}" in - timestamping) - timestamping=yes; - ;; - bindfs) - bindfs=yes; - ;; - vbladed) - vblade=yes; - vblade_shelf="${2}"; - vblade_slot="${3}"; - shift 2; - ;; - *) - fstab_options="${1}" - ;; - esac - shift; - done - ###################################################################### + sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; - if [[ "${vblade}" == "yes" ]]; then - sudo systemctl stop vblade@$(systemd-escape "${NAME:?}").service &>/dev/null; - sudo rm -f "/etc/vblade.conf.d/${NAME:?}.conf" &>/dev/null; - sudo systemctl daemon-reload &>/dev/null; - sudo systemctl restart vblade.service &>/dev/null; + sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; + sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; + + if [[ -z "${URL}" ]]; then + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]]; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; + fi + else + if [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ + && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]] \ + && grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + && ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null; \ + then + echo -e "\e[36m copy img from usb-stick\e[0m"; + sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; + sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; + fi + + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ + || ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null \ + || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_IMG:?}/${FILE_URL:?}" "${URL:?}"); \ + then + echo -e "\e[36m download image\e[0m"; + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + sudo wget -O "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" "${URL:?}"; + + sudo sh -c "echo '${URL}' > ${DST_IMG:?}/${FILE_URL:?}"; + sudo touch -r "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" "${DST_IMG:?}/${FILE_URL:?}"; + + echo -e "\e[36m extract image\e[0m"; + sudo unzip "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" -d "${DST_IMG:?}" > /tmp/output.tmp; + sudo rm -f "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}"; + local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) + sudo mv "${DST_IMG:?}/${RAW_FILENAME_IMG:?}" "${DST_IMG:?}/${FILE_IMG:?}"; + rm /tmp/output.tmp + fi fi - sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; - sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" &>/dev/null; + if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; + sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; + fi - sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; - sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; + if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then + local OFFSET_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) + local SIZE_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) + local OFFSET_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $4}' | sed 's/,//'))) + local SIZE_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $6}' | sed 's/,//'))) + #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" - sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; + sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" + sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" - sudo sed /etc/fstab -i -e "/${NAME:?}/d" - sudo sed /etc/exports -i -e "/${NAME:?}/d" + ## boot + if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then + echo -e "\e[36m create image-boot folder\e[0m"; + sudo mkdir -p "${DST_NFS_BOOT:?}"; + fi - if [[ -d "${SRC_ISO:?}" ]] \ - && ( \ - ! [[ -s "${SRC_ISO:?}/${FILE_ISO:?}" ]] \ - || ! grep -q "${URL}" "${SRC_ISO:?}/${FILE_URL:?}" 2> /dev/null \ - || ([[ "${timestamping}" == "yes" ]] && ! compare_last_modification_time "${SRC_ISO:?}/${FILE_ISO:?}" "${URL:?}") \ - ); \ - then - echo -e "\e[36m download iso image to backup location\e[0m"; - sudo rm -f "${SRC_ISO:?}/${FILE_URL:?}"; - sudo rm -f "${SRC_ISO:?}/${FILE_ISO:?}"; - sudo wget -O "${SRC_ISO:?}/${FILE_ISO:?}" "${URL:?}"; - sudo sh -c "echo '${URL}' > ${SRC_ISO:?}/${FILE_URL:?}"; - sudo touch -r "${SRC_ISO:?}/${FILE_ISO:?}" "${SRC_ISO:?}/${FILE_URL:?}"; + if ! grep -q "${DST_NFS_BOOT:?}" /etc/fstab; then + echo -e "\e[36m add image-boot to fstab\e[0m"; + sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_BOOT:?} auto ro,nofail,auto,loop,offset=${OFFSET_BOOT:?},sizelimit=${SIZE_BOOT:?} 0 11' >> /etc/fstab"; + fi + + if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then + echo -e "\e[36m add image-boot folder to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_BOOT:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + fi + + ## root + if ! [[ -d "${DST_NFS_ROOT:?}" ]]; then + echo -e "\e[36m create image-root folder\e[0m"; + sudo mkdir -p "${DST_NFS_ROOT:?}"; + fi + + if ! grep -q "${DST_NFS_ROOT:?}" /etc/fstab; then + echo -e "\e[36m add image-root to fstab\e[0m"; + sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_ROOT:?} auto ro,nofail,auto,loop,offset=${OFFSET_ROOT:?},sizelimit=${SIZE_ROOT:?} 0 11' >> /etc/fstab"; + fi + + if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then + echo -e "\e[36m add image-root folder to exports\e[0m"; + sudo sh -c "echo '${DST_NFS_ROOT:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; + fi + + sudo mount "${DST_NFS_BOOT:?}"; + sudo exportfs "*:${DST_NFS_BOOT:?}"; + + sudo mount "${DST_NFS_ROOT:?}"; + sudo exportfs "*:${DST_NFS_ROOT:?}"; + else + ## boot + sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_BOOT:?}/d" + ## root + sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" + sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" fi } - -########################################################################## +######################################################################## handle_kernel() { if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - ###################################################################### + #################################################################### # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE local NAME="${!1}" local URL="${1}_URL"; URL="${!URL}" @@ -940,11 +717,11 @@ handle_kernel() { local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" # ${2} : optional options local OPT=${2} - ###################################################################### + #################################################################### local FILE_URL="${NAME:?}.url" local FILE_KERNEL="${NAME:?}.kernel" local DST_ORIGINAL="/srv/tmp/original/${NAME:?}" - ###################################################################### + #################################################################### echo -e "\e[32mhandle_kernel(\e[0m${NAME:?}\e[32m)\e[0m"; if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi @@ -1012,514 +789,252 @@ handle_kernel() { } -########################################################################## -_unhandle_kernel() { - if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - - ###################################################################### - # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE - local NAME="${!1}" - local URL="${1}_URL"; URL="${!URL}" - local SUM="${1}_SUM"; SUM="${!SUM}" - local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" - ###################################################################### - local NAME="${1:?}" - local FILE_URL="${NAME:?}.url" - local FILE_KERNEL="${NAME:?}.kernel" - ###################################################################### - echo -e "\e[32m_unhandle_kernel(\e[0m${NAME:?}\e[32m)\e[0m"; +######################################################################## +handle_item() { + local ITEM_ACTION="${1}" + local ITEM_TYPE="${2}" - sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; + shift; + shift; + + case "${ITEM_ACTION:?}" in + '+') + case "${ITEM_TYPE:?}" in + img) + handle_img $*; + ;; + iso) + handle_iso $*; + ;; + kernel) + handle_kernel $*; + ;; + zip_img) + handle_zip_img $*; + ;; + rpi_pxe) + handle_rpi_pxe $*; + ;; + *) + ;; + esac + ;; + '-') + case "${ITEM_TYPE:?}" in + img) + _unhandle_img $*; + ;; + iso) + _unhandle_iso $*; + ;; + kernel) + _unhandle_kernel $*; + ;; + zip_img) + _unhandle_zip_img $*; + ;; + rpi_pxe) + #_unhandle_rpi_pxe $*; + ;; + *) + ;; + esac + ;; + '#') + ;; + *) + ;; + esac +} - sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; - sudo rm -f "${DST_ISO:?}/${FILE_KERNEL:?}"; - sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; +######################################################################## +handle_ipxe() { + echo -e "\e[32mhandle_ipxe()\e[0m"; - sudo sed /etc/exports -i -e "/${NAME:?}/d" -} + local FILE_MENU="${DST_TFTP_ETH0:?}/${DST_IPXE:?}/menu.ipxe" + local FILE_BASE="http://${IP_ETH0:?}/srv" + if ! [[ -d "${DST_TFTP_ETH0:?}/${DST_IPXE:?}" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_IPXE:?}"; fi -########################################################################## -handle_img() { - if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + #################################################################### + # http://ipxe.org/docs + # http://ipxe.org/howto/chainloading + #################################################################### + if (! compare_last_modification_time "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi); then + echo -e "\e[36m download iPXE stuff\e[0m"; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/undionly.kpxe" https://boot.ipxe.org/undionly.kpxe; - ###################################################################### - # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE - local NAME="${!1}" - local URL="${1}_URL"; URL="${!URL}" - local SUM="${1}_SUM"; SUM="${!SUM}" - local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" - # ${2..} : optional options - local OPT=${2} - ###################################################################### - local FILE_URL="${NAME:?}.url" - local FILE_IMG="${NAME:?}.img" - ###################################################################### - echo -e "\e[32mhandle_img(\e[0m${NAME:?}\e[32m)\e[0m"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" ]] || (\ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" &>/dev/null); - if ! [[ -d "${DST_IMG:?}/" ]]; then sudo mkdir -p "${DST_IMG:?}/"; fi - if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.pxe" https://boot.ipxe.org/ipxe.pxe; + sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.iso" https://boot.ipxe.org/ipxe.iso; + fi - sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; -# sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; - sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}"; + sudo touch "${FILE_MENU:?}" + . "${script_dir:?}/p2-include-menu.sh" ipxe +} - if [[ -z "${URL}" ]]; then - if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ - && [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ - && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]]; \ - then - echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; - fi - else - if [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ - && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]] \ - && grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ - && ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null; \ - then - echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; - fi - if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ - || ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null \ - || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_IMG:?}/${FILE_URL:?}" "${URL:?}"); \ - then - echo -e "\e[36m download image\e[0m"; - sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - sudo wget -O "${DST_IMG:?}/${FILE_IMG:?}" "${URL:?}"; - - sudo sh -c "echo '${URL}' > ${DST_IMG:?}/${FILE_URL:?}"; - sudo touch -r "${DST_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}/${FILE_URL:?}"; - fi - fi - - if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then - sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - fi - - if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then - local OFFSET_PART1=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) - local SIZE_PART1=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) - #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" - - ## partition1 - if ! [[ -d "${DST_NFS_ETH0:?}/${NAME:?}" ]]; then - echo -e "\e[36m create image folder\e[0m"; - sudo mkdir -p "${DST_NFS_ETH0:?}/${NAME:?}"; - fi - - if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/fstab; then - echo -e "\e[36m add image to fstab\e[0m"; - sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_ETH0:?}/${NAME:?} auto ro,nofail,auto,loop,offset=${OFFSET_PART1:?},sizelimit=${SIZE_PART1:?} 0 11' >> /etc/fstab"; - fi - - if ! grep -q "${DST_NFS_ETH0:?}/${NAME:?}" /etc/exports; then - echo -e "\e[36m add image folder to exports\e[0m"; - sudo sh -c "echo '${DST_NFS_ETH0:?}/${NAME:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; - fi - - sudo mount "${DST_NFS_ETH0:?}/${NAME:?}"; - sudo exportfs "*:${DST_NFS_ETH0:?}/${NAME:?}"; - else - ## partition1 - sudo sed /etc/fstab -i -e "/${NAME:?}/d" - sudo sed /etc/exports -i -e "/${NAME:?}/d" - fi -} - - -########################################################################## -_unhandle_img() { - if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - - ###################################################################### - # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE - local NAME="${!1}" - local URL="${1}_URL"; URL="${!URL}" - local SUM="${1}_SUM"; SUM="${!SUM}" - local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" - # ${2..} : optional options - local OPT=${2} - ###################################################################### - local FILE_URL="${NAME:?}.url" - local FILE_IMG="${NAME:?}.img" - ###################################################################### - echo -e "\e[32m_unhandle_img(\e[0m${NAME:?}\e[32m)\e[0m"; - - sudo exportfs -u "*:${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; - sudo umount -f "${DST_NFS_ETH0:?}/${NAME:?}" 2> /dev/null; - - sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - - sudo rm -rf "${DST_NFS_ETH0:?}/${NAME:?}"; - - sudo sed /etc/fstab -i -e "/${NAME:?}/d" - sudo sed /etc/exports -i -e "/${NAME:?}/d" - - if [[ -d "${SRC_IMG:?}" ]] \ - && ( \ - ! [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ - || ! grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ - || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${SRC_IMG:?}/${FILE_IMG:?}" "${URL:?}") \ - ); \ - then - echo -e "\e[36m download image to backup location\e[0m"; - sudo rm -f "${SRC_IMG:?}/${FILE_URL:?}"; - sudo rm -f "${SRC_IMG:?}/${FILE_IMG:?}"; - sudo wget -O "${SRC_IMG:?}/${FILE_IMG:?}" "${URL:?}"; - sudo sh -c "echo '${URL}' > ${SRC_IMG:?}/${FILE_URL:?}"; - sudo touch -r "${SRC_IMG:?}/${FILE_IMG:?}" "${SRC_IMG:?}/${FILE_URL:?}"; - fi -} - - -########################################################################## -handle_zip_img() { - if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - - ###################################################################### - # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE - local NAME="${!1}" - local URL="${1}_URL"; URL="${!URL}" - local SUM="${1}_SUM"; SUM="${!SUM}" - local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" - # ${2} : optional options - local OPT=${2} - ###################################################################### - local RAW_FILENAME=$(basename "${URL:?}" .zip) - local RAW_FILENAME_ZIP="${RAW_FILENAME:?}.zip" - local NAME_BOOT="${NAME:?}-boot" - local NAME_ROOT="${NAME:?}-root" - local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" - local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" - local FILE_URL="${NAME:?}.url" - local FILE_IMG="${NAME:?}.img" - ###################################################################### - echo -e "\e[32mhandle_zip_img(\e[0m${NAME:?}\e[32m)\e[0m"; - - if ! [[ -d "${DST_IMG:?}/" ]]; then sudo mkdir -p "${DST_IMG:?}/"; fi - if ! [[ -d "${DST_NFS_ETH0:?}/" ]]; then sudo mkdir -p "${DST_NFS_ETH0:?}/"; fi - - sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; - sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; +######################################################################## +handle_pxe_menu() { + # $1 : menu short name + # $2 : menu file name + #################################################################### + local FILE_MENU="${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg/${2:?}" + local FILE_BASE="http://${IP_ETH0:?}/srv" + #################################################################### + ## INFO: + ## The entry before -- means that it will be used by the live system / the installer + ## The entry after -- means that it will be carried to and used by the installed system + ## https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kernel-parameters.txt + ## + ## some debian/ubuntu parameter + ## https://www.debian.org/releases/stretch/example-preseed.txt + ## https://www.debian.org/releases/stretch/amd64/apb.html.en + ## https://www.debian.org/releases/stretch/amd64/ch05s03.html.en + ## https://manpages.debian.org/stretch/live-config-doc/live-config.7.en.html + ## http://manpages.ubuntu.com/manpages/precise/man7/live-config.7.html + #################################################################### + echo -e "\e[32mhandle_pxe_menu(\e[0m${1:?}\e[32m)\e[0m"; + echo -e "\e[36m setup sys menu for pxe\e[0m"; + if ! [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg"; fi + if [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then + cat << EOF | sudo tee "${FILE_MENU:?}" &>/dev/null +######################################## +# ${FILE_MENU:?} - sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; - sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; +# http://www.syslinux.org/wiki/index.php?title=Menu - if [[ -z "${URL}" ]]; then - if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ - && [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ - && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]]; \ - then - echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; - fi - else - if [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ - && [[ -f "${SRC_IMG:?}/${FILE_URL:?}" ]] \ - && grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ - && ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null; \ - then - echo -e "\e[36m copy img from usb-stick\e[0m"; - sudo rm -f "${FILE_IMG:?}/${FILE_URL:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_IMG:?}" "${DST_IMG:?}"; - sudo rsync -xa --info=progress2 "${SRC_IMG:?}/${FILE_URL:?}" "${DST_IMG:?}"; - fi +DEFAULT vesamenu.c32 +#TIMEOUT 600 +#ONTIMEOUT localboot +PROMPT 0 +NOESCAPE 1 +ALLOWOPTIONS 1 - if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] \ - || ! grep -q "${URL}" "${DST_IMG:?}/${FILE_URL:?}" 2> /dev/null \ - || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${DST_IMG:?}/${FILE_URL:?}" "${URL:?}"); \ - then - echo -e "\e[36m download image\e[0m"; - sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - sudo wget -O "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" "${URL:?}"; +menu color title * #FFFFFFFF * +menu title PXE Boot Menu (${1:?}) +menu rows 20 +menu tabmsgrow 24 +menu tabmsg [Enter]=boot, [Tab]=edit, [Esc]=return +menu cmdlinerow 24 +menu timeoutrow 25 +menu color help 1;37;40 #FFFFFFFF * +menu helpmsgrow 26 - sudo sh -c "echo '${URL}' > ${DST_IMG:?}/${FILE_URL:?}"; - sudo touch -r "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" "${DST_IMG:?}/${FILE_URL:?}"; +######################################## +LABEL reboot + MENU LABEL Reboot + COM32 reboot.c32 +######################################## +LABEL poweroff + MENU LABEL Power Off + COM32 poweroff.c32 - echo -e "\e[36m extract image\e[0m"; - sudo unzip "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}" -d "${DST_IMG:?}" > /tmp/output.tmp; - sudo rm -f "${DST_IMG:?}/${RAW_FILENAME_ZIP:?}"; - local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) - sudo mv "${DST_IMG:?}/${RAW_FILENAME_IMG:?}" "${DST_IMG:?}/${FILE_IMG:?}"; - rm /tmp/output.tmp - fi - fi - if ! [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then - sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; +EOF fi - if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then - local OFFSET_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) - local SIZE_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) - local OFFSET_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $4}' | sed 's/,//'))) - local SIZE_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $6}' | sed 's/,//'))) - #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" - - sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" - sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" - - ## boot - if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then - echo -e "\e[36m create image-boot folder\e[0m"; - sudo mkdir -p "${DST_NFS_BOOT:?}"; - fi - - if ! grep -q "${DST_NFS_BOOT:?}" /etc/fstab; then - echo -e "\e[36m add image-boot to fstab\e[0m"; - sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_BOOT:?} auto ro,nofail,auto,loop,offset=${OFFSET_BOOT:?},sizelimit=${SIZE_BOOT:?} 0 11' >> /etc/fstab"; - fi - - if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then - echo -e "\e[36m add image-boot folder to exports\e[0m"; - sudo sh -c "echo '${DST_NFS_BOOT:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; - fi - - ## root - if ! [[ -d "${DST_NFS_ROOT:?}" ]]; then - echo -e "\e[36m create image-root folder\e[0m"; - sudo mkdir -p "${DST_NFS_ROOT:?}"; - fi - - if ! grep -q "${DST_NFS_ROOT:?}" /etc/fstab; then - echo -e "\e[36m add image-root to fstab\e[0m"; - sudo sh -c "echo '${DST_IMG:?}/${FILE_IMG:?} ${DST_NFS_ROOT:?} auto ro,nofail,auto,loop,offset=${OFFSET_ROOT:?},sizelimit=${SIZE_ROOT:?} 0 11' >> /etc/fstab"; - fi - - if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then - echo -e "\e[36m add image-root folder to exports\e[0m"; - sudo sh -c "echo '${DST_NFS_ROOT:?} *(ro,async,no_subtree_check,root_squash,mp,fsid=$(uuid))' >> /etc/exports"; - fi - - sudo mount "${DST_NFS_BOOT:?}"; - sudo exportfs "*:${DST_NFS_BOOT:?}"; - - sudo mount "${DST_NFS_ROOT:?}"; - sudo exportfs "*:${DST_NFS_ROOT:?}"; - else - ## boot - sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" - sudo sed /etc/exports -i -e "/${NAME_BOOT:?}/d" - ## root - sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" - sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" - fi + #################################################################### + #################################################################### + . "${script_dir:?}/p2-include-menu.sh" + . "${script_dir:?}/c2-custom-menu.sh" } -########################################################################## -_unhandle_zip_img() { - if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi - - ###################################################################### - # ${!1} : name of VARIABLE -> $VARIABLE, $VARIABLE_URL, $VARIABLE_SUM, $VARIABLE_SUM_TYPE - local NAME="${!1}" - local URL="${1}_URL"; URL="${!URL}" - local SUM="${1}_SUM"; SUM="${!SUM}" - local SUM_TYPE="${1}_SUM_TYPE"; SUM_TYPE="${!SUM_TYPE}" - # ${2} : optional options - local OPT=${2} - ###################################################################### - local RAW_FILENAME=$(basename "${URL:?}" .zip) - local RAW_FILENAME_ZIP="${RAW_FILENAME:?}.zip" - local NAME_BOOT="${NAME:?}-boot" - local NAME_ROOT="${NAME:?}-root" - local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${NAME_BOOT:?}" - local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${NAME_ROOT:?}" - local FILE_URL="${NAME:?}.url" - local FILE_IMG="${NAME:?}.img" - ###################################################################### - echo -e "\e[32m_unhandle_zip_img(\e[0m${NAME:?}\e[32m)\e[0m"; - - ## boot - sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; - sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; - sudo rm -rf "${DST_NFS_BOOT:?}"; - sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" - sudo sed /etc/exports -i -e "/${NAME_BOOT:?}/d" - - ## root - sudo exportfs -u "*:${DST_NFS_ROOT:?}" 2> /dev/null; - sudo umount -f "${DST_NFS_ROOT:?}" 2> /dev/null; - sudo rm -rf "${DST_NFS_ROOT:?}"; - sudo sed /etc/fstab -i -e "/${NAME_ROOT:?}/d" - sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" - - ## img - sudo rm -f "${DST_IMG:?}/${FILE_IMG:?}"; - sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; - - if [[ -d "${SRC_IMG:?}" ]] \ - && ( \ - ! [[ -s "${SRC_IMG:?}/${FILE_IMG:?}" ]] \ - || ! grep -q "${URL}" "${SRC_IMG:?}/${FILE_URL:?}" 2> /dev/null \ - || ([[ "${OPT}" == "timestamping" ]] && ! compare_last_modification_time "${SRC_IMG:?}/${FILE_URL:?}" "${URL:?}") \ - ); \ - then - echo -e "\e[36m download image to backup location\e[0m"; - sudo rm -f "${SRC_IMG:?}/${FILE_IMG:?}"; - sudo rm -f "${SRC_IMG:?}/${FILE_URL:?}"; - sudo wget -O "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" "${URL:?}"; - sudo sh -c "echo '${URL}' > ${SRC_IMG:?}/${FILE_URL:?}"; - sudo touch -r "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" "${SRC_IMG:?}/${FILE_URL:?}"; +######################################################################## +handle_pxe() { + echo -e "\e[32mhandle_pxe()\e[0m"; - echo -e "\e[36m extract image to backup location\e[0m"; - sudo unzip "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}" -d "${SRC_IMG:?}" > /tmp/output.tmp; - sudo rm -f "${SRC_IMG:?}/${RAW_FILENAME_ZIP:?}"; - local RAW_FILENAME_IMG=$(grep 'inflating' /tmp/output.tmp | cut -d':' -f2 | xargs basename) - sudo mv "${SRC_IMG:?}/${RAW_FILENAME_IMG:?}" "${SRC_IMG:?}/${FILE_IMG:?}"; - rm /tmp/output.tmp + #################################################################### + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; + if [[ -d "${SRC_TFTP_ETH0:?}" ]]; then + echo -e "\e[36m copy win-pe stuff\e[0m"; + if ! [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/pxeboot.n12" ]] && [[ -f "${SRC_TFTP_ETH0:?}/pxeboot.n12" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/pxeboot.n12" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; fi + if ! [[ -f "${DST_TFTP_ETH0:?}/bootmgr.exe" ]] && [[ -f "${SRC_TFTP_ETH0:?}/bootmgr.exe" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/bootmgr.exe" "${DST_TFTP_ETH0:?}/"; fi + if ! [[ -d "${DST_TFTP_ETH0:?}/Boot" ]] && [[ -d "${SRC_TFTP_ETH0:?}/Boot" ]]; then sudo rsync -xa --info=progress2 "${SRC_TFTP_ETH0:?}/Boot" "${DST_TFTP_ETH0:?}/"; fi fi -} - -########################################################################## -handle_rpi_pxe_customization() { - echo -e "\e[36m handle_rpi_pxe_customization()\e[0m"; - ###################################################################### - local DST_CUSTOM_BOOT="${1:?}" - local DST_CUSTOM_ROOT="${2:?}" - local FLAGS="${3:?}" - ###################################################################### - if (echo "${FLAGS:?}" | grep -q redo); then - ################################################################## - if (echo "${FLAGS:?}" | grep -q cmdline); then - echo -e "\e[36m add cmdline file\e[0m"; - sudo sh -c "echo 'dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 plymouth.ignore-serial-consoles root=/dev/nfs nfsroot=${IP_ETH0:?}:${DST_NFS_ROOT:?},vers=3 rootwait rw ip=dhcp elevator=deadline net.ifnames=0 consoleblank=0' > ${DST_CUSTOM_BOOT:?}/cmdline.txt"; - fi - - ################################################################## - if (echo "${FLAGS:?}" | grep -q config); then - echo -e "\e[36m add config file\e[0m"; - cat << EOF | sudo tee "${DST_CUSTOM_BOOT:?}/config.txt" &>/dev/null -# Enable audio (loads snd_bcm2835) -dtparam=audio=on - -[pi4] -# Enable DRM VC4 V3D driver on top of the dispmanx display stack -dtoverlay=vc4-fkms-v3d -max_framebuffers=2 - -[all] -#dtoverlay=vc4-fkms-v3d - -disable_overscan=1 -max_usb_current=1 - -hdmi_force_hotplug=1 - -#hdmi_ignore_cec=1 -#hdmi_ignore_cec_init=1 -cec_osd_name=NetBoot + [[ -h "${DST_TFTP_ETH0:?}/sources" ]] || sudo ln -s "${DST_NFS_ETH0:?}/${WIN_PE_X86:?}/sources/" "${DST_TFTP_ETH0:?}/sources"; -disable_splash=1 -EOF - fi + #################################################################### + echo -e "\e[36m setup sys menu files for pxe bios\e[0m"; + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/lpxelinux.0" ]] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/ldlinux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/memdisk" ]] || sudo ln -s /usr/lib/syslinux/memdisk "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso"; - ################################################################## - if (echo "${FLAGS:?}" | grep -q ssh); then - echo -e "\e[36m add ssh file\e[0m"; - sudo touch "${DST_CUSTOM_BOOT:?}/ssh"; - fi + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" ]] || ( \ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" > /dev/null); - ################################################################## - if (echo "${FLAGS:?}" | grep -q root); then - ############################################################## - if (echo "${FLAGS:?}" | grep -q fstab); then - echo -e "\e[36m add fstab file\e[0m"; - cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/fstab" &>/dev/null -######################################## -proc /proc proc defaults 0 0 -${IP_ETH0:?}:${DST_NFS_ROOT:?} / nfs defaults,noatime 0 1 -${IP_ETH0:?}:${DST_NFS_BOOT:?} /boot nfs defaults,noatime 0 2 -EOF - sudo rm "${DST_CUSTOM_ROOT:?}/etc/init.d/resize2fs_once"; - fi + handle_pxe_menu "${DST_PXE_BIOS:?}" default; - ############################################################## - if (echo "${FLAGS:?}" | grep -q wpa); then - echo -e "\e[36m add wpa_supplicant template file\e[0m"; - cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/wpa_supplicant/wpa_supplicant.conf" &>/dev/null -######################################## -country=${COUNTRY_WLAN0:?} -ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev -update_config=1 + #################################################################### + echo -e "\e[36m setup sys menu files for pxe efi32\e[0m"; + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/ldlinux.e32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso"; -network={ - # wpa_passphrase - #ssid= - #psk= + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" ]] || ( \ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" &>/dev/null); - # sudo iwlist wlan0 scan [essid ] - #bssid= + handle_pxe_menu "${DST_PXE_EFI32:?}" default; - scan_ssid=1 - key_mgmt=WPA-PSK -} -EOF - if [[ -s "${SRC_BACKUP:?}/wpa_supplicant.conf" ]]; then - echo -e "\e[36m add wpa_supplicant file from backup\e[0m"; - sudo rsync -xa --info=progress2 "${SRC_BACKUP:?}/wpa_supplicant.conf" "${DST_CUSTOM_ROOT:?}/etc/wpa_supplicant/" - fi - fi + #################################################################### + echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; + [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/ldlinux.e64" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso"; - ############################################################## - if (echo "${FLAGS:?}" | grep -q history); then - echo -e "\e[36m add .bash_history file\e[0m"; - cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/home/pi/.bash_history" &>/dev/null -sudo poweroff -sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y --purge && sudo apt autoclean -y && sync && echo Done. -sudo nano /etc/resolv.conf -ip route -sudo ip route del default dev eth0 -sudo reboot -sudo nano /etc/wpa_supplicant/wpa_supplicant.conf -wpa_passphrase -sudo iwlist wlan0 scan [essid ] -sudo raspi-config -EOF - sudo chown 1000:1000 "${DST_CUSTOM_ROOT:?}/home/pi/.bash_history"; - fi + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" ]] || (\ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" &>/dev/null); - ################################################################## - if (echo "${FLAGS:?}" | grep -q apt); then - ############################################################## - if ! [[ -f "${DST_CUSTOM_ROOT:?}/etc/apt/apt.conf.d/01proxy" ]]; then - echo -e "\e[36m add apt proxy file\e[0m"; - cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/apt/apt.conf.d/01proxy" &>/dev/null -Acquire::http::Proxy "http://${IP_ETH0:?}:3142"; -EOF - fi - fi - fi - fi + handle_pxe_menu "${DST_PXE_EFI64:?}" default; } -########################################################################## + +######################################################################## handle_rpi_pxe_classic() { if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + #################################################################### # ${!1} : name of VARIABLE # ${!2} : name of VARIABLE for serial number # ${3} : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) - ############################################################## local NAME="${!1}" local SN="${!2}" local FLAGS="${3}" + #################################################################### local NAME_BOOT="${NAME:?}-boot" local NAME_ROOT="${NAME:?}-root" local DST_SN_BOOT="${SN:?}-boot" @@ -1529,10 +1044,10 @@ handle_rpi_pxe_classic() { local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${DST_SN_BOOT:?}" local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${DST_SN_ROOT:?}" local FILE_URL="${NAME:?}.url" - ###################################################################### + #################################################################### local DST_CUSTOM_BOOT="${DST_NFS_BOOT:?}" local DST_CUSTOM_ROOT="${DST_NFS_ROOT:?}" - ###################################################################### + #################################################################### echo -e "\e[32mhandle_rpi_pxe_classic(\e[0m${NAME:?}\e[32m)\e[0m"; sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; @@ -1542,7 +1057,7 @@ handle_rpi_pxe_classic() { sudo umount -f "${DST_NFS_BOOT:?}" 2> /dev/null; - ###################################################################### + #################################################################### if (echo "${FLAGS:?}" | grep -q redo) \ || ( [[ -f "${DST_IMG:?}/${FILE_URL:?}" ]] && ! grep -q $(cat "${DST_IMG:?}/${FILE_URL:?}") "${DST_NFS_BOOT:?}/${FILE_URL:?}" ) 2> /dev/null; then echo -e "\e[36m delete old boot files\e[0m"; @@ -1556,7 +1071,7 @@ handle_rpi_pxe_classic() { local FLAGS="${FLAGS:?}",redo fi - ###################################################################### + #################################################################### if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then echo -e "\e[36m copy boot files\e[0m"; sudo mkdir -p "${DST_NFS_BOOT:?}"; @@ -1570,21 +1085,21 @@ handle_rpi_pxe_classic() { sudo rsync -xa --info=progress2 "${SRC_ROOT:?}/"* "${DST_NFS_ROOT:?}/" fi - ###################################################################### + #################################################################### if ! [[ -h "${DST_TFTP_ETH0:?}/${SN:?}" ]]; then sudo ln -s "${DST_NFS_BOOT:?}/" "${DST_TFTP_ETH0:?}/${SN:?}"; fi - ###################################################################### + #################################################################### sudo cp "${DST_IMG:?}/${FILE_URL:?}" "${DST_CUSTOM_BOOT:?}/${FILE_URL:?}"; handle_rpi_pxe_customization "${DST_CUSTOM_BOOT:?}" "${DST_CUSTOM_ROOT:?}" "${FLAGS:?}"; - ###################################################################### + #################################################################### if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then echo -e "\e[36m add ${DST_NFS_BOOT:?} to exports\e[0m"; sudo sh -c "echo '${DST_NFS_BOOT:?} *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"; fi sudo exportfs "*:${DST_NFS_BOOT:?}"; - ###################################################################### + #################################################################### if (echo "${FLAGS:?}" | grep -q root); then if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then echo -e "\e[36m add ${DST_NFS_ROOT:?} to exports\e[0m"; @@ -1595,24 +1110,26 @@ handle_rpi_pxe_classic() { sudo sed /etc/exports -i -e "/${NAME_ROOT:?}/d" fi - ###################################################################### + #################################################################### if ! [[ -f "${DST_TFTP_ETH0:?}/bootcode.bin" ]]; then echo -e "\e[36m download bootcode.bin for RPi3 network booting\e[0m"; sudo wget -O "${DST_TFTP_ETH0:?}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; fi } -########################################################################## + +######################################################################## handle_rpi_pxe_overlay() { if [[ -z "${1}" ]] || [[ -z "${!1}" ]]; then return 0; fi + #################################################################### # ${!1} : name of VARIABLE # ${!2} : name of VARIABLE for serial number # ${3} : flags (redo,bootcode,cmdline,config,ssh,root,fstab,wpa,history) local NAME="${!1}" local SN="${!2}" local FLAGS="${3}" - ############################################################## + #################################################################### local NAME_BOOT="${NAME:?}-boot" local NAME_ROOT="${NAME:?}-root" local DST_SN_BOOT="${SN:?}-boot" @@ -1622,7 +1139,7 @@ handle_rpi_pxe_overlay() { local DST_NFS_BOOT="${DST_NFS_ETH0:?}/${DST_SN_BOOT:?}" local DST_NFS_ROOT="${DST_NFS_ETH0:?}/${DST_SN_ROOT:?}" local FILE_URL="${NAME:?}.url" - ###################################################################### + #################################################################### local DST_LOWER_BOOT="/srv/tmp/lower/${NAME_BOOT:?}" local DST_LOWER_ROOT="${SRC_ROOT:?}" local DST_UPPER_BOOT="/srv/tmp/upper/${DST_SN_BOOT:?}" @@ -1631,10 +1148,10 @@ handle_rpi_pxe_overlay() { local DST_WORK_ROOT="/srv/tmp/work/${DST_SN_ROOT:?}" local DST_MERGED_BOOT="/srv/tmp/merged/${DST_SN_BOOT:?}" local DST_MERGED_ROOT="/srv/tmp/merged/${DST_SN_ROOT:?}" - ###################################################################### + #################################################################### local DST_CUSTOM_BOOT="${DST_NFS_BOOT:?}" local DST_CUSTOM_ROOT="${DST_NFS_ROOT:?}" - ###################################################################### + #################################################################### echo -e "\e[32mhandle_rpi_pxe_overlay(\e[0m${NAME:?}\e[32m)\e[0m"; sudo exportfs -u "*:${DST_NFS_BOOT:?}" 2> /dev/null; @@ -1647,7 +1164,7 @@ handle_rpi_pxe_overlay() { sudo umount -f "${DST_MERGED_ROOT:?}" 2> /dev/null; - ###################################################################### + #################################################################### if (echo "${FLAGS:?}" | grep -q redo) \ || ( [[ -f "${DST_IMG:?}/${FILE_URL:?}" ]] && ! grep -q $(cat "${DST_IMG:?}/${FILE_URL:?}") "${DST_UPPER_BOOT:?}/${FILE_URL:?}" ) 2> /dev/null; then echo -e "\e[36m delete old boot files\e[0m"; @@ -1668,13 +1185,13 @@ handle_rpi_pxe_overlay() { local FLAGS="${FLAGS:?}",redo fi - ###################################################################### + #################################################################### if ! [[ -d "${DST_NFS_BOOT:?}" ]]; then sudo mkdir -p "${DST_NFS_BOOT:?}"; fi if ! [[ -d "${DST_UPPER_BOOT:?}" ]]; then sudo mkdir -p "${DST_UPPER_BOOT:?}"; fi if ! [[ -d "${DST_WORK_BOOT:?}" ]]; then sudo mkdir -p "${DST_WORK_BOOT:?}"; fi if ! [[ -d "${DST_MERGED_BOOT:?}" ]]; then sudo mkdir -p "${DST_MERGED_BOOT:?}"; fi if ! [[ -d "${DST_LOWER_BOOT:?}" ]]; then sudo mkdir -p "${DST_LOWER_BOOT:?}"; fi - ###################################################################### + #################################################################### if (echo "${FLAGS:?}" | grep -q root); then if ! [[ -d "${DST_NFS_ROOT:?}" ]]; then sudo mkdir -p "${DST_NFS_ROOT:?}"; fi if ! [[ -d "${DST_UPPER_ROOT:?}" ]]; then sudo mkdir -p "${DST_UPPER_ROOT:?}"; fi @@ -1682,7 +1199,7 @@ handle_rpi_pxe_overlay() { if ! [[ -d "${DST_MERGED_ROOT:?}" ]]; then sudo mkdir -p "${DST_MERGED_ROOT:?}"; fi fi - ###################################################################### + #################################################################### if ! [[ -f "/etc/mount-delayed.sh" ]]; then sudo touch /etc/mount-delayed.sh; sudo chmod 0755 /etc/mount-delayed.sh; fi if ! grep -q "mount-delayed.sh" /etc/rc.local; then sudo sed /etc/rc.local -i -e "s/^exit 0$/\########################################\n## workaround\n\/etc\/mount-delayed.sh;\n\nexit 0/" @@ -1697,7 +1214,7 @@ handle_rpi_pxe_overlay() { sudo sh -c "echo 'mount ${DST_NFS_ROOT:?}' >> /etc/mount-delayed.sh"; fi - ###################################################################### + #################################################################### if ! grep -q "${DST_NFS_BOOT:?}" /etc/fstab; then echo -e "\e[36m add image-boot to fstab\e[0m"; sudo sh -c "echo '${SRC_BOOT:?} ${DST_LOWER_BOOT:?} fuse.bindfs ro,noauto 0 12' >> /etc/fstab"; @@ -1705,7 +1222,7 @@ handle_rpi_pxe_overlay() { sudo sh -c "echo '${DST_MERGED_BOOT:?} ${DST_NFS_BOOT:?} fuse.bindfs rw,noauto 0 14' >> /etc/fstab"; fi - ###################################################################### + #################################################################### if (echo "${FLAGS:?}" | grep -q root); then if ! grep -q "${DST_NFS_ROOT:?}" /etc/fstab; then echo -e "\e[36m add image-root to fstab\e[0m"; @@ -1715,7 +1232,7 @@ handle_rpi_pxe_overlay() { fi - ###################################################################### + #################################################################### sudo mount "${DST_LOWER_BOOT:?}"; sudo mount "${DST_MERGED_BOOT:?}"; sudo mount "${DST_NFS_BOOT:?}"; @@ -1724,21 +1241,21 @@ handle_rpi_pxe_overlay() { sudo mount "${DST_NFS_ROOT:?}"; fi - ###################################################################### + #################################################################### if ! [[ -h "${DST_TFTP_ETH0:?}/${SN:?}" ]]; then sudo ln -s "${DST_NFS_BOOT:?}/" "${DST_TFTP_ETH0:?}/${SN:?}"; fi - ###################################################################### + #################################################################### sudo cp "${DST_IMG:?}/${FILE_URL:?}" "${DST_CUSTOM_BOOT:?}/${FILE_URL:?}"; handle_rpi_pxe_customization "${DST_CUSTOM_BOOT:?}" "${DST_CUSTOM_ROOT:?}" "${FLAGS:?}"; - ###################################################################### + #################################################################### if ! grep -q "${DST_NFS_BOOT:?}" /etc/exports; then echo -e "\e[36m add ${DST_NFS_BOOT:?} to exports\e[0m"; sudo sh -c "echo '${DST_NFS_BOOT:?} *(rw,sync,no_subtree_check,no_root_squash,mp,fsid=$(uuid))' >> /etc/exports"; fi sudo exportfs "*:${DST_NFS_BOOT:?}"; - ###################################################################### + #################################################################### if (echo "${FLAGS:?}" | grep -q root); then if ! grep -q "${DST_NFS_ROOT:?}" /etc/exports; then echo -e "\e[36m add ${DST_NFS_ROOT:?} to exports\e[0m"; @@ -1750,7 +1267,7 @@ handle_rpi_pxe_overlay() { sudo sed /etc/exports -i -e "/${DST_SN_ROOT:?}/d" fi - ###################################################################### + #################################################################### if ! [[ -f "${DST_TFTP_ETH0:?}/bootcode.bin" ]]; then echo -e "\e[36m download bootcode.bin for RPi3 network booting\e[0m"; sudo wget -O "${DST_TFTP_ETH0:?}/bootcode.bin" https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin; @@ -1758,7 +1275,130 @@ handle_rpi_pxe_overlay() { } -########################################################################## +######################################################################## +handle_rpi_pxe_customization() { + echo -e "\e[36m handle_rpi_pxe_customization()\e[0m"; + #################################################################### + local DST_CUSTOM_BOOT="${1:?}" + local DST_CUSTOM_ROOT="${2:?}" + local FLAGS="${3:?}" + #################################################################### + if (echo "${FLAGS:?}" | grep -q redo); then + ################################################################ + if (echo "${FLAGS:?}" | grep -q cmdline); then + echo -e "\e[36m add cmdline file\e[0m"; + sudo sh -c "echo 'dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 plymouth.ignore-serial-consoles root=/dev/nfs nfsroot=${IP_ETH0:?}:${DST_NFS_ROOT:?},vers=3 rootwait rw ip=dhcp elevator=deadline net.ifnames=0 consoleblank=0' > ${DST_CUSTOM_BOOT:?}/cmdline.txt"; + fi + + ################################################################ + if (echo "${FLAGS:?}" | grep -q config); then + echo -e "\e[36m add config file\e[0m"; + cat << EOF | sudo tee "${DST_CUSTOM_BOOT:?}/config.txt" &>/dev/null +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +[pi4] +# Enable DRM VC4 V3D driver on top of the dispmanx display stack +dtoverlay=vc4-fkms-v3d +max_framebuffers=2 + +[all] +#dtoverlay=vc4-fkms-v3d + +disable_overscan=1 +max_usb_current=1 + +hdmi_force_hotplug=1 + +#hdmi_ignore_cec=1 +#hdmi_ignore_cec_init=1 +cec_osd_name=NetBoot + +disable_splash=1 +EOF + fi + + ################################################################ + if (echo "${FLAGS:?}" | grep -q ssh); then + echo -e "\e[36m add ssh file\e[0m"; + sudo touch "${DST_CUSTOM_BOOT:?}/ssh"; + fi + + ################################################################ + if (echo "${FLAGS:?}" | grep -q root); then + ############################################################ + if (echo "${FLAGS:?}" | grep -q fstab); then + echo -e "\e[36m add fstab file\e[0m"; + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/fstab" &>/dev/null +######################################## +proc /proc proc defaults 0 0 +${IP_ETH0:?}:${DST_NFS_ROOT:?} / nfs defaults,noatime 0 1 +${IP_ETH0:?}:${DST_NFS_BOOT:?} /boot nfs defaults,noatime 0 2 +EOF + sudo rm "${DST_CUSTOM_ROOT:?}/etc/init.d/resize2fs_once"; + fi + + ############################################################ + if (echo "${FLAGS:?}" | grep -q wpa); then + echo -e "\e[36m add wpa_supplicant template file\e[0m"; + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/wpa_supplicant/wpa_supplicant.conf" &>/dev/null +######################################## +country=${COUNTRY_WLAN0:?} +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 + +network={ + # wpa_passphrase + #ssid= + #psk= + + # sudo iwlist wlan0 scan [essid ] + #bssid= + + scan_ssid=1 + key_mgmt=WPA-PSK +} +EOF + if [[ -s "${SRC_BACKUP:?}/wpa_supplicant.conf" ]]; then + echo -e "\e[36m add wpa_supplicant file from backup\e[0m"; + sudo rsync -xa --info=progress2 "${SRC_BACKUP:?}/wpa_supplicant.conf" "${DST_CUSTOM_ROOT:?}/etc/wpa_supplicant/" + fi + fi + + ############################################################ + if (echo "${FLAGS:?}" | grep -q history); then + echo -e "\e[36m add .bash_history file\e[0m"; + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/home/pi/.bash_history" &>/dev/null +sudo poweroff +sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y --purge && sudo apt autoclean -y && sync && echo Done. +sudo nano /etc/resolv.conf +ip route +sudo ip route del default dev eth0 +sudo reboot +sudo nano /etc/wpa_supplicant/wpa_supplicant.conf +wpa_passphrase +sudo iwlist wlan0 scan [essid ] +sudo raspi-config +EOF + sudo chown 1000:1000 "${DST_CUSTOM_ROOT:?}/home/pi/.bash_history"; + fi + + ############################################################ + if (echo "${FLAGS:?}" | grep -q apt); then + ######################################################## + if ! [[ -f "${DST_CUSTOM_ROOT:?}/etc/apt/apt.conf.d/01proxy" ]]; then + echo -e "\e[36m add apt proxy file\e[0m"; + cat << EOF | sudo tee "${DST_CUSTOM_ROOT:?}/etc/apt/apt.conf.d/01proxy" &>/dev/null +Acquire::http::Proxy "http://${IP_ETH0:?}:3142"; +EOF + fi + fi + fi + fi +} + + +######################################################################## handle_rpi_pxe() { local SN="${!2}" if [[ "${SN:?}" == "--------" ]]; then @@ -1782,149 +1422,14 @@ handle_rpi_pxe() { } -########################################################################## -handle_item() { - local ITEM_ACTION="${1}" - local ITEM_TYPE="${2}" - - shift; - shift; - - case "${ITEM_ACTION:?}" in - '+') - case "${ITEM_TYPE:?}" in - img) - handle_img $*; - ;; - iso) - handle_iso $*; - ;; - kernel) - handle_kernel $*; - ;; - zip_img) - handle_zip_img $*; - ;; - rpi_pxe) - handle_rpi_pxe $*; - ;; - *) - ;; - esac - ;; - '-') - case "${ITEM_TYPE:?}" in - img) - _unhandle_img $*; - ;; - iso) - _unhandle_iso $*; - ;; - kernel) - _unhandle_kernel $*; - ;; - zip_img) - _unhandle_zip_img $*; - ;; - rpi_pxe) - #_unhandle_rpi_pxe $*; - ;; - *) - ;; - esac - ;; - '#') - ;; - *) - ;; - esac -} - -########################################################################## -handle_optional() { - echo -e "\e[32mhandle_optional()\e[0m"; - - ###################################################################### - ## network nat - grep -q mod_install_server /etc/sysctl.conf 2> /dev/null || { - echo -e "\e[36m setup sysctrl for nat\e[0m"; - do_backup etc/sysctl.conf - cat << EOF | sudo tee -a /etc/sysctl.conf &>/dev/null -######################################## -## mod_install_server -net.ipv4.ip_forward=1 -net.ipv6.conf.all.forwarding=1 -net.ipv6.conf.${INTERFACE_ETH0:?}.accept_ra=2 -net.ipv6.conf.${INTERFACE_ETH1:?}.accept_ra=2 -net.ipv6.conf.${INTERFACE_WLAN0:?}.accept_ra=2 -EOF - sudo sysctl -p &>/dev/null - sudo sysctl --system &>/dev/null - } - - - ###################################################################### - ## network nat - sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { - echo -e "\e[36m setup iptables for nat\e[0m"; - sudo iptables -t nat -A POSTROUTING -o "${INTERFACE_ETH0:?}" -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over ${INTERFACE_ETH0:?}" - sudo dpkg-reconfigure --unseen-only iptables-persistent - } - - ###################################################################### - ## network nat limit access of eth1 and wlan0 - sudo iptables-save | grep -q LIMIT-ACCESS 2> /dev/null || { - echo -e "\e[36m setup iptables for limiting traffic of ${INTERFACE_ETH1:?}\e[0m"; - sudo iptables -t filter -A INPUT -s "${IP_ETH1_0:?}" ! -d "${IP_ETH1_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" - sudo iptables -t filter -A INPUT -s "${IP_WLAN0_0:?}" ! -d "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" - sudo iptables -t filter -A FORWARD -s "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" - sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but ${INTERFACE_ETH0:?} to local NTP server" - sudo dpkg-reconfigure --unseen-only iptables-persistent - } -} - - -handle_chrony() { - ###################################################################### - ## chrony - grep -q mod_install_server /etc/chrony/chrony.conf 2> /dev/null || { - echo -e "\e[36m setup chrony\e[0m"; - do_backup etc/chrony/chrony.conf - cat << EOF | sudo tee /etc/chrony/chrony.conf &>/dev/null -######################################## -## mod_install_server -allow - -server ptbtime1.ptb.de iburst -server ptbtime2.ptb.de iburst -server ptbtime3.ptb.de iburst -server ntp1.oma.be iburst -server ntp2.oma.be iburst - -pool ${CUSTOM_LANGUAGE:?}.pool.ntp.org iburst - -keyfile /etc/chrony/chrony.keys -driftfile /var/lib/chrony/chrony.drift -logdir /var/log/chrony -maxupdateskew 100.0 -hwclockfile /etc/adjtime -rtcsync -makestep 1 5 -EOF - sudo systemctl restart chronyd.service; - } -} - - -########################################################################## +######################################################################## sudo mkdir -p "${DST_ISO:?}"; sudo mkdir -p "${DST_IMG:?}"; sudo mkdir -p "${DST_TFTP_ETH0:?}"; sudo mkdir -p "${DST_NFS_ETH0:?}"; -########################################################################## + +######################################################################## if [[ -d "/var/www/html" ]]; then [[ -d "/var/www/html/srv" ]] || sudo mkdir -p /var/www/html/srv [[ -h "/var/www/html/srv${ISO:?}" ]] || sudo ln -s "${DST_ISO:?}" "/var/www/html/srv${ISO:?}"; @@ -1933,35 +1438,28 @@ if [[ -d "/var/www/html" ]]; then fi -########################################################################## -handle_hostapd; -handle_dhcpcd; -handle_dnsmasq; -handle_samba; -handle_optional; -handle_chrony; - - -########################################################################## +######################################################################## +######################################################################## . "${script_dir:?}/p2-include-handle.sh" +. "${script_dir:?}/c2-custom-handle.sh" -########################################################################## +######################################################################## handle_pxe; handle_ipxe; -########################################################################## +######################################################################## if [[ -d "${SRC_ISO:?}" ]] && ! [[ "${SRC_ISO:?}" == "${DST_ISO:?}" ]]; then echo -e "\e[32mbackup new iso images to usb-stick\e[0m"; sudo rsync -xa --info=progress2 "${DST_ISO:?}/"*.iso "${DST_ISO:?}/"*.url "${SRC_ISO:?}/" 2>/dev/null fi -###################################################################### +######################################################################## if [[ -d "${SRC_IMG:?}" ]] && ! [[ "${SRC_IMG:?}" == "${DST_IMG:?}" ]]; then echo -e "\e[32mbackup new images to usb-stick\e[0m"; sudo rsync -xa --info=progress2 "${DST_IMG:?}/"*.img "${DST_IMG:?}/"*.url "${SRC_IMG:?}/" 2>/dev/null fi -########################################################################## +######################################################################## sync echo -e "\e[32mDone.\e[0m"; echo -e "\e[1;31mPlease reboot\e[0m"; diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..7e90c55 --- /dev/null +++ b/run.sh @@ -0,0 +1,92 @@ +#!/bin/bash + + +######################################################################## +script_dir=$(dirname "${BASH_SOURCE:?}") + + +######################################################################## +FILE_LAST_RUN="${script_dir:?}/.run_last" +RUN= +PASS= + +######################################################################## +if [[ -f "${FILE_LAST_RUN}" ]]; then + LAST_RUN=$(<"${FILE_LAST_RUN:?}") + + case "${LAST_RUN}" in + "install") + RUN="setup" + ;; + "setup") + RUN="update" + ;; + "update") + RUN="update" + ;; + *) + RUN="install" + ;; + esac +else + RUN="install" +fi + + +######################################################################## +if ! [[ -z "${1}" ]]; then + RUN="${1:?}" +fi + + +######################################################################## +case "${RUN}" in + "install") + PASS="p0" + ;; + "setup") + PASS="p1" + ;; + "update") + PASS="p2" + ;; + *) + ;; +esac + + +######################################################################## +echo "Available actions:" +echo +echo "'install'" +echo " This will run script 'p2-install.sh'" +echo " to install required packages" +echo +echo "'setup'" +echo " This will run script 'p2-setup.sh'" +echo " to setup / configure services" +echo +echo "'update'" +echo " This will run script 'p2-update.sh'" +echo " to download and mount images" +echo " or unmount and remove images" +echo " and update menue items" +echo +echo "Automatic next action will be '${RUN}'" +echo +read -p "Do you want to continue with: '${RUN}' [y|N]? " CHOICE +echo +case "${CHOICE}" in + Y|y) ;; + *) echo "To override automatic action, you can give the script 'run.sh' one of the above actions" + exit 1 + ;; +esac + + +######################################################################## +. "${script_dir:?}/${PASS:?}-${RUN:?}.sh" + + +######################################################################## +echo "${RUN:?}" > "${FILE_LAST_RUN:?}" From 77c6a8b449d1de4b9c8bf9a8e9aee8f89e2374c1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 31 Jan 2021 20:54:40 +0100 Subject: [PATCH 395/694] made scripts p0-, p1-, p2- as part of script run.sh the only script that can be run directly is now script run.sh --- c2-custom-handle.sh | 2 +- c2-custom-menu.sh | 2 +- c2-custom-url.sh | 2 +- c2-custom-var.sh | 2 +- p0-install.sh | 9 ++++++++- p1-setup.sh | 15 +++++++-------- p2-include-handle.sh | 2 +- p2-include-menu.sh | 7 ++++--- p2-include-url.sh | 7 ++++--- p2-include-var.sh | 6 +++--- p2-update.sh | 13 ++++++++++--- 11 files changed, 41 insertions(+), 26 deletions(-) diff --git a/c2-custom-handle.sh b/c2-custom-handle.sh index 1d32f20..9ff7d4e 100644 --- a/c2-custom-handle.sh +++ b/c2-custom-handle.sh @@ -4,7 +4,7 @@ if [[ -z "$script_dir" ]] then echo 'do not run this script directly !' - echo 'this script is part of p2-update.sh' + echo 'this script is part of run.sh' exit -1 fi ######################################################################## diff --git a/c2-custom-menu.sh b/c2-custom-menu.sh index d0f34d9..4a027e4 100644 --- a/c2-custom-menu.sh +++ b/c2-custom-menu.sh @@ -4,7 +4,7 @@ if [[ -z "$script_dir" ]] then echo 'do not run this script directly !' - echo 'this script is part of p2-update.sh' + echo 'this script is part of run.sh' exit -1 fi ######################################################################## diff --git a/c2-custom-url.sh b/c2-custom-url.sh index 716144d..4b0ca45 100644 --- a/c2-custom-url.sh +++ b/c2-custom-url.sh @@ -4,7 +4,7 @@ if [[ -z "$script_dir" ]] then echo 'do not run this script directly !' - echo 'this script is part of p2-update.sh' + echo 'this script is part of run.sh' exit -1 fi ######################################################################## diff --git a/c2-custom-var.sh b/c2-custom-var.sh index c2037b6..2e8993e 100644 --- a/c2-custom-var.sh +++ b/c2-custom-var.sh @@ -4,7 +4,7 @@ if [[ -z "$script_dir" ]] then echo 'do not run this script directly !' - echo 'this script is part of p2-update.sh' + echo 'this script is part of run.sh' exit -1 fi ######################################################################## diff --git a/p0-install.sh b/p0-install.sh index d50a4b2..49fdf0a 100644 --- a/p0-install.sh +++ b/p0-install.sh @@ -1,6 +1,13 @@ #!/bin/bash -script_dir=$(dirname "${BASH_SOURCE:?}") +######################################################################## +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of run.sh' + exit -1 +fi +######################################################################## ######################################################################## diff --git a/p1-setup.sh b/p1-setup.sh index 98ebdad..b1b0d50 100644 --- a/p1-setup.sh +++ b/p1-setup.sh @@ -1,14 +1,13 @@ #!/bin/bash ######################################################################## -# known issues: -# overlayfs can not get exported via nfs -# overlayfs is working, when you put a bindfs on top of overlayfs, to make exportfs happy -# note: this overlayfs+bindfs construction does NOT work reliably - data loss! -# solution: maybe linux kernel 5.6 - - -script_dir=$(dirname "${BASH_SOURCE:?}") +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of run.sh' + exit -1 +fi +######################################################################## ######################################################################## diff --git a/p2-include-handle.sh b/p2-include-handle.sh index f444d0a..f32f603 100644 --- a/p2-include-handle.sh +++ b/p2-include-handle.sh @@ -4,7 +4,7 @@ if [[ -z "$script_dir" ]] then echo 'do not run this script directly !' - echo 'this script is part of p2-update.sh' + echo 'this script is part of run.sh' exit -1 fi ######################################################################## diff --git a/p2-include-menu.sh b/p2-include-menu.sh index 23c9680..ec15416 100644 --- a/p2-include-menu.sh +++ b/p2-include-menu.sh @@ -3,12 +3,13 @@ ######################################################################## if [[ -z "$script_dir" ]] then - echo "do not run this script directly !" - echo "this script is part of p2-update.sh" - exit -1 + echo 'do not run this script directly !' + echo 'this script is part of run.sh' + exit -1 fi ######################################################################## + if ! [[ "$1" == "ipxe" ]] then ######################################################################## diff --git a/p2-include-url.sh b/p2-include-url.sh index 6f4a546..03b8daa 100644 --- a/p2-include-url.sh +++ b/p2-include-url.sh @@ -3,12 +3,13 @@ ######################################################################## if [[ -z "$script_dir" ]] then - echo "do not run this script directly !" - echo "this script is part of p2-update.sh" - exit -1 + echo 'do not run this script directly !' + echo 'this script is part of run.sh' + exit -1 fi ######################################################################## + # v 2021-01-31 # check for broken url diff --git a/p2-include-var.sh b/p2-include-var.sh index f89b4ff..47a6765 100644 --- a/p2-include-var.sh +++ b/p2-include-var.sh @@ -3,9 +3,9 @@ ######################################################################## if [[ -z "$script_dir" ]] then - echo "do not run this script directly !" - echo "this script is part of p2-update.sh" - exit -1 + echo 'do not run this script directly !' + echo 'this script is part of run.sh' + exit -1 fi ######################################################################## diff --git a/p2-update.sh b/p2-update.sh index 34758e8..b3ad1e6 100644 --- a/p2-update.sh +++ b/p2-update.sh @@ -1,5 +1,15 @@ #!/bin/bash +######################################################################## +if [[ -z "$script_dir" ]] +then + echo 'do not run this script directly !' + echo 'this script is part of run.sh' + exit -1 +fi +######################################################################## + + ######################################################################## # known issues: # overlayfs can not get exported via nfs @@ -8,9 +18,6 @@ # solution: maybe linux kernel 5.6 -script_dir=$(dirname "${BASH_SOURCE:?}") - - ######################################################################## echo -e "\e[36msetup variables\e[0m"; From 5f6782e203ec8ea9e49124c6315e4296cf3ee234 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 31 Jan 2021 22:04:55 +0100 Subject: [PATCH 396/694] revert ${..._ROUNTE:?} back to ${..._ROUNTER} --- p1-setup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p1-setup.sh b/p1-setup.sh index b1b0d50..396d7f9 100644 --- a/p1-setup.sh +++ b/p1-setup.sh @@ -99,24 +99,24 @@ interface ${INTERFACE_ETH0:?} slaac private static ip_address=${IP_ETH0:?}/24 static ip6_address=fd80::${IP_ETH0:?}/120 - static routers=${IP_ETH0_ROUTER:?} - static domain_name_servers=${IP_ETH0_ROUTER:?} 1.1.1.1 2606:4700:4700::1111 + static routers=${IP_ETH0_ROUTER} + static domain_name_servers=${IP_ETH0_ROUTER} 1.1.1.1 2606:4700:4700::1111 ######################################## interface ${INTERFACE_ETH1:?} slaac private static ip_address=${IP_ETH1:?}/24 static ip6_address=fd80::${IP_ETH1:?}/120 - static routers=${IP_ETH1_ROUTER:?} - static domain_name_servers=${IP_ETH1_ROUTER:?} + static routers=${IP_ETH1_ROUTER} + static domain_name_servers=${IP_ETH1_ROUTER} ######################################## interface ${INTERFACE_WLAN0:?} slaac private static ip_address=${IP_WLAN0:?}/24 static ip6_address=fd80::${IP_WLAN0:?}/120 - static routers=${IP_WLAN0_ROUTER:?} - static domain_name_servers=${IP_WLAN0_ROUTER:?} + static routers=${IP_WLAN0_ROUTER} + static domain_name_servers=${IP_WLAN0_ROUTER} EOF sudo systemctl daemon-reload; sudo systemctl restart dhcpcd.service; From cdf747d938ee87fb3126a89a1811ef3320d5b4b1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Feb 2021 01:08:11 +0100 Subject: [PATCH 397/694] typo --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 7e90c55..02537a4 100644 --- a/run.sh +++ b/run.sh @@ -59,11 +59,11 @@ esac echo "Available actions:" echo echo "'install'" -echo " This will run script 'p2-install.sh'" +echo " This will run script 'p0-install.sh'" echo " to install required packages" echo echo "'setup'" -echo " This will run script 'p2-setup.sh'" +echo " This will run script 'p1-setup.sh'" echo " to setup / configure services" echo echo "'update'" From b457778dcb654fa759d18d0ca51505d71871c17e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Feb 2021 08:28:37 +0100 Subject: [PATCH 398/694] removed reboot message from p2-update.sh --- p1-setup.sh | 2 +- p2-update.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/p1-setup.sh b/p1-setup.sh index 396d7f9..9febca7 100644 --- a/p1-setup.sh +++ b/p1-setup.sh @@ -568,4 +568,4 @@ handle_chrony; ######################################################################## #sync #echo -e "\e[32mDone.\e[0m"; -#echo -e "\e[1;31mPlease reboot\e[0m"; +echo -e "\e[1;31mPlease reboot\e[0m"; diff --git a/p2-update.sh b/p2-update.sh index b3ad1e6..e50a682 100644 --- a/p2-update.sh +++ b/p2-update.sh @@ -655,11 +655,11 @@ handle_zip_img() { sudo rm -f "${DST_IMG:?}/${FILE_URL:?}"; fi - if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]]; then - local OFFSET_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $4}' | sed 's/,//'))) - local SIZE_BOOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\1 | awk '{print $6}' | sed 's/,//'))) - local OFFSET_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $4}' | sed 's/,//'))) - local SIZE_ROOT=$((512*$(sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" | grep "${DST_IMG:?}/${FILE_IMG:?}"\2 | awk '{print $6}' | sed 's/,//'))) + if [[ -s "${DST_IMG:?}/${FILE_IMG:?}" ]] && [[ $(sfdisk -d ${DST_IMG:?}/${FILE_IMG:?}) ]]; then + local OFFSET_BOOT=$((512*$(sfdisk -d ${DST_IMG:?}/${FILE_IMG:?} | grep ${DST_IMG:?}/${FILE_IMG:?}\1 | awk '{print $4}' | sed 's/,//'))) + local SIZE_BOOT=$((512*$(sfdisk -d ${DST_IMG:?}/${FILE_IMG:?} | grep ${DST_IMG:?}/${FILE_IMG:?}\1 | awk '{print $6}' | sed 's/,//'))) + local OFFSET_ROOT=$((512*$(sfdisk -d ${DST_IMG:?}/${FILE_IMG:?} | grep ${DST_IMG:?}/${FILE_IMG:?}\2 | awk '{print $4}' | sed 's/,//'))) + local SIZE_ROOT=$((512*$(sfdisk -d ${DST_IMG:?}/${FILE_IMG:?} | grep ${DST_IMG:?}/${FILE_IMG:?}\2 | awk '{print $6}' | sed 's/,//'))) #sfdisk -d "${DST_IMG:?}/${FILE_IMG:?}" sudo sed /etc/fstab -i -e "/${NAME_BOOT:?}/d" @@ -1469,4 +1469,4 @@ fi ######################################################################## sync echo -e "\e[32mDone.\e[0m"; -echo -e "\e[1;31mPlease reboot\e[0m"; +#echo -e "\e[1;31mPlease reboot\e[0m"; From c65dfb0629c78798e66c8ac04fc44b72c1c39c24 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Feb 2021 21:12:30 +0100 Subject: [PATCH 399/694] removed extension .sh from all scripts excelt of run.sh --- README.md | 14 +++++++------- c2-custom-handle.sh => c2-custom-handle | 2 +- c2-custom-menu.sh => c2-custom-menu | 2 +- c2-custom-url.sh => c2-custom-url | 2 +- c2-custom-var.sh => c2-custom-var | 2 +- p0-install.sh => p0-install | 0 p1-setup.sh => p1-setup | 6 +++--- p2-include-handle.sh => p2-include-handle | 0 p2-include-menu.sh => p2-include-menu | 0 p2-include-url.sh => p2-include-url | 2 +- p2-include-var.sh => p2-include-var | 0 p2-update.sh => p2-update | 18 +++++++++--------- run.sh | 8 ++++---- 13 files changed, 28 insertions(+), 28 deletions(-) rename c2-custom-handle.sh => c2-custom-handle (97%) rename c2-custom-menu.sh => c2-custom-menu (94%) rename c2-custom-url.sh => c2-custom-url (94%) rename c2-custom-var.sh => c2-custom-var (96%) rename p0-install.sh => p0-install (100%) rename p1-setup.sh => p1-setup (99%) rename p2-include-handle.sh => p2-include-handle (100%) rename p2-include-menu.sh => p2-include-menu (100%) rename p2-include-url.sh => p2-include-url (99%) rename p2-include-var.sh => p2-include-var (100%) rename p2-update.sh => p2-update (99%) diff --git a/README.md b/README.md index 76e43c2..a480937 100644 --- a/README.md +++ b/README.md @@ -91,16 +91,16 @@ replace **** with the path, where you mounted your USB stick. done. ## update: -to update your images, update the url in the **p2-include-url.sh** and **c2-custom-url.sh** file
+to update your images, update the url in the **p2-include-url** and **c2-custom-url** file
and re-run `bash run.sh`. this will download all updated iso files and menu entries. ## modifying the script: -### p2-include-var.sh / c2-custom-var.sh +### p2-include-var / c2-custom-var includes all important variables like source and destination directories, ip-addresses, and so on. e.g.: by changing '**DST_ROOT=/srv**' you can tell the script to download and store all iso to an external storage, instead of storing to the internal SD card. -### p2-include-url.sh / c2-custom-url.sh +### p2-include-url / c2-custom-url includes all url and name of images ``` e.g. @@ -108,7 +108,7 @@ DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://... ``` -### p2-include-menu.sh / c2-custom-menu.sh +### p2-include-menu / c2-custom-menu includes all pxe-menu entries and kernel parameters in the script, for each image there is a pxe-menu entry enclosed by
`#========== BEGIN ==========`
@@ -116,7 +116,7 @@ and
`#=========== END ===========`
comments. -### p2-include-handle.sh / c2-custom-handle.sh +### p2-include-handle / c2-custom-handle includes all handler to control what image to download and expose to the pxe-server
if you don't want some iso images getting downloaded and mounted, you can disable images from handling '#'.
or '-' to uninstall the previous downloaded image and undo all mounting stuff for that image to free disk space.
@@ -255,7 +255,7 @@ and another issue is, overlayfs can't handle **vfat** partitions as source (lowe some of the PXE-menu entries has additional parameters, that lets the Live systems boot with German language (keyboard layout). if you don't like or want, remove those additional parameters just behind the ' --' in the menu entries -to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var.sh** script or use **c2-custom-var.sh** to override those variables with your values. +to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var** script or use **c2-custom-var** to override those variables with your values. ``` CUSTOM_COUNTRY=DE CUSTOM_KEYMAP=de-latin1-nodeadkeys @@ -274,7 +274,7 @@ but tested with an other computer it wont work - it depends on the UEFI firmware ## note4: NETWORK BOOTING for Raspberry Pi 3 client the server is prepared for to boot a Raspberry Pi 3 client via network. -in the script ```p2-include-var.sh```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
+in the script ```p2-include-var```, there is a ```RPI_SN0=--------``` line, change the ```--------``` to the serial number of the RPi3-**client**, that will boot from network later on.
skip the leading '00000000'. take only the last 8 digits!
e.g. ``` diff --git a/c2-custom-handle.sh b/c2-custom-handle similarity index 97% rename from c2-custom-handle.sh rename to c2-custom-handle index 9ff7d4e..aae43af 100644 --- a/c2-custom-handle.sh +++ b/c2-custom-handle @@ -18,7 +18,7 @@ fi # handle_item '+' iso CUSTOM_ENTRY2; # # Ensure your CUSTOM_ENTRY name is unique -# and the same name as in c2-custom-url.sh and c2-custom-menu.sh +# and the same name as in c2-custom-url and c2-custom-menu ######################################################################## diff --git a/c2-custom-menu.sh b/c2-custom-menu similarity index 94% rename from c2-custom-menu.sh rename to c2-custom-menu index 4a027e4..0e7b35a 100644 --- a/c2-custom-menu.sh +++ b/c2-custom-menu @@ -25,7 +25,7 @@ fi # LABEL $CUSTOM_ENTRY # This is best to use your $CUSTOM_ENTRY name, but can be any unique name with no whitespace # MENU LABEL My Customized Linux x64 # This can be anything. This is what will be displayed on the Menu # KERNEL $FILE_BASE$NFS_ETH0/$CUSTOM_ENTRY/live/vmlinuz-5.7.7 # This entry and entries below are what loads the OS. You'll have to determine these yourself -# INITRD $FILE_BASE$NFS_ETH0/$CUSTOM_ENTRY/live/initrd-5.7.7.lz # Look at other entries in the main p2-include-menu.sh for a similar distro and try those/similar settings +# INITRD $FILE_BASE$NFS_ETH0/$CUSTOM_ENTRY/live/initrd-5.7.7.lz # Look at other entries in the main p2-include-menu for a similar distro and try those/similar settings # APPEND nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CUSTOM_ENTRY ro netboot=nfs ip=dhcp boot=live union=overlay livecd-installer console=tty splash -- # TEXT HELP # Boot into My Custom Linux version x64 # This can be anything. This is what will be displayed when the menu entry is selected diff --git a/c2-custom-url.sh b/c2-custom-url similarity index 94% rename from c2-custom-url.sh rename to c2-custom-url index 4b0ca45..2cf49e5 100644 --- a/c2-custom-url.sh +++ b/c2-custom-url @@ -31,4 +31,4 @@ fi # ..._SUM_TYPE= Optional. Hash function used to calculate the hash value of the image file # # Ensure your CUSTOM_ENTRY name is unique -# and the same name as in c2-custom-handle.sh and c2-custom-menu.sh +# and the same name as in c2-custom-handle and c2-custom-menu diff --git a/c2-custom-var.sh b/c2-custom-var similarity index 96% rename from c2-custom-var.sh rename to c2-custom-var index 2e8993e..cd6bb38 100644 --- a/c2-custom-var.sh +++ b/c2-custom-var @@ -24,6 +24,6 @@ fi # CUSTOM_TIMEZONE=Europe/Berlin # CUSTOM_VARIANT=German # -# Or add additional variables you want to use in your other custom files e.g.: c2-custom-menu.sh +# Or add additional variables you want to use in your other custom files e.g.: c2-custom-menu # Example: # MY_CUSTOM_VARIABLE=my custom value diff --git a/p0-install.sh b/p0-install similarity index 100% rename from p0-install.sh rename to p0-install diff --git a/p1-setup.sh b/p1-setup similarity index 99% rename from p1-setup.sh rename to p1-setup index 9febca7..8d23345 100644 --- a/p1-setup.sh +++ b/p1-setup @@ -25,8 +25,8 @@ echo -e "\e[36msetup variables\e[0m"; ######################################################################## ######################################################################## -. "${script_dir:?}/p2-include-var.sh" -. "${script_dir:?}/c2-custom-var.sh" +. "${script_dir:?}/p2-include-var" +. "${script_dir:?}/c2-custom-var" echo @@ -562,7 +562,7 @@ handle_chrony; ######################################################################## -. "${script_dir:?}/p2-update.sh" +. "${script_dir:?}/p2-update" ######################################################################## diff --git a/p2-include-handle.sh b/p2-include-handle similarity index 100% rename from p2-include-handle.sh rename to p2-include-handle diff --git a/p2-include-menu.sh b/p2-include-menu similarity index 100% rename from p2-include-menu.sh rename to p2-include-menu diff --git a/p2-include-url.sh b/p2-include-url similarity index 99% rename from p2-include-url.sh rename to p2-include-url index 03b8daa..10368fa 100644 --- a/p2-include-url.sh +++ b/p2-include-url @@ -13,7 +13,7 @@ fi # v 2021-01-31 # check for broken url -# for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url.sh | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install diff --git a/p2-include-var.sh b/p2-include-var similarity index 100% rename from p2-include-var.sh rename to p2-include-var diff --git a/p2-update.sh b/p2-update similarity index 99% rename from p2-update.sh rename to p2-update index e50a682..b16bee5 100644 --- a/p2-update.sh +++ b/p2-update @@ -24,14 +24,14 @@ echo -e "\e[36msetup variables\e[0m"; ######################################################################## ######################################################################## -. "${script_dir:?}/p2-include-var.sh" -. "${script_dir:?}/c2-custom-var.sh" +. "${script_dir:?}/p2-include-var" +. "${script_dir:?}/c2-custom-var" ######################################################################## ######################################################################## -. "${script_dir:?}/p2-include-url.sh" -. "${script_dir:?}/c2-custom-url.sh" +. "${script_dir:?}/p2-include-url" +. "${script_dir:?}/c2-custom-url" echo @@ -882,7 +882,7 @@ handle_ipxe() { fi sudo touch "${FILE_MENU:?}" - . "${script_dir:?}/p2-include-menu.sh" ipxe + . "${script_dir:?}/p2-include-menu" ipxe } @@ -948,8 +948,8 @@ EOF #################################################################### #################################################################### - . "${script_dir:?}/p2-include-menu.sh" - . "${script_dir:?}/c2-custom-menu.sh" + . "${script_dir:?}/p2-include-menu" + . "${script_dir:?}/c2-custom-menu" } @@ -1447,8 +1447,8 @@ fi ######################################################################## ######################################################################## -. "${script_dir:?}/p2-include-handle.sh" -. "${script_dir:?}/c2-custom-handle.sh" +. "${script_dir:?}/p2-include-handle" +. "${script_dir:?}/c2-custom-handle" ######################################################################## diff --git a/run.sh b/run.sh index 02537a4..569df5a 100644 --- a/run.sh +++ b/run.sh @@ -59,15 +59,15 @@ esac echo "Available actions:" echo echo "'install'" -echo " This will run script 'p0-install.sh'" +echo " This will run script 'p0-install'" echo " to install required packages" echo echo "'setup'" -echo " This will run script 'p1-setup.sh'" +echo " This will run script 'p1-setup'" echo " to setup / configure services" echo echo "'update'" -echo " This will run script 'p2-update.sh'" +echo " This will run script 'p2-update'" echo " to download and mount images" echo " or unmount and remove images" echo " and update menue items" @@ -85,7 +85,7 @@ esac ######################################################################## -. "${script_dir:?}/${PASS:?}-${RUN:?}.sh" +. "${script_dir:?}/${PASS:?}-${RUN:?}" ######################################################################## From 2612e019288ee8ea713bafa463cd9a1ac7d3a0ab Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Feb 2021 23:26:31 +0100 Subject: [PATCH 400/694] add chainload iPXE from PXE-Linux - fixed dhcp-option for ipv6 --- p1-setup | 6 +++--- p2-include-menu | 38 ++++++++++++++++++++++++++++++++++++-- p2-update | 32 +++++++++++++++++++------------- 3 files changed, 58 insertions(+), 18 deletions(-) diff --git a/p1-setup b/p1-setup index 8d23345..0db2ad8 100644 --- a/p1-setup +++ b/p1-setup @@ -287,9 +287,9 @@ tag-if=set:ipxe_feature_rich, tag:iPXE,tag:ipxe.priority,tag:ipxe.bus-id,tag:ipx dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, menu-ipxe/menu.ipxe dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, menu-ipxe/undionly.kpxe dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, menu-ipxe/ipxe.efi -dhcp-boot=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/menu.ipxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/undionly.kpxe -dhcp-boot=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/ipxe.efi +dhcp-option=tag:iPXE,tag:ipxe_feature_rich, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/menu.ipxe +dhcp-option=tag:iPXE,tag:!ipxe_feature_rich,tag:x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/undionly.kpxe +dhcp-option=tag:iPXE,tag:!ipxe_feature_rich,tag:!x86_BIOS, option6:bootfile-url, tftp://[fd80::${IP_ETH0:?}]/menu-ipxe/ipxe.efi dhcp-boot=tag:!iPXE,tag:x86_BIOS, ${DST_PXE_BIOS:?}/lpxelinux.0 dhcp-boot=tag:!iPXE,tag:x86_UEFI, ${DST_PXE_EFI32:?}/bootia32.efi diff --git a/p2-include-menu b/p2-include-menu index ec15416..241e2d3 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -1118,6 +1118,40 @@ fi #========== END ========== + + + +######################################################################## +#broken# + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]]; then + if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then + echo -e "\e[36m add chainload-ipxe-bios\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL chainload-ipxe-bios + MENU LABEL iPXE-Menu -> + PXE ::/menu-ipxe/undionly.kpxe + TEXT HELP + Boot to iPXE (via chainload) + ENDTEXT +EOF + else + echo -e "\e[36m add chainload-ipxe-efi\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL chainload-ipxe-efi + MENU LABEL iPXE-Menu -> + PXE ::/menu-ipxe/ipxe.efi + TEXT HELP + Boot to iPXE (via chainload) + ENDTEXT +EOF + fi +fi +#=========== END ======== + else @@ -1221,7 +1255,7 @@ item windows-wim-x86 Boot Windows PE x86 (WIM via http) item --gap -- ------------------------- Broken systems ---------------------------------- item tails-x64 Boot Tails x64 item --gap -- ------------------------- Tools and utilities ---------------------------- -item --key p pxelinux Boot PXE Linux +item --key p pxelinux Boot PXE-Linux -> item --gap -- ------------------------- Advanced options ------------------------------- item --key c config Configure settings item shell Drop to iPXE shell @@ -1564,7 +1598,7 @@ goto start :pxelinux set 209:string /pxelinux.cfg/default set 210:string \${pxe_menu} -imgselect \${210:string}/lpxelinux.0 || goto failed +imgselect /\${210:string}/lpxelinux.0 || goto failed imgexec || goto failed goto start diff --git a/p2-update b/p2-update index b16bee5..b2a587b 100644 --- a/p2-update +++ b/p2-update @@ -890,8 +890,10 @@ handle_ipxe() { handle_pxe_menu() { # $1 : menu short name # $2 : menu file name + local MENU_PXE="${1}" + local FILE_NAME="${2}" #################################################################### - local FILE_MENU="${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg/${2:?}" + local FILE_MENU="${DST_TFTP_ETH0:?}/${MENU_PXE:?}/pxelinux.cfg/${FILE_NAME:?}" local FILE_BASE="http://${IP_ETH0:?}/srv" #################################################################### ## INFO: @@ -906,17 +908,18 @@ handle_pxe_menu() { ## https://manpages.debian.org/stretch/live-config-doc/live-config.7.en.html ## http://manpages.ubuntu.com/manpages/precise/man7/live-config.7.html #################################################################### - echo -e "\e[32mhandle_pxe_menu(\e[0m${1:?}\e[32m)\e[0m"; + echo -e "\e[32mhandle_pxe_menu(\e[0m${MENU_PXE:?}\e[32m)\e[0m"; echo -e "\e[36m setup sys menu for pxe\e[0m"; - if ! [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg"; fi - if [[ -d "${DST_TFTP_ETH0:?}/${1:?}/pxelinux.cfg" ]]; then + if ! [[ -d "${DST_TFTP_ETH0:?}/${MENU_PXE:?}/pxelinux.cfg" ]]; then sudo mkdir -p "${DST_TFTP_ETH0:?}/${MENU_PXE:?}/pxelinux.cfg"; fi + if [[ -d "${DST_TFTP_ETH0:?}/${MENU_PXE:?}/pxelinux.cfg" ]]; then cat << EOF | sudo tee "${FILE_MENU:?}" &>/dev/null ######################################## # ${FILE_MENU:?} # http://www.syslinux.org/wiki/index.php?title=Menu -DEFAULT vesamenu.c32 +DEFAULT menu.c32 +#DEFAULT vesamenu.c32 #TIMEOUT 600 #ONTIMEOUT localboot PROMPT 0 @@ -924,7 +927,7 @@ NOESCAPE 1 ALLOWOPTIONS 1 menu color title * #FFFFFFFF * -menu title PXE Boot Menu (${1:?}) +menu title PXE-Linux Boot Menu (${MENU_PXE:?}) menu rows 20 menu tabmsgrow 24 menu tabmsg [Enter]=boot, [Tab]=edit, [Esc]=return @@ -972,14 +975,15 @@ handle_pxe() { [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/lpxelinux.0" ]] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/ldlinux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/menu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/menu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/memdisk" ]] || sudo ln -s /usr/lib/syslinux/memdisk "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" ]] || ( \ @@ -993,13 +997,14 @@ handle_pxe() { [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/ldlinux.e32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/menu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/menu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/wimboot" ]] || ( \ @@ -1011,15 +1016,16 @@ handle_pxe() { #################################################################### echo -e "\e[36m setup sys menu files for pxe efi64\e[0m"; [[ -d "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}" ]] || sudo mkdir -p "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/ldlinux.e64" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/menu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/menu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/wimboot" ]] || (\ From 52d2ac26b2a3a38ed16ef411feb17b7c5aff6838 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Feb 2021 13:08:49 +0100 Subject: [PATCH 401/694] menu cosmetic --- p2-include-menu | 1069 ++++++++++++++++++++++++++--------------------- p2-update | 66 ++- 2 files changed, 633 insertions(+), 502 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 241e2d3..13e9dd3 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -15,6 +15,19 @@ then ######################################################################## ## lpxelinux + + + +######################################################################## +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Live operating systems ---\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Live operating systems ------------------------------ + MENU DISABLE +EOF +fi + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$ARCH_NETBOOT_X64/kernel" ]]; then @@ -34,64 +47,6 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]]; then - echo -e "\e[36m add $BLACKARCH_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $BLACKARCH_X64 - MENU LABEL BlackArch x64 - KERNEL $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux - INITRD $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/intel-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/amd-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/initramfs-linux.img - APPEND ip=dhcp ro archisobasedir=blackarch archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$BLACKARCH_X64 copytoram=n - #SYSAPPEND 3 - TEXT HELP - Boot to BlackArch Linux full medium (x86_64, UEFI) - User: root, Password: blackarch - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]]; then - echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $CLONEZILLA_X64 - MENU LABEL Clonezilla x64 - KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Clonezilla x64 - User: user, Password: live - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]]; then - echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $CLONEZILLA_X86 - MENU LABEL Clonezilla x86 - KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Clonezilla x86 - User: user, Password: live - ENDTEXT -EOF -fi -#=========== END =========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]]; then @@ -149,44 +104,6 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $DEFT_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $DEFT_X64 - MENU LABEL DEFT x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to DEFT x64 Live - User: root, Password: toor - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $DEFTZ_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $DEFTZ_X64 - MENU LABEL DEFT Zero x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to DEFT Zero x64 Live - User: root, Password: toor - ENDTEXT -EOF -fi -#=========== END =========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]]; then @@ -225,43 +142,6 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $DRAGONOS_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $DRAGONOS_X64 - MENU LABEL DragonOS x64 - KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to DragonOS x64 Live - User: live - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]]; then - echo -e "\e[36m add $ESET_SYSRESCUE_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $ESET_SYSRESCUE_X86 - MENU LABEL ESET SysRescue Live - KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to ESET SysRescue Live - ENDTEXT -EOF -fi -#=========== END =========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]]; then @@ -284,92 +164,6 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]]; then - echo -e "\e[36m add $GNURADIO_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $GNURADIO_X64 - MENU LABEL GNU Radio x64 - KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi - INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to GNU Radio x64 Live - User: ubuntu - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]]; then - echo -e "\e[36m add $KALI_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $KALI_X64 - MENU LABEL Kali x64 - KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE - TEXT HELP - Boot to Kali x64 Live - User: kali, Password: kali - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]]; then - echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $KASPERSKY_RESCUE_X86 - MENU LABEL Kaspersky Rescue Disk - KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 - INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz - APPEND ip=dhcp netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us - TEXT HELP - Boot to Kaspersky Rescue Disk - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]]; then - if ! [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then - echo -e "\e[36m download patch for $KNOPPIX_X86\e[0m"; - sudo wget --quiet -O $DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/$KNOPPIX_X86-miniroot-8.6.1.gz - fi - if [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then - echo -e "\e[36m add $KNOPPIX_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 - ## $ knoppix-terminalserver - ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz - LABEL $KNOPPIX_X86 - MENU LABEL Knoppix x86 - KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz - APPEND ip=dhcp nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de - TEXT HELP - Boot to Knoppix x86 Live - ENDTEXT -EOF - else - echo -e "\e[1;31m failed $KNOPPIX_X86,\e[0m" - echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/27\e[0m"; - fi -fi -#========== END ========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]]; then @@ -484,25 +278,6 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]]; then - echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $OPENSUSE_RESCUE_X64 - MENU LABEL openSUSE Leap Rescue x64 - KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux - INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd - APPEND ip=dhcp root=live:AOEINTERFACE=e0.1 rd.kiwi.live.pxe -- - TEXT HELP - Boot to openSUSE Leap Rescue Live - User: liveuser - ENDTEXT -EOF -fi -#=========== END =========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]]; then @@ -524,15 +299,263 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]]; then - echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then + echo -e "\e[36m add $TINYCORE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $PARROT_FULL_X64 - MENU LABEL Parrot Full x64 - KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE pkeys=$CUSTOM_KMAP setxkbmap=$CUSTOM_KMAP utc=no timezone=$CUSTOM_TIMEZONE + # INFO: http://wiki.tinycorelinux.net/wiki:boot_options + LABEL $TINYCORE_X64 + MENU LABEL tiny core x64 + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz + APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 tz=Europe/Berlin noswap norestore settime showapps pause + TEXT HELP + Boot to tiny core x64 + User: tc + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then + echo -e "\e[36m add $TINYCORE_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + # INFO: http://wiki.tinycorelinux.net/wiki:boot_options + LABEL $TINYCORE_X64 (ISO) + MENU LABEL tiny core x64 (ISO) + KERNEL memdisk + APPEND iso + INITRD $FILE_BASE$ISO/$TINYCORE_X64.iso + TEXT HELP + Boot to tiny core x64 + User: tc + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]]; then + echo -e "\e[36m add $TINYCORE_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + # INFO: http://wiki.tinycorelinux.net/wiki:boot_options + LABEL $TINYCORE_X86 + MENU LABEL tiny core x86 + KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz + APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + TEXT HELP + Boot to tiny core x86 + User: tc + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $UBUNTU_DAILY_X64 + MENU LABEL Ubuntu x64 Daily-Live + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Ubuntu x64 Daily-Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $UBUNTU_LTS_X64 + MENU LABEL Ubuntu LTS x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Ubuntu LTS x64 Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]]; then + echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $UBUNTU_LTS_X86 + MENU LABEL Ubuntu LTS x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Ubuntu LTS x86 Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $UBUNTU_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $UBUNTU_X64 + MENU LABEL Ubuntu x64 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Ubuntu x64 Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]]; then + echo -e "\e[36m add $UBUNTU_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $UBUNTU_X86 + MENU LABEL Ubuntu x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Ubuntu x86 Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + + + + +######################################################################## +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Pentesting systems -------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Pentesting systems ---------------------------------- + MENU DISABLE +EOF +fi + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]]; then + echo -e "\e[36m add $BLACKARCH_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $BLACKARCH_X64 + MENU LABEL BlackArch x64 + KERNEL $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux + INITRD $FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/intel-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/amd-ucode.img,$FILE_BASE$NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/initramfs-linux.img + APPEND ip=dhcp ro archisobasedir=blackarch archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$BLACKARCH_X64 copytoram=n + #SYSAPPEND 3 + TEXT HELP + Boot to BlackArch Linux full medium (x86_64, UEFI) + User: root, Password: blackarch + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $DEFT_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $DEFT_X64 + MENU LABEL DEFT x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to DEFT x64 Live + User: root, Password: toor + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $DEFTZ_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $DEFTZ_X64 + MENU LABEL DEFT Zero x64 + KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to DEFT Zero x64 Live + User: root, Password: toor + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]]; then + echo -e "\e[36m add $KALI_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $KALI_X64 + MENU LABEL Kali x64 + KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Kali x64 Live + User: kali, Password: kali + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]]; then + echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $PARROT_FULL_X64 + MENU LABEL Parrot Full x64 + KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE pkeys=$CUSTOM_KMAP setxkbmap=$CUSTOM_KMAP utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live @@ -598,20 +621,33 @@ EOF fi #=========== END =========== + + + +######################################################################## +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Virus scanner systems ----\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Virus scanner systems ------------------------------- + MENU DISABLE +EOF +fi + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]]; then - echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]]; then + echo -e "\e[36m add $DESINFECT_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $RPDESKTOP_X86 - MENU LABEL Raspberry Pi Desktop - KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 - INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + LABEL $DESINFECT_X86 + MENU LABEL desinfect x86 + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP - Boot to Raspberry Pi Desktop - User: pi, Password: raspberry + Boot to ct desinfect x86 + User: desinfect ENDTEXT EOF fi @@ -619,20 +655,18 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz" ]]; then - echo -e "\e[36m add $SYSTEMRESCUE_X64\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $DESINFECT_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $SYSTEMRESCUE_X64 - MENU LABEL System Rescue x64 - KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/intel_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/amd_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/sysresccd.img - #APPEND archisobasedir=sysresccd archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X64 - APPEND ip=dhcp archisobasedir=sysresccd archiso_http_srv=$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/ - #SYSAPPEND 3 + LABEL $DESINFECT_X64 + MENU LABEL desinfect x64 + KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP - Boot to System Rescue x64 Live - User: root + Boot to ct desinfect x64 + User: desinfect ENDTEXT EOF fi @@ -640,53 +674,67 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then - if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then - #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; - #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz - : - fi - if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then - echo -e "\e[36m add $TAILS_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +&& [[ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]]; then + echo -e "\e[36m add $ESET_SYSRESCUE_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - ## see: - ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + LABEL $ESET_SYSRESCUE_X86 + MENU LABEL ESET SysRescue Live + KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to ESET SysRescue Live + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]]; then + echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $TAILS_X64 - MENU LABEL Tails x64 - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC -- keyboard-layouts=$CUSTOM_LAYOUTCODE + LABEL $KASPERSKY_RESCUE_X86 + MENU LABEL Kaspersky Rescue Disk + KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 + INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz + APPEND ip=dhcp netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us TEXT HELP - Boot to Tails x64 Live + Boot to Kaspersky Rescue Disk ENDTEXT EOF - else - echo -e "\e[1;31m failed $TAILS_X64,\e[0m" - echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31\e[0m"; - fi fi -#========== END ========== +#=========== END =========== + + + + +######################################################################## +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Other systems ------------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Other systems --------------------------------------- + MENU DISABLE +EOF +fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then - echo -e "\e[36m add $TINYCORE_X64\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]]; then + echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - # INFO: http://wiki.tinycorelinux.net/wiki:boot_options - LABEL $TINYCORE_X64 - MENU LABEL tiny core x64 - KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 - INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz - APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 tz=Europe/Berlin noswap norestore settime showapps pause + LABEL $CLONEZILLA_X64 + MENU LABEL Clonezilla x64 + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP - Boot to tiny core x64 - User: tc + Boot to Clonezilla x64 + User: user, Password: live ENDTEXT EOF fi @@ -694,19 +742,18 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then - echo -e "\e[36m add $TINYCORE_X64\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]]; then + echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - # INFO: http://wiki.tinycorelinux.net/wiki:boot_options - LABEL $TINYCORE_X64 (ISO) - MENU LABEL tiny core x64 (ISO) - KERNEL memdisk - APPEND iso - INITRD $FILE_BASE$ISO/$TINYCORE_X64.iso + LABEL $CLONEZILLA_X86 + MENU LABEL Clonezilla x86 + KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP - Boot to tiny core x64 - User: tc + Boot to Clonezilla x86 + User: user, Password: live ENDTEXT EOF fi @@ -714,20 +761,105 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]]; then - echo -e "\e[36m add $TINYCORE_X86\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $DRAGONOS_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - # INFO: http://wiki.tinycorelinux.net/wiki:boot_options - LABEL $TINYCORE_X86 - MENU LABEL tiny core x86 - KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz - APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + LABEL $DRAGONOS_X64 + MENU LABEL DragonOS x64 + KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to DragonOS x64 Live + User: live + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]]; then + echo -e "\e[36m add $GNURADIO_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $GNURADIO_X64 + MENU LABEL GNU Radio x64 + KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi + INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to GNU Radio x64 Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then + echo -e "\e[36m download patch for $KNOPPIX_X86\e[0m"; + sudo wget --quiet -O $DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/$KNOPPIX_X86-miniroot-8.6.1.gz + fi + if [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then + echo -e "\e[36m add $KNOPPIX_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + ## INFO: https://github.com/beta-tester/RPi-PXE-Server/issues/27 + ## $ knoppix-terminalserver + ## $ cp /tmp/tftproot/miniroot.gz /srv/nfs/knoppix-x86-miniroot.gz + LABEL $KNOPPIX_X86 + MENU LABEL Knoppix x86 + KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux + INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz + APPEND ip=dhcp nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de + TEXT HELP + Boot to Knoppix x86 Live + ENDTEXT +EOF + else + echo -e "\e[1;31m failed $KNOPPIX_X86,\e[0m" + echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/27\e[0m"; + fi +fi +#========== END ========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux" ]]; then + echo -e "\e[36m add $OPENSUSE_RESCUE_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $OPENSUSE_RESCUE_X64 + MENU LABEL openSUSE Leap Rescue x64 + KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_RESCUE_X64/boot/x86_64/loader/initrd + APPEND ip=dhcp root=live:AOEINTERFACE=e0.1 rd.kiwi.live.pxe -- + TEXT HELP + Boot to openSUSE Leap Rescue Live + User: liveuser + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]]; then + echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $RPDESKTOP_X86 + MENU LABEL Raspberry Pi Desktop + KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 + INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP - Boot to tiny core x86 - User: tc + Boot to Raspberry Pi Desktop + User: pi, Password: raspberry ENDTEXT EOF fi @@ -735,18 +867,20 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; +&& [[ -f "$DST_NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz" ]]; then + echo -e "\e[36m add $SYSTEMRESCUE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - LABEL $UBUNTU_DAILY_X64 - MENU LABEL Ubuntu x64 Daily-Live - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + LABEL $SYSTEMRESCUE_X64 + MENU LABEL System Rescue x64 + KERNEL $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/intel_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/amd_ucode.img,$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/sysresccd/boot/x86_64/sysresccd.img + #APPEND archisobasedir=sysresccd archiso_nfs_srv=$IP_ETH0:$DST_NFS_ETH0/$SYSTEMRESCUE_X64 + APPEND ip=dhcp archisobasedir=sysresccd archiso_http_srv=$FILE_BASE$NFS_ETH0/$SYSTEMRESCUE_X64/ + #SYSAPPEND 3 TEXT HELP - Boot to Ubuntu x64 Daily-Live - User: ubuntu + Boot to System Rescue x64 Live + User: root ENDTEXT EOF fi @@ -774,44 +908,6 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $UBUNTU_LTS_X64 - MENU LABEL Ubuntu LTS x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to Ubuntu LTS x64 Live - User: ubuntu - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]]; then - echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $UBUNTU_LTS_X86 - MENU LABEL Ubuntu LTS x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to Ubuntu LTS x86 Live - User: ubuntu - ENDTEXT -EOF -fi -#=========== END =========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]]; then @@ -850,105 +946,18 @@ EOF fi #=========== END =========== -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $UBUNTU_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $UBUNTU_X64 - MENU LABEL Ubuntu x64 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to Ubuntu x64 Live - User: ubuntu - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]]; then - echo -e "\e[36m add $UBUNTU_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $UBUNTU_X86 - MENU LABEL Ubuntu x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to Ubuntu x86 Live - User: ubuntu - ENDTEXT -EOF -fi -#=========== END =========== ######################################################################## -#custom# - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]]; then - echo -e "\e[36m add $DESINFECT_X86\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $DESINFECT_X86 - MENU LABEL desinfect x86 - KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to ct desinfect x86 - User: desinfect - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]]; then - echo -e "\e[36m add $DESINFECT_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $DESINFECT_X64 - MENU LABEL desinfect x64 - KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to ct desinfect x64 - User: desinfect - ENDTEXT -EOF -fi -#=========== END =========== - -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]]; then - echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Windows systems ----------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - LABEL $UBUNTU_NONPAE - MENU LABEL Ubuntu non-PAE x86 - KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT - TEXT HELP - Boot to Ubuntu non-PAE x86 Live - User: ubuntu - ENDTEXT +LABEL - + MENU LABEL --- Windows systems ------------------------------------- + MENU DISABLE EOF fi -#=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ @@ -1057,7 +1066,46 @@ fi ######################################################################## -#broken# +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Broken systems -----------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Broken systems -------------------------------------- + MENU DISABLE +EOF +fi + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then + #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; + #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz + : + fi + if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then + echo -e "\e[36m add $TAILS_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + ## see: + ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + ######################################## + LABEL $TAILS_X64 + MENU LABEL Tails x64 + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC -- keyboard-layouts=$CUSTOM_LAYOUTCODE + TEXT HELP + Boot to Tails x64 Live + ENDTEXT +EOF + else + echo -e "\e[1;31m failed $TAILS_X64,\e[0m" + echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31\e[0m"; + fi +fi +#========== END ========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ @@ -1120,9 +1168,15 @@ fi - ######################################################################## -#broken# +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Tools and utilities ------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Tools and utilities --------------------------------- + MENU DISABLE +EOF +fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]]; then @@ -1142,8 +1196,11 @@ EOF cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL chainload-ipxe-efi + MENU HIDE + # not working under UEFI / SecureBoot MENU LABEL iPXE-Menu -> - PXE ::/menu-ipxe/ipxe.efi + #PXE ::/menu-ipxe/ipxe.efi + #KERNEL ::/menu-ipxe/ipxe.efi TEXT HELP Boot to iPXE (via chainload) ENDTEXT @@ -1152,6 +1209,88 @@ EOF fi #=========== END ======== + + + +######################################################################## +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Tools and utilities ------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +LABEL - + MENU LABEL --- Advanced options ------------------------------------ + MENU DISABLE +EOF +fi + +if [[ -f "$FILE_MENU" ]]; then + if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then + echo -e "\e[36m add section --- Advanced options ---------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +######################################## +LABEL reboot + MENU LABEL Reboot + COM32 reboot.c32 +######################################## +LABEL poweroff + MENU LABEL Power Off + COM32 poweroff.c32 + + +EOF + else + echo -e "\e[36m add section --- Advanced options ---------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +######################################## +LABEL reboot + MENU HIDE + # not working under UEFI / SecureBoot + MENU LABEL Reboot + COM32 reboot.c32 +######################################## +LABEL poweroff + MENU HIDE + # not working under UEFI / SecureBoot + MENU LABEL Power Off + COM32 poweroff.c32 + + +EOF + fi +fi + + + +######################################################################## +if [[ -f "$FILE_MENU" ]]; then + echo -e "\e[36m add section --- Custom systems -----------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null +######################################################################## +LABEL - + MENU LABEL --- Custom systems -------------------------------------- + MENU DISABLE +EOF +fi + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz" ]]; then + echo -e "\e[36m add $UBUNTU_NONPAE\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $UBUNTU_NONPAE + MENU LABEL Ubuntu non-PAE x86 + KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Ubuntu non-PAE x86 Live + User: ubuntu + ENDTEXT +EOF +fi +#=========== END =========== + +######################################################################## else @@ -1597,7 +1736,7 @@ goto start ### :pxelinux set 209:string /pxelinux.cfg/default -set 210:string \${pxe_menu} +set 210:string \${pxe_menu}/ imgselect /\${210:string}/lpxelinux.0 || goto failed imgexec || goto failed goto start diff --git a/p2-update b/p2-update index b2a587b..6bbd7ce 100644 --- a/p2-update +++ b/p2-update @@ -803,7 +803,7 @@ handle_item() { shift; shift; - + case "${ITEM_ACTION:?}" in '+') case "${ITEM_TYPE:?}" in @@ -873,9 +873,9 @@ handle_ipxe() { sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.efi" https://boot.ipxe.org/ipxe.efi; sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/undionly.kpxe" https://boot.ipxe.org/undionly.kpxe; - [[ -f "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" ]] || (\ - wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ - tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" &>/dev/null); + [[ -f "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" ]] || (\ + wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ + tar -xf /tmp/wimboot.tar.gz --wildcards *wimboot -O | sudo tee "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/wimboot" &>/dev/null); sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.pxe" https://boot.ipxe.org/ipxe.pxe; sudo wget --quiet -O "${DST_TFTP_ETH0:?}/${DST_IPXE:?}/ipxe.iso" https://boot.ipxe.org/ipxe.iso; @@ -918,33 +918,26 @@ handle_pxe_menu() { # http://www.syslinux.org/wiki/index.php?title=Menu -DEFAULT menu.c32 -#DEFAULT vesamenu.c32 -#TIMEOUT 600 -#ONTIMEOUT localboot +UI menu.c32 + PROMPT 0 NOESCAPE 1 -ALLOWOPTIONS 1 - -menu color title * #FFFFFFFF * -menu title PXE-Linux Boot Menu (${MENU_PXE:?}) -menu rows 20 -menu tabmsgrow 24 -menu tabmsg [Enter]=boot, [Tab]=edit, [Esc]=return -menu cmdlinerow 24 -menu timeoutrow 25 -menu color help 1;37;40 #FFFFFFFF * -menu helpmsgrow 26 -######################################## -LABEL reboot - MENU LABEL Reboot - COM32 reboot.c32 -######################################## -LABEL poweroff - MENU LABEL Power Off - COM32 poweroff.c32 +MENU CLEAR +MENU MARGIN 0 +MENU ROWS 17 +MENU TABMSGROW 21 + +MENU COLOR title 1;37;44 * * all +MENU COLOR border 22;36;44 * * std +MENU COLOR scrollbar 22;36;44 * * std +MENU COLOR disabled 22;36;44 * * std +MENU COLOR sel 1;37;41 * * all +MENU COLOR hotsel 1;37;41 * * all +MENU COLOR tabmsg 22;36;44 * * std +MENU TITLE PXE-Linux Boot Menu (${MENU_PXE:?}) +MENU TABMSG [Enter]=boot, [Tab]=edit, [Esc]=return EOF fi @@ -976,15 +969,15 @@ handle_pxe() { [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/lpxelinux.0" ]] || sudo ln -s /usr/lib/PXELINUX/lpxelinux.0 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/ldlinux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/ldlinux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/menu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/menu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/memdisk" ]] || sudo ln -s /usr/lib/syslinux/memdisk "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/nfs"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/iso"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/memdisk" ]] || sudo ln -s /usr/lib/syslinux/memdisk "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/linux.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/bios/linux.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/"; [[ -f "${DST_TFTP_ETH0:?}/${DST_PXE_BIOS:?}/wimboot" ]] || ( \ wget -O /tmp/wimboot.tar.gz https://git.ipxe.org/releases/wimboot/wimboot-latest.tar.gz; \ @@ -998,11 +991,11 @@ handle_pxe() { [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi32/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/bootia32.efi"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/ldlinux.e32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/ldlinux.e32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/menu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/menu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi32/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/nfs"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI32:?}/iso"; @@ -1019,11 +1012,10 @@ handle_pxe() { [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi" ]] || sudo ln -s /usr/lib/SYSLINUX.EFI/efi64/syslinux.efi "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/bootx64.efi"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/ldlinux.e64" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/ldlinux.e64 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/menu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/menu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/vesamenu.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/vesamenu.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libutil.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libutil.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/reboot.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/reboot.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; - [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/poweroff.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/poweroff.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/libcom32.c32" ]] || sudo ln -s /usr/lib/syslinux/modules/efi64/libcom32.c32 "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/"; + [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs" ]] || sudo ln -s "${DST_NFS_ETH0:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/nfs"; [[ -h "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso" ]] || sudo ln -s "${DST_ISO:?}/" "${DST_TFTP_ETH0:?}/${DST_PXE_EFI64:?}/iso"; From deed04ad8c73a6d996539efe33801b9879e07412 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 3 Feb 2021 10:55:53 +0100 Subject: [PATCH 402/694] removed language CUSTOM_... variables from p2-include-var --- p1-setup | 2 +- p2-include-menu | 10 +++++----- p2-include-var | 9 --------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/p1-setup b/p1-setup index 0db2ad8..27924c8 100644 --- a/p1-setup +++ b/p1-setup @@ -68,7 +68,7 @@ server ptbtime3.ptb.de iburst server ntp1.oma.be iburst server ntp2.oma.be iburst -pool ${CUSTOM_LANGUAGE:?}.pool.ntp.org iburst +pool pool.ntp.org iburst keyfile /etc/chrony/chrony.keys driftfile /var/lib/chrony/chrony.drift diff --git a/p2-include-menu b/p2-include-menu index 13e9dd3..dd8002d 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -308,9 +308,9 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL tiny core x64 KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64 INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz - APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 tz=Europe/Berlin noswap norestore settime showapps pause + APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP noswap norestore + #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP tz=$CUSTOM_TIMEZONE noswap norestore settime showapps pause TEXT HELP Boot to tiny core x64 User: tc @@ -351,7 +351,7 @@ if [[ -f "$FILE_MENU" ]] \ KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP noswap norestore TEXT HELP Boot to tiny core x86 User: tc @@ -1561,7 +1561,7 @@ goto start ### :tinycore-x64 :tinycore-x86 -set custom -- lang=en kmap=\${kmap} +set custom -- lang=\${language} kmap=\${kmap} tz=\${timezone} set options ip=dhcp nfsmount=\${nfsroot}/\${os} tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 noswap norestore #set options ip=dhcp nfsmount=\${nfsroot}/\${os}.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 noswap norestore imgselect \${base}/\${os}/boot/vmlinuz64 \${options} \${custom} || goto failed diff --git a/p2-include-var b/p2-include-var index 47a6765..d8a1741 100644 --- a/p2-include-var +++ b/p2-include-var @@ -19,15 +19,6 @@ fi ## and other variables... ######################################################################## ######################################################################## -CUSTOM_COUNTRY=DE -CUSTOM_KEYMAP=de-latin1-nodeadkeys -CUSTOM_KMAP=qwertz/de-latin1 -CUSTOM_LANGUAGE=de -CUSTOM_LAYOUTCODE=de -CUSTOM_LOCALE=de_DE.UTF-8 -CUSTOM_TIMEZONE=Europe/Berlin -CUSTOM_VARIANT=German -######################################################################## RPI_SN0=-------- RPI_SN1=-------- RPI_SN2=-------- From 2e5927b7f3e68b0de51e116dc245c44f82250e1f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 3 Feb 2021 11:09:38 +0100 Subject: [PATCH 403/694] Update README.md --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a480937..e1e12ab 100644 --- a/README.md +++ b/README.md @@ -127,30 +127,32 @@ handle_item '-' iso UBUNTU_LTS_X64; handle_item '#' iso UBUNTU_DAILY_X64 timestamping; ... ``` -action: - '+' = add image to PXE service +**_action:_** + + **'+'** = add image to PXE service download if not there update if new version is available - '-' = remove image from PXE service + **'-'** = remove image from PXE service free resources on server if backup exist, keep updating backup - '#' = skip image handling + **'#'** = skip image handling keep everything untouched does not updating backup good, when timestamping option is set but want to keep the current version and you don't want to download each daily update -type: - iso = iso image (ISO, UDF, ISO_HYBRID) +**_type:_** + + **iso** = iso image (ISO, UDF, ISO_HYBRID) - img = hard drive image (MPT, GPT) + **img** = hard drive image (MPT, GPT) - kernel = kernel + **kernel** = kernel - zip_img = zip file containing a hard drive image (zip -> img -> MTP/GPT) + **zip_img** = zip file containing a hard drive image (zip -> img -> MTP/GPT) - rpi_pxe = only if you want to pxe boot a RPi3. + **rpi_pxe** = only if you want to pxe boot a RPi3. copies files from its selected image boot & root partition to PXE server directories requires an already mounted hard drive image (img or zip_img) note: Action '-' does nothing for rpi_pxe. It is not implemented. @@ -255,7 +257,7 @@ and another issue is, overlayfs can't handle **vfat** partitions as source (lowe some of the PXE-menu entries has additional parameters, that lets the Live systems boot with German language (keyboard layout). if you don't like or want, remove those additional parameters just behind the ' --' in the menu entries -to easily change the language to your favorite ones, there are variables on the top part of the **p2-include-var** script or use **c2-custom-var** to override those variables with your values. +to easily change the language to your favorite ones, there are variables in the **c2-custom-var** file to set those variables with your values. ``` CUSTOM_COUNTRY=DE CUSTOM_KEYMAP=de-latin1-nodeadkeys From 90f98152edfdec1ab36447e0a88483c5c021ed4f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Feb 2021 21:13:51 +0100 Subject: [PATCH 404/694] updated url (ubuntu) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 10368fa..882410c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-01-31 +# v 2021-02-04 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -160,7 +160,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.1-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.2-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -247,7 +247,7 @@ UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.2-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From a92fcc8dcea133af908456a6dce02fa08016db4e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 7 Feb 2021 00:22:34 +0100 Subject: [PATCH 405/694] updated url (debian) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 882410c..7375c94 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-02-04 +# v 2021-02-07 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -86,14 +86,14 @@ BLACKARCH_X64=blackarch-x64 BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2020.12.01-x86_64.iso -DEBIAN_KVER=4.19.0-13 +DEBIAN_KVER=4.19.0-14 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.7.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.8.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.7.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.8.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 8b21701adf7ce66035a303c57fbb6a9926205b16 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 8 Feb 2021 16:28:04 +0100 Subject: [PATCH 406/694] updated url (dragonos) --- p2-include-url | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7375c94..6df2698 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-02-07 +# v 2021-02-08 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -121,7 +121,9 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR10.iso +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR12.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR12.iso.md5 +DRAGONOS_X64_SUM_TYPE=md5 ESET_SYSRESCUE_X86=eset-rescue-x86 From ac03a48701bf6d1fc5d4f2b6811e590cc3a048e0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 9 Feb 2021 10:55:02 +0100 Subject: [PATCH 407/694] moved tails back to others from broken --- p2-include-menu | 68 ++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index dd8002d..edc1fcd 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -886,6 +886,38 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then + #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; + #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz + : + fi + if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then + echo -e "\e[36m add $TAILS_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + ## see: + ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + ######################################## + LABEL $TAILS_X64 + MENU LABEL Tails x64 + KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service -- keyboard-layouts=$CUSTOM_LAYOUTCODE + TEXT HELP + Boot to Tails x64 Live + ENDTEXT +EOF + else + echo -e "\e[1;31m failed $TAILS_X64,\e[0m" + echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31\e[0m"; + fi +fi +#========== END ========== + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]]; then @@ -1075,38 +1107,6 @@ LABEL - EOF fi -#========== BEGIN ========== -if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then - if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then - #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; - #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz - : - fi - if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then - echo -e "\e[36m add $TAILS_X64\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null - ######################################## - ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - ## see: - ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 - ######################################## - LABEL $TAILS_X64 - MENU LABEL Tails x64 - KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC -- keyboard-layouts=$CUSTOM_LAYOUTCODE - TEXT HELP - Boot to Tails x64 Live - ENDTEXT -EOF - else - echo -e "\e[1;31m failed $TAILS_X64,\e[0m" - echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31\e[0m"; - fi -fi -#========== END ========== - #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$ANDROID_X86/kernel" ]]; then @@ -1383,6 +1383,7 @@ item knoppix-x86 Boot Knoppix x86 item opensuse-rescue-x64 Boot openSUSE Rescue x64 item rpdesktop-x86 Boot Raspberry Pi Desktop item systemrescue-x64 Boot System Rescue x64 +item tails-x64 Boot Tails x64 item ubuntu-studio-x64 Boot Ubuntu Studio x64 item --gap -- ------------------------- Windows systems ---------------------------------- item windows-iso-x64 Boot Windows PE x64 (ISO via http) @@ -1392,7 +1393,6 @@ item windows-pxe-x86 Boot Windows PE x86 (PXE via tftp) item windows-wim-x64 Boot Windows PE x64 (WIM via http) item windows-wim-x86 Boot Windows PE x86 (WIM via http) item --gap -- ------------------------- Broken systems ---------------------------------- -item tails-x64 Boot Tails x64 item --gap -- ------------------------- Tools and utilities ---------------------------- item --key p pxelinux Boot PXE-Linux -> item --gap -- ------------------------- Advanced options ------------------------------- @@ -1668,7 +1668,7 @@ goto start ### :tails-x64 set custom -- keyboard-layouts=\${lasyoutcode} -set options ip=dhcp BOOTIF=\${hwaddr} fetch=\${base}/\${os}/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC debug ignore_loglevel log_buf_len=10M print_fatal_signals=1 LOGLEVEL=8 earlyprintk=vga,keep sched_debug +set options ip=dhcp BOOTIF=\${hwaddr} fetch=\${base}/\${os}/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed imgfetch \${base}/\${os}/live/initrd.img || goto failed imgfetch \${base}/\${os}-hotfix-pxe.cpio.xz || goto failed From 0caf4fe9a1547ea0989287b80349d7613f7be081 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Feb 2021 09:09:21 +0100 Subject: [PATCH 408/694] fixed seed for dragon os --- p2-include-menu | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index edc1fcd..5cada3c 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -769,7 +769,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL DragonOS x64 KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/custom.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DragonOS x64 Live User: live @@ -1446,6 +1446,7 @@ goto start ### ubuntu based :dragonos-x64 set ext2 .gz +set seed custom.seed goto ubuntu :eset-rescue-x86 @@ -1454,29 +1455,35 @@ goto ubuntu :desinfect-x64 :desinfect-x86 set ext2 .lz +set seed ubuntu.seed goto ubuntu :gnuradio-x64 set ext1 .efi set ext2 .lz +set seed ubuntu.seed goto ubuntu -:kubuntu-daily-x64 -:kubuntu-x64 :lubuntu-daily-x64 :lubuntu-x64 +set seed lubuntu.seed +goto ubuntu + :ubuntu-daily-x64 :ubuntu-studio-daily-x64 :ubuntu-studio-x64 :ubuntu-x64 +:kubuntu-daily-x64 +:kubuntu-x64 :xubuntu-daily-x64 :xubuntu-x64 +set seed ubuntu.seed goto ubuntu :ubuntu #set custom -- debian-installer/locale=\${locale} debian-installer/language=\${language} console-setup/layoutcode=\${layoutcode} keyboard-configuration/layoutcode=\${layoutcode} keyboard-configuration/variant=\${variant} set custom -- debian-installer/locale=\${locale} console-setup/layoutcode=\${layoutcode} keyboard-configuration/layoutcode=\${layoutcode} keyboard-configuration/variant=\${variant} -set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs file=/cdrom/preseed/\${seed} boot=casper memtest=4 rmdns imgselect \${base}/\${os}/casper/vmlinuz\${ext1} \${options} \${custom} || goto failed imgfetch \${base}/\${os}/casper/initrd\${ext2} || goto failed imgexec || goto failed From 70d464c36085fcb6e2969b064424f7cf5973fe54 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Feb 2021 10:31:57 +0100 Subject: [PATCH 409/694] added finnix From 6799c9d5150a40b51e029f3934aec39752aa06c1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 11 Feb 2021 10:33:30 +0100 Subject: [PATCH 410/694] added finnix --- p2-include-handle | 3 +- p2-include-menu | 107 ++++++++++++++++++++++++++++++---------------- p2-include-url | 9 +++- 3 files changed, 80 insertions(+), 39 deletions(-) diff --git a/p2-include-handle b/p2-include-handle index f32f603..60399bc 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -57,6 +57,7 @@ handle_item '-' iso DEVUAN_X86; handle_item '-' iso DRAGONOS_X64; handle_item '-' iso ESET_SYSRESCUE_X86; handle_item '+' iso FEDORA_X64; +handle_item '-' iso FINNIX_X64; handle_item '-' iso GNURADIO_X64; handle_item '-' iso KALI_X64; handle_item '#' iso KASPERSKY_RESCUE_X86 timestamping; @@ -75,6 +76,7 @@ handle_item '#' iso PENTOO_BETA_X64 timestamping; handle_item '#' iso PENTOO_X64 timestamping; handle_item '#' iso RPDESKTOP_X86 timestamping; handle_item '-' iso SYSTEMRESCUE_X64; +handle_item '-' iso TAILS_X64; handle_item '+' iso TINYCORE_X64 timestamping; handle_item '#' iso TINYCORE_X86 timestamping; handle_item '#' iso UBUNTU_DAILY_X64 timestamping; @@ -94,7 +96,6 @@ handle_item '+' iso WIN_PE_X64; #broken# handle_item '-' iso ANDROID_X86; handle_item '-' iso CENTOS_X64; -handle_item '-' iso TAILS_X64; #discontinued# handle_item '#' iso DEFT_X64; #discontinued# handle_item '#' iso DEFTZ_X64 ,gid=root,uid=root,norock,mode=292; diff --git a/p2-include-menu b/p2-include-menu index 5cada3c..e2d8bf0 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -23,8 +23,8 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Live operating systems ---\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Live operating systems ------------------------------ - MENU DISABLE + MENU LABEL --- Live operating systems ------------------------------ + MENU DISABLE EOF fi @@ -463,8 +463,8 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Pentesting systems -------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Pentesting systems ---------------------------------- - MENU DISABLE + MENU LABEL --- Pentesting systems ---------------------------------- + MENU DISABLE EOF fi @@ -629,8 +629,8 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Virus scanner systems ----\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Virus scanner systems ------------------------------- - MENU DISABLE + MENU LABEL --- Virus scanner systems ------------------------------- + MENU DISABLE EOF fi @@ -716,8 +716,8 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Other systems ------------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Other systems --------------------------------------- - MENU DISABLE + MENU LABEL --- Other systems --------------------------------------- + MENU DISABLE EOF fi @@ -778,6 +778,24 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$FINNIX_X64/live/vmlinuz" ]]; then + echo -e "\e[36m add $FINNIX_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $FINNIX_X64 + MENU LABEL Finnix x64 + KERNEL $FILE_BASE$NFS_ETH0/$FINNIX_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$FINNIX_X64/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$FINNIX_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Finnix x64 Live + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]]; then @@ -986,8 +1004,8 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Windows systems ----------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Windows systems ------------------------------------- - MENU DISABLE + MENU LABEL --- Windows systems ------------------------------------- + MENU DISABLE EOF fi @@ -1102,8 +1120,8 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Broken systems -----------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Broken systems -------------------------------------- - MENU DISABLE + MENU LABEL --- Broken systems -------------------------------------- + MENU DISABLE EOF fi @@ -1173,16 +1191,16 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Tools and utilities ------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Tools and utilities --------------------------------- - MENU DISABLE + MENU LABEL --- Tools and utilities --------------------------------- + MENU DISABLE EOF fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]]; then - if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then - echo -e "\e[36m add chainload-ipxe-bios\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then + echo -e "\e[36m add chainload-ipxe-bios\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL chainload-ipxe-bios MENU LABEL iPXE-Menu -> @@ -1191,9 +1209,9 @@ if [[ -f "$FILE_MENU" ]]; then Boot to iPXE (via chainload) ENDTEXT EOF - else - echo -e "\e[36m add chainload-ipxe-efi\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + else + echo -e "\e[36m add chainload-ipxe-efi\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL chainload-ipxe-efi MENU HIDE @@ -1205,7 +1223,7 @@ EOF Boot to iPXE (via chainload) ENDTEXT EOF - fi + fi fi #=========== END ======== @@ -1217,15 +1235,15 @@ if [[ -f "$FILE_MENU" ]]; then echo -e "\e[36m add section --- Tools and utilities ------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - - MENU LABEL --- Advanced options ------------------------------------ - MENU DISABLE + MENU LABEL --- Advanced options ------------------------------------ + MENU DISABLE EOF fi if [[ -f "$FILE_MENU" ]]; then - if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then - echo -e "\e[36m add section --- Advanced options ---------\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then + echo -e "\e[36m add section --- Advanced options ---------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL reboot MENU LABEL Reboot @@ -1237,25 +1255,25 @@ LABEL poweroff EOF - else - echo -e "\e[36m add section --- Advanced options ---------\e[0m"; - cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + else + echo -e "\e[36m add section --- Advanced options ---------\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL reboot - MENU HIDE - # not working under UEFI / SecureBoot + MENU HIDE + # not working under UEFI / SecureBoot MENU LABEL Reboot COM32 reboot.c32 ######################################## LABEL poweroff - MENU HIDE - # not working under UEFI / SecureBoot + MENU HIDE + # not working under UEFI / SecureBoot MENU LABEL Power Off COM32 poweroff.c32 EOF - fi + fi fi @@ -1266,8 +1284,8 @@ if [[ -f "$FILE_MENU" ]]; then cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################################################## LABEL - - MENU LABEL --- Custom systems -------------------------------------- - MENU DISABLE + MENU LABEL --- Custom systems -------------------------------------- + MENU DISABLE EOF fi @@ -1302,7 +1320,7 @@ if [[ -f "$FILE_MENU" ]]; then cat << EOF | sudo tee $FILE_MENU &>/dev/null #!ipxe -# 2021-01-30 +# 2021-02-11 # made by https://github.com/beta-tester # for project https://github.com/beta-tester/RPi-PXE-Server @@ -1378,6 +1396,7 @@ item kaspersky-rescue-x86 Boot Kaspersky Rescue Disk x86 item --gap -- ------------------------- Other systems ---------------------------------- item clonezilla-x64 Boot Clonezilla x64 item dragonos-x64 Boot DragonOS x64 +item finnix-x64 Boot Finnix x64 item gnuradio-x64 Boot GNU Radio x64 item knoppix-x86 Boot Knoppix x86 item opensuse-rescue-x64 Boot openSUSE Rescue x64 @@ -1507,6 +1526,9 @@ goto start :debian-x64 :debian-x86 set version $DEBIAN_KVER +goto debian + +:debian set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config imgselect \${base}/\${os}/live/vmlinuz-\${version}-\${arch} \${options} \${custom} || goto failed @@ -1660,6 +1682,17 @@ imgexec || goto failed goto start +######################################################################## +### +:finnix-x64 +set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config +imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/live/initrd.img || goto failed +imgexec || goto failed +goto start + + ######################################################################## ### :knoppix-x86 diff --git a/p2-include-url b/p2-include-url index 6df2698..88a9f75 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-02-08 +# v 2021-02-11 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -33,6 +33,7 @@ fi # https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/ # devuan https://files.devuan.org/devuan_beowulf/desktop-live/ # dragon os https://sourceforge.net/projects/dragonos-focal/files/ +# finnix https://linode-london.mirrors.finnix.org/pub/mirrors/finnix/releases/current/ # gnuradio https://wiki.gnuradio.org/index.php/GNU_Radio_Live_SDR_Environment # http://eu2-dist.gnuradio.org/ # parrotsec https://cdimage.parrotsec.org/parrot/iso/ @@ -136,6 +137,12 @@ FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/33/W FEDORA_X64_SUM_TYPE=sha256 +FINNIX_X64=finnix-x64 +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-122.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-122.iso.gpg +FINNIX_X64_SUM_TYPE=gpg + + GNURADIO_X64=gnuradio-x64 GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso From eca15a16f8fe4f0722c70ab4a91dbc1ccf3562f3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 15 Feb 2021 23:05:46 +0100 Subject: [PATCH 411/694] updated url (devuan) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 88a9f75..ba21052 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-02-11 +# v 2021-02-15 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -111,12 +111,12 @@ DEFTZ_X64_SUM_TYPE=md5 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.0.0_amd64_desktop-live.iso +DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.0_amd64_desktop-live.iso DEVUAN_X64_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.0.0_i386_desktop-live.iso +DEVUAN_X86_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.0_i386_desktop-live.iso DEVUAN_X86_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt DEVUAN_X86_SUM_TYPE=sha256 From 1d7e86f48d9538429bd407714bdcdd1bbf47b032 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 25 Feb 2021 05:40:04 +0100 Subject: [PATCH 412/694] updated url (kali, tails, tinycore) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index ba21052..886f087 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-02-15 +# v 2021-02-25 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -148,7 +148,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2020.4-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.1-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -229,19 +229,19 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.01/systemrescue-7.01-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.15.1/tails-amd64-4.15.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.15.1/tails-amd64-4.15.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.16/tails-amd64-4.16.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.16/tails-amd64-4.16.iso.sig TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/11.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/12.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/12.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 -TINYCORE_X86_URL=http://tinycorelinux.net/11.x/x86/release/TinyCore-current.iso -TINYCORE_X86_SUM=http://tinycorelinux.net/11.x/x86/release/TinyCore-current.iso.md5.txt +TINYCORE_X86_URL=http://tinycorelinux.net/12.x/x86/release/TinyCore-current.iso +TINYCORE_X86_SUM=http://tinycorelinux.net/12.x/x86/release/TinyCore-current.iso.md5.txt TINYCORE_X86_SUM_TYPE=md5 From 256e7eab4355fa33505e4d53795d3dc886551ff8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Mar 2021 20:02:41 +0100 Subject: [PATCH 413/694] updated url (knoppix) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 886f087..c550e7b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-02-25 +# v 2021-03-01 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -158,8 +158,8 @@ KASPERSKY_RESCUE_X86_URL=https://rescuedisk.s.kaspersky-labs.com/updatable/2018/ KNOPPIX_X86=knoppix-x86 -KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6.1-2019-10-14-DE.iso -KNOPPIX_X86_SUM=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V8.6.1-2019-10-14-DE.iso.sha256 +KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V9.1DVD-2021-01-25-DE.iso +KNOPPIX_X86_SUM=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V9.1DVD-2021-01-25-DE.iso.sha256 KNOPPIX_X86_SUM_TYPE=sha256 From ad4cbf644ac35b28aec5f0abf5e5da79234bc170 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 4 Mar 2021 09:02:23 +0100 Subject: [PATCH 414/694] added EmmaDE --- p2-include-handle | 2 ++ p2-include-menu | 90 +++++++++++++++++++++++++++++++++++------------ p2-include-url | 17 ++++++++- 3 files changed, 85 insertions(+), 24 deletions(-) diff --git a/p2-include-handle b/p2-include-handle index 60399bc..1307ce1 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -56,6 +56,8 @@ handle_item '-' iso DEVUAN_X64; handle_item '-' iso DEVUAN_X86; handle_item '-' iso DRAGONOS_X64; handle_item '-' iso ESET_SYSRESCUE_X86; +handle_item '-' iso EMMABUNTUS_X64; +handle_item '-' iso EMMABUNTUS_X86; handle_item '+' iso FEDORA_X64; handle_item '-' iso FINNIX_X64; handle_item '-' iso GNURADIO_X64; diff --git a/p2-include-menu b/p2-include-menu index e2d8bf0..7192601 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -164,6 +164,44 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$EMMABUNTUS_X64/live/vmlinuz" ]]; then + echo -e "\e[36m add $EMMABUNTUS_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $EMMABUNTUS_X64 + MENU LABEL EmmaDE x64 + KERNEL $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X64/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$EMMABUNTUS_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to EmmaDE x64 Live LXDE + User: user, Password: live + ENDTEXT +EOF +fi +#=========== END =========== + +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$EMMABUNTUS_X86/live/vmlinuz" ]]; then + echo -e "\e[36m add $EMMABUNTUS_X86\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $EMMABUNTUS_X86 + MENU LABEL EmmaDE x86 + KERNEL $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X86/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X86/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$EMMABUNTUS_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to EmmaDE x86 Live LXDE + User: user, Password: live + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]]; then @@ -818,11 +856,11 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux" ]]; then - if ! [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86_EXTRA_INITRD" ]]; then echo -e "\e[36m download patch for $KNOPPIX_X86\e[0m"; - sudo wget --quiet -O $DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz https://github.com/beta-tester/RPi-PXE-Server/files/3932135/$KNOPPIX_X86-miniroot-8.6.1.gz + sudo wget --quiet -O $DST_NFS_ETH0/$KNOPPIX_X86_EXTRA_INITRD $KNOPPIX_X86_EXTRA_INITRD_URL fi - if [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86-miniroot-8.6.1.gz" ]]; then + if [[ -f "$DST_NFS_ETH0/$KNOPPIX_X86_EXTRA_INITRD" ]]; then echo -e "\e[36m add $KNOPPIX_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -832,7 +870,7 @@ if [[ -f "$FILE_MENU" ]] \ LABEL $KNOPPIX_X86 MENU LABEL Knoppix x86 KERNEL $FILE_BASE$NFS_ETH0/$KNOPPIX_X86/boot/isolinux/linux - INITRD $FILE_BASE$NFS_ETH0/knoppix-x86-miniroot-8.6.1.gz + INITRD $FILE_BASE$NFS_ETH0/$KNOPPIX_X86_EXTRA_INITRD APPEND ip=dhcp nfsdir=$IP_ETH0:$DST_NFS_ETH0/$KNOPPIX_X86 nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix -- lang=de TEXT HELP Boot to Knoppix x86 Live @@ -1379,6 +1417,7 @@ item arch-netboot-x64 Boot Arch netboot x64 item debian-x64 Boot Debian x64 item devuan-x64 Boot Devuan x64 item fedora-x64 Boot Fedora x64 +item emmabuntus-x64 Boot EmmaDE x64 item mint-x64 Boot Linux Mint x64 item opensuse-x64 Boot openSUSE x64 item tinycore-x64 Boot Tiny Core x64 @@ -1526,33 +1565,38 @@ goto start :debian-x64 :debian-x86 set version $DEBIAN_KVER +set file1 vmlinuz-\${version}-\${arch} +set file2 initrd.img-\${version}-\${arch} +set extra goto debian -:debian -set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no -set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config -imgselect \${base}/\${os}/live/vmlinuz-\${version}-\${arch} \${options} \${custom} || goto failed -imgfetch \${base}/\${os}/live/initrd.img-\${version}-\${arch} || goto failed -imgexec || goto failed -goto start - - :devuan-x64 :devuan-x86 -set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no -set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live username=devuan config -imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed -imgfetch \${base}/\${os}/live/initrd.img || goto failed -imgexec || goto failed -goto start +set file1 vmlinuz +set file2 initrd.img +set extra username=devuan +goto debian +:emmabuntus-x64 +:emmabuntus-x86 +set file1 vmlinuz +set file2 initrd.img +set extra +goto debian +:rpdesktop-x64 :rpdesktop-x86 +set file1 vmlinuz2 +set file2 initrd2.img +set extra +goto debian + +:debian set custom -- locales=\${locale} keyboard-layouts=\${layoutcode} timezone=\${timezone} utc=no set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs boot=live config -imgselect \${base}/\${os}/live/vmlinuz2 \${options} \${custom} || goto failed -imgfetch \${base}/\${os}/live/initrd2.img || goto failed -imgexec || goto failed +imgselect \${base}/\${os}/live/\${file1} \${options} \${extra} \${custom} || goto failed +imgfetch \${base}/\${os}/live/\${file2} || goto failed +imgexec || goto failed goto start @@ -1699,7 +1743,7 @@ goto start set custom -- lang=de set options ip=dhcp nfsdir=\${nfsroot}/\${os} nodhcp ramdisk_size=100000 init=/sbin/init apm=power-off nomce loglevel=1 libata.force=noncq tz=localtime hpsa.hpsa_allow_any=1 BOOT_IMAGE=knoppix imgselect \${base}/\${os}/boot/isolinux/linux \${options} \${custom} || goto failed -imgfetch \${base}/\${os}-miniroot-8.6.1.gz || goto failed +imgfetch \${base}/$KNOPPIX_X86_EXTRA_INITRD || goto failed imgexec || goto failed goto start diff --git a/p2-include-url b/p2-include-url index c550e7b..b2f2232 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-01 +# v 2021-03-03 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -65,6 +65,8 @@ fi # rpi-raspbian https://downloads.raspberrypi.org/raspios_armhf/images/ # piCore http://tinycorelinux.net/9.x/armv6/releases/RPi/ # http://tinycorelinux.net/9.x/armv7/releases/RPi/ +# emmabuntus https://emmabuntus.org/ +# https://sourceforge.net/projects/emmabuntus/files/ ######################################################################## @@ -127,6 +129,17 @@ DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/Dragon DRAGONOS_X64_SUM_TYPE=md5 +EMMABUNTUS_X64=emmabuntus-x64 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-amd64-10.8-1.04.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-amd64-10.8-1.04.iso.sha256 +EMMABUNTUS_X64_SUM_TYPE=sha256 + +EMMABUNTUS_X86=emmabuntus-x86 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-i686-10.8-1.04.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-i686-10.8-1.04.iso.sha256 +EMMABUNTUS_X86_SUM_TYPE=sha256 + + ESET_SYSRESCUE_X86=eset-rescue-x86 ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso @@ -161,6 +174,8 @@ KNOPPIX_X86=knoppix-x86 KNOPPIX_X86_URL=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V9.1DVD-2021-01-25-DE.iso KNOPPIX_X86_SUM=https://ftp.gwdg.de/pub/linux/knoppix/dvd/KNOPPIX_V9.1DVD-2021-01-25-DE.iso.sha256 KNOPPIX_X86_SUM_TYPE=sha256 +KNOPPIX_X86_EXTRA_INITRD=knoppix-x86-miniroot-9.1.gz +KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files/6081579/knoppix-x86-miniroot-9.1.gz LUBUNTU_DAILY_X64=lubuntu-daily-x64 From c55bddd3107f2f8c552a934ef66a9b0fde5e658b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 6 Mar 2021 12:28:00 +0100 Subject: [PATCH 415/694] updated url (SystemRescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index b2f2232..0bbe40f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-03 +# v 2021-03-06 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/7.01/systemrescue-7.01-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.00/systemrescue-8.00-amd64.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.16/tails-amd64-4.16.iso From e31ebf4c51c707a9c40b2ae283aaaf8b802cb3f5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 10 Mar 2021 21:38:55 +0100 Subject: [PATCH 416/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0bbe40f..09ee1fd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-06 +# v 2021-03-10 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.00/systemrescue-8.00-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.01/systemrescue-8.01-amd64.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.16/tails-amd64-4.16.iso From 67062aa42d69ebc0102efe371089539f38ba41eb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Mar 2021 09:37:38 +0100 Subject: [PATCH 417/694] changed user of media share --- p1-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p1-setup b/p1-setup index 27924c8..cccd23d 100644 --- a/p1-setup +++ b/p1-setup @@ -527,8 +527,8 @@ bind interfaces only = yes directory mask = 0755 force create mode = 0644 force directory mode = 0755 - force user = root - force group = root + force user = $USER + force group = $USER hide dot files = no EOF sudo systemctl restart smbd.service; From 56e5935eb39cd1a5876daaef8f1f4eaeb3f896ad Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 19 Mar 2021 14:35:34 +0100 Subject: [PATCH 418/694] updated url (dragonOS, parrot, ubuntu) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 09ee1fd..3177589 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-10 +# v 2021-03-19 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR12.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR12.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR13.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR13.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 @@ -217,12 +217,12 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.10_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11-beta4_amd64.iso PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.10_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11-beta4_amd64.iso PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -271,7 +271,7 @@ UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.2-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.2.0-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 62b7223b1e131bf62759f72a94a46357be0e871e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 19 Mar 2021 14:50:55 +0100 Subject: [PATCH 419/694] fsck.mode=skip to speed up boot --- p2-include-menu | 54 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 7192601..975908c 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -155,7 +155,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Fedora x64 KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img - APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE + APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -212,7 +212,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu @@ -231,7 +231,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL lubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu LTS x64 Live User: lubuntu @@ -250,7 +250,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL lubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu LTS x86 Live User: lubuntu @@ -269,7 +269,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu x64 Live User: lubuntu @@ -288,7 +288,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to lubuntu x86 Live User: lubuntu @@ -307,7 +307,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL linux-mint x64 KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to linux-mint x64 Live User: @@ -408,7 +408,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu @@ -427,7 +427,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu @@ -446,7 +446,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu @@ -465,7 +465,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu x64 Live User: ubuntu @@ -484,7 +484,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu x86 Live User: ubuntu @@ -536,7 +536,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL DEFT x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DEFT x64 Live User: root, Password: toor @@ -555,7 +555,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL DEFT Zero x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor @@ -682,7 +682,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL desinfect x86 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to ct desinfect x86 User: desinfect @@ -701,7 +701,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL desinfect x64 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to ct desinfect x64 User: desinfect @@ -720,7 +720,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL ESET SysRescue Live KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to ESET SysRescue Live ENDTEXT @@ -807,7 +807,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL DragonOS x64 KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/custom.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/custom.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to DragonOS x64 Live User: live @@ -844,7 +844,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL GNU Radio x64 KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to GNU Radio x64 Live User: ubuntu @@ -962,7 +962,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Tails x64 KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service -- keyboard-layouts=$CUSTOM_LAYOUTCODE + APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service fsck.mode=skip -- keyboard-layouts=$CUSTOM_LAYOUTCODE TEXT HELP Boot to Tails x64 Live ENDTEXT @@ -987,7 +987,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu Live FirmwareTestSuite KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper toram -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip toram -- TEXT HELP Boot to Ubuntu Live FirmwareTestSuite User: ubuntu @@ -1006,7 +1006,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu Studio x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu Studio x64 Daily-Live User: ubuntu @@ -1025,7 +1025,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu Studio x64 Live User: ubuntu @@ -1337,7 +1337,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu non-PAE x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_NONPAE/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_NONPAE ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT TEXT HELP Boot to Ubuntu non-PAE x86 Live User: ubuntu @@ -1541,7 +1541,7 @@ goto ubuntu :ubuntu #set custom -- debian-installer/locale=\${locale} debian-installer/language=\${language} console-setup/layoutcode=\${layoutcode} keyboard-configuration/layoutcode=\${layoutcode} keyboard-configuration/variant=\${variant} set custom -- debian-installer/locale=\${locale} console-setup/layoutcode=\${layoutcode} keyboard-configuration/layoutcode=\${layoutcode} keyboard-configuration/variant=\${variant} -set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs file=/cdrom/preseed/\${seed} boot=casper memtest=4 rmdns +set options ip=dhcp nfsroot=\${nfsroot}/\${os} ro netboot=nfs file=/cdrom/preseed/\${seed} boot=casper fsck.mode=skip memtest=4 rmdns imgselect \${base}/\${os}/casper/vmlinuz\${ext1} \${options} \${custom} || goto failed imgfetch \${base}/\${os}/casper/initrd\${ext2} || goto failed imgexec || goto failed @@ -1604,7 +1604,7 @@ goto start ### :fedora-x64 set custom -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=\${keymap} locale.LANG=\${locale} -set options ip=dhcp root=live:nfs://\${next-server}/srv/nfs/\${os}/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 +set options ip=dhcp root=live:nfs://\${next-server}/srv/nfs/\${os}/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip imgselect \${base}/\${os}/isolinux/vmlinuz \${options} \${custom} || goto failed imgfetch \${base}/\${os}/isolinux/initrd.img || goto failed imgexec || goto failed @@ -1752,7 +1752,7 @@ goto start ### :tails-x64 set custom -- keyboard-layouts=\${lasyoutcode} -set options ip=dhcp BOOTIF=\${hwaddr} fetch=\${base}/\${os}/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service +set options ip=dhcp BOOTIF=\${hwaddr} fetch=\${base}/\${os}/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service fsck.mode=skip imgselect \${base}/\${os}/live/vmlinuz \${options} \${custom} || goto failed imgfetch \${base}/\${os}/live/initrd.img || goto failed imgfetch \${base}/\${os}-hotfix-pxe.cpio.xz || goto failed From 88230c32b94d7843762548617ea5338458f400ef Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 23 Mar 2021 07:50:03 +0100 Subject: [PATCH 420/694] updated url (Tails, Parrot) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3177589..b906a00 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-19 +# v 2021-03-23 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -217,13 +217,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11-beta4_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.10/Parrot-security-4.10_amd64.iso PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11-beta4_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.10/Parrot-home-4.10_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.10/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -244,8 +244,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.01/systemrescue-8.01-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.16/tails-amd64-4.16.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.16/tails-amd64-4.16.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.17/tails-amd64-4.17.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.17/tails-amd64-4.17.iso.sig TAILS_X64_SUM_TYPE=pgp From 7e115bcf99bab645f587f133351dd4be5fcb8d3e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 26 Mar 2021 22:24:03 +0100 Subject: [PATCH 421/694] updated url (devuan) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index b906a00..087d45e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-23 +# v 2021-03-26 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -113,12 +113,12 @@ DEFTZ_X64_SUM_TYPE=md5 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.0_amd64_desktop-live.iso +DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.1_amd64_desktop-live.iso DEVUAN_X64_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.0_i386_desktop-live.iso +DEVUAN_X86_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.1_i386_desktop-live.iso DEVUAN_X86_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt DEVUAN_X86_SUM_TYPE=sha256 From d9231c071af3e4c439bccd0f4a86df93dbbda3f9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 27 Mar 2021 08:20:30 +0100 Subject: [PATCH 422/694] discontinued CentOs --- p2-include-handle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-handle b/p2-include-handle index 1307ce1..ae09aab 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -97,10 +97,10 @@ handle_item '+' iso WIN_PE_X64; #broken# handle_item '-' iso ANDROID_X86; -handle_item '-' iso CENTOS_X64; -#discontinued# handle_item '#' iso DEFT_X64; -#discontinued# handle_item '#' iso DEFTZ_X64 ,gid=root,uid=root,norock,mode=292; +#discontinued# handle_item '#' iso CENTOS_X64; +#discontinued# handle_item '#' iso DEFT_X64; +#discontinued# handle_item '#' iso DEFTZ_X64 ,gid=root,uid=root,norock,mode=292; ######################################################################## From 3193a2d432a6bceba32dbae39344f0457abab030 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 29 Mar 2021 21:51:04 +0200 Subject: [PATCH 423/694] updated url (debian, parrot) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 087d45e..b732bf0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-26 +# v 2021-03-29 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -89,14 +89,14 @@ BLACKARCH_X64=blackarch-x64 BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2020.12.01-x86_64.iso -DEBIAN_KVER=4.19.0-14 +DEBIAN_KVER=4.19.0-16 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.8.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.9.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.8.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.9.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -217,13 +217,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.10/Parrot-security-4.10_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11_amd64.iso PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.10/Parrot-home-4.10_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.10/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 1f39df41879c6948d8b841e6207979949c75a891 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 17 Apr 2021 22:42:11 +0200 Subject: [PATCH 424/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index b732bf0..dc224dc 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-03-29 +# v 2021-04-17 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.01/systemrescue-8.01-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.02/systemrescue-8.02-amd64.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.17/tails-amd64-4.17.iso From ae37be845bd3ae825b67a5f1423cfcaae8c6f725 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Apr 2021 22:26:26 +0200 Subject: [PATCH 425/694] updated url (tails, ubuntu) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index dc224dc..a5f43ff 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-04-17 +# v 2021-04-23 # check for broken url # for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -189,8 +189,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.10/release/lubuntu-20.10-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.10/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/21.04/release/lubuntu-21.04-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/21.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -244,8 +244,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.02/systemrescue-8.02-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.17/tails-amd64-4.17.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.17/tails-amd64-4.17.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.18/tails-amd64-4.18.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.18/tails-amd64-4.18.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -281,12 +281,12 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/20.10/release/ubuntustudio-20.10-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/20.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/21.04/release/ubuntustudio-21.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/21.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso +UBUNTU_X64_URL=https://releases.ubuntu.com/20.10/ubuntu-21.04-desktop-amd64.iso UBUNTU_X64_SUM=https://releases.ubuntu.com/20.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 From 85cf83087185cbf034ca09a0b70c85883276bbc8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Apr 2021 22:30:56 +0200 Subject: [PATCH 426/694] updated url (parrot) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index a5f43ff..f61f36a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -222,7 +222,7 @@ PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hash PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11.1_amd64.iso PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -286,8 +286,8 @@ UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/21.04/rel UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/20.10/ubuntu-21.04-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/20.10/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/21.04/ubuntu-21.04-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/21.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From cc8b9064d8cca9caa29cd749828796de52b5e6d6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Apr 2021 22:34:30 +0200 Subject: [PATCH 427/694] discontinued distros --- p2-include-url | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/p2-include-url b/p2-include-url index f61f36a..13e644d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -102,14 +102,14 @@ DEBIAN_X86_SUM_TYPE=sha256 DEFT_X64=deft-x64 -DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/iso/deft-8.2.iso -DEFT_X64_SUM=https://na.mirror.garr.it/mirrors/deft/md5.txt -DEFT_X64_SUM_TYPE=md5 +#DEFT_X64_URL=https://na.mirror.garr.it/mirrors/deft/iso/deft-8.2.iso +#DEFT_X64_SUM=https://na.mirror.garr.it/mirrors/deft/md5.txt +#DEFT_X64_SUM_TYPE=md5 DEFTZ_X64=deftz-x64 -DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso -DEFTZ_X64_SUM=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso.md5 -DEFTZ_X64_SUM_TYPE=md5 +#DEFTZ_X64_URL=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso +#DEFTZ_X64_SUM=https://na.mirror.garr.it/mirrors/deft/zero/deftZ-2018-2.iso.md5 +#DEFTZ_X64_SUM_TYPE=md5 DEVUAN_X64=devuan-x64 @@ -217,7 +217,7 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11.1_amd64.iso PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 @@ -321,9 +321,9 @@ ANDROID_X86_URL=https://dotsrc.dl.osdn.net/osdn/android-x86/71931/android-x86_64 CENTOS_X64=centos-x64 -CENTOS_X64_URL=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-2003.iso -CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.txt -CENTOS_X64_SUM_TYPE=sha256 +#CENTOS_X64_URL=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-LiveGNOME-2003.iso +#CENTOS_X64_SUM=https://mirrors.edge.kernel.org/centos/7/isos/x86_64/sha256sum.txt +#CENTOS_X64_SUM_TYPE=sha256 ######################################################################## From c11a5ffe175788fb7b1043265fc6369994621a2f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Apr 2021 22:36:24 +0200 Subject: [PATCH 428/694] Update p2-include-url --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 13e644d..afdc0b2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -13,7 +13,7 @@ fi # v 2021-04-23 # check for broken url -# for i in $(grep "[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep "^[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From 1e5a5ced00ab4e068f52075891b85a1e0d8440ff Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Apr 2021 22:41:17 +0200 Subject: [PATCH 429/694] Update p2-include-url --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index afdc0b2..8250f61 100644 --- a/p2-include-url +++ b/p2-include-url @@ -13,7 +13,7 @@ fi # v 2021-04-23 # check for broken url -# for i in $(grep "^[A-Z0-9_]_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From 67e6d9c9a570ad8a8c0772a785c20ba5eb9b3abc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 27 Apr 2021 18:53:31 +0200 Subject: [PATCH 430/694] updated url (fedora) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8250f61..1f621e1 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-04-23 +# v 2021-04-27 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -145,8 +145,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/33/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-33-1.2.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/33/Workstation/x86_64/iso/Fedora-Workstation-33-1.2-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/34/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-34-1.2.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/34/Workstation/x86_64/iso/Fedora-Workstation-34-1.2-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 From 0b6ca8efe3929f56d419bf1001ced98a38d35c5a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 9 May 2021 08:29:23 +0200 Subject: [PATCH 431/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1f621e1..b5e2919 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-04-27 +# v 2021-05-09 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.02/systemrescue-8.02-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.03/systemrescue-8.03-amd64.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.18/tails-amd64-4.18.iso From 069488b377037ea64aadfe83a56eeac1088186bb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 9 May 2021 08:38:25 +0200 Subject: [PATCH 432/694] updated url (ubuntu daily, parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index b5e2919..e513b7f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -179,7 +179,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/hirsute-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/impish-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -217,12 +217,12 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11.1_amd64.iso +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11.2_amd64.iso PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11.1_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11.2_amd64.iso PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -261,7 +261,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/hirsute-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/impish-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -276,7 +276,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/hirsute-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/impish-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From 18e5b2df656a2d745cb23e2f38e018f502f38ec6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 9 May 2021 08:47:04 +0200 Subject: [PATCH 433/694] updated url (dragonos) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index e513b7f..50b5866 100644 --- a/p2-include-url +++ b/p2-include-url @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR13.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR13.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR14-Preview.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR14-Preview.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From 538cf722d5f4d15e216014618c4ed33a1051b360 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 11 May 2021 15:27:38 +0200 Subject: [PATCH 434/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 50b5866..a73e331 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-05-09 +# v 2021-05-11 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -217,13 +217,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-security-4.11.2_amd64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.1/Parrot-kde-security-4.11.1_amd64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/current/Parrot-home-4.11.2_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/current/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.1/Parrot-home-4.11.1_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 0df80e45831026331222caf91a02a3e3a1d6a5b4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 19 May 2021 19:36:24 +0200 Subject: [PATCH 435/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index a73e331..154fefa 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-05-11 +# v 2021-05-19 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR14-Preview.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR14-Preview.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR15.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR15.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From f1a869daa82c8824dbc9f9f356f5c44d9ffe01d0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 May 2021 20:23:24 +0200 Subject: [PATCH 436/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 154fefa..4f63c4b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-05-19 +# v 2021-05-27 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -217,13 +217,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.1/Parrot-kde-security-4.11.1_amd64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.2/Parrot-kde-security-4.11.2_amd64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.2/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.1/Parrot-home-4.11.1_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.2/Parrot-home-4.11.2_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From b9fece73b680df6f379bd7c2f6fce205b22eb1d2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 May 2021 20:29:52 +0200 Subject: [PATCH 437/694] Update p2-include-url --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 4f63c4b..501d2d2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -222,7 +222,7 @@ PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.2/signed-hashe PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.2/Parrot-home-4.11.2_amd64.iso +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.2/Parrot-kde-home-4.11.2_amd64.iso PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 9c6268755265611d9a364bb49eea21cbf2bbb6a9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 Jun 2021 11:43:17 +0200 Subject: [PATCH 438/694] updated url (clonezilla, kali, tails) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 501d2d2..8579286 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-05-27 +# v 2021-06-02 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -80,9 +80,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.1-22/clonezilla-live-2.7.1-22-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-38/clonezilla-live-2.7.2-38-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.1-22/clonezilla-live-2.7.1-22-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-38/clonezilla-live-2.7.2-38-i686.iso BLACKARCH_X64=blackarch-x64 @@ -161,7 +161,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.1-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -244,8 +244,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.03/systemrescue-8.03-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.18/tails-amd64-4.18.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.18/tails-amd64-4.18.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.19/tails-amd64-4.19.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.19/tails-amd64-4.19.iso.sig TAILS_X64_SUM_TYPE=pgp From bbc50f02dd3b590f61633462ccb7dd96207dd420 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 Jun 2021 19:35:34 +0200 Subject: [PATCH 439/694] updated url (openSUSE) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8579286..edd2f23 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-06-02 +# v 2021-06-02a # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -206,13 +206,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-Rescue-CD-x86_64-Media.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-Rescue-CD-x86_64-Media.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-Rescue-CD-x86_64-Media.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-Rescue-CD-x86_64-Media.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-KDE-Live-x86_64-Media.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.2-KDE-Live-x86_64-Media.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-KDE-Live-x86_64-Media.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-KDE-Live-x86_64-Media.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 From b6a9d838848b85d01d056931acb9eb17c098473b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Jun 2021 21:07:39 +0200 Subject: [PATCH 440/694] updated url (clonezilla) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index edd2f23..93c54cf 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-06-02a +# v 2021-06-15 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -80,9 +80,9 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-38/clonezilla-live-2.7.2-38-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-38/clonezilla-live-2.7.2-38-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-i686.iso BLACKARCH_X64=blackarch-x64 From b2252516d1c480517a3effb5a8c3c752cd47f297 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 22 Jun 2021 21:13:05 +0200 Subject: [PATCH 441/694] updated url (debian) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index 93c54cf..6b25881 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-06-15 +# v 2021-06-22 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -79,24 +79,24 @@ ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn +BLACKARCH_X64=blackarch-x64 +BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2020.12.01-x86_64.iso + + CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-amd64.iso CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-i686.iso -BLACKARCH_X64=blackarch-x64 -BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2020.12.01-x86_64.iso - - -DEBIAN_KVER=4.19.0-16 +DEBIAN_KVER=4.19.0-17 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.9.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.10.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.9.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.10.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 193d89dd77c8a6a80c62dfbc620074ad71768e79 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 11 Jul 2021 21:19:18 +0200 Subject: [PATCH 442/694] updated url (mint) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 6b25881..0fb5905 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-06-22 +# v 2021-07-11 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -200,8 +200,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20.1/linuxmint-20.1-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20.1/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20.2/linuxmint-20.2-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20.2/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From f2e15e0c8313363e2a89130bc2afe2568fce3618 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 13 Jul 2021 14:34:54 +0200 Subject: [PATCH 443/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0fb5905..05cdef8 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-07-11 +# v 2021-07-13 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -244,8 +244,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.03/systemrescue-8.03-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.19/tails-amd64-4.19.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.19/tails-amd64-4.19.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.20/tails-amd64-4.20.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.20/tails-amd64-4.20.iso.sig TAILS_X64_SUM_TYPE=pgp From 67ca9ed788b5bf4e3329d620128e1bed772073ef Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 25 Jul 2021 18:11:23 +0200 Subject: [PATCH 444/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 05cdef8..1f46d5c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-07-13 +# v 2021-07-25 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.03/systemrescue-8.03-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.04/systemrescue-8.04-amd64.iso TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.20/tails-amd64-4.20.iso From cce0af19ba2520085d4bd2776c31c45109123f4b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 2 Aug 2021 10:44:44 +0200 Subject: [PATCH 445/694] updated url (DragonOS) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1f46d5c..edea479 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-07-25 +# v 2021-08-02 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR15.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR15.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR16.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR16.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From 9a566ab275c0d0b8eb9b797797f35c8c88357ad5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 11 Aug 2021 15:00:07 +0200 Subject: [PATCH 446/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index edea479..e05db80 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-08-02 +# v 2021-08-11 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -244,8 +244,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.04/systemrescue-8.04-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.20/tails-amd64-4.20.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.20/tails-amd64-4.20.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.21/tails-amd64-4.21.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.21/tails-amd64-4.21.iso.sig TAILS_X64_SUM_TYPE=pgp From bb339d7d1f01dd0e1adaba31da1f70c4f50016da Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 15 Aug 2021 10:11:44 +0200 Subject: [PATCH 447/694] updated url (debian) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index e05db80..96d8abd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-08-11 +# v 2021-08-15 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -89,14 +89,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-i686.iso -DEBIAN_KVER=4.19.0-17 +DEBIAN_KVER=5.10.0-8 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.10.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.0.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-10.10.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.0.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 0f622100daf1a5351c214b2878c930e5f03391e1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 18 Aug 2021 19:38:59 +0200 Subject: [PATCH 448/694] updated url (blackarch) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 96d8abd..e078c65 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-08-15 +# v 2021-08-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -80,7 +80,7 @@ ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn BLACKARCH_X64=blackarch-x64 -BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2020.12.01-x86_64.iso +BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2021.09.01-x86_64.iso CLONEZILLA_X64=clonezilla-x64 From e4430bf1250499feda257c292392f6ab6f72a019 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 27 Aug 2021 19:08:46 +0200 Subject: [PATCH 449/694] updated url (clonezilla, ubuntu lts) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index e078c65..4a8b282 100644 --- a/p2-include-url +++ b/p2-include-url @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/bash ######################################################################## if [[ -z "$script_dir" ]] @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-08-18 +# v 2021-08-27 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -84,9 +84,9 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.3-19/clonezilla-live-2.7.3-19-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.2-39/clonezilla-live-2.7.2-39-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.3-19/clonezilla-live-2.7.3-19-i686.iso DEBIAN_KVER=5.10.0-8 @@ -184,7 +184,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.2-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.3-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -271,7 +271,7 @@ UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.2.0-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.3-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 8e6e2ad044beff258fe2383ead87a2d6032e1c90 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 7 Sep 2021 21:46:26 +0200 Subject: [PATCH 450/694] updated url (finnix, tails) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4a8b282..401246e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-08-27 +# v 2021-09-07 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -151,8 +151,8 @@ FEDORA_X64_SUM_TYPE=sha256 FINNIX_X64=finnix-x64 -FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-122.iso -FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-122.iso.gpg +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-123.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-123.iso.gpg FINNIX_X64_SUM_TYPE=gpg @@ -244,8 +244,8 @@ SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.04/systemrescue-8.04-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.21/tails-amd64-4.21.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.21/tails-amd64-4.21.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.22/tails-amd64-4.22.img +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.22/tails-amd64-4.22.iso.sig TAILS_X64_SUM_TYPE=pgp From 8a2a97ed550c7a34de15a4d2b51b299e9cc949c6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 8 Sep 2021 13:48:27 +0200 Subject: [PATCH 451/694] fix mounting tails - tails image can not be mounted as iso anymore. mount as disk image instead --- p2-include-handle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle b/p2-include-handle index ae09aab..30f3571 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -78,7 +78,7 @@ handle_item '#' iso PENTOO_BETA_X64 timestamping; handle_item '#' iso PENTOO_X64 timestamping; handle_item '#' iso RPDESKTOP_X86 timestamping; handle_item '-' iso SYSTEMRESCUE_X64; -handle_item '-' iso TAILS_X64; +handle_item '-' img TAILS_X64; handle_item '+' iso TINYCORE_X64 timestamping; handle_item '#' iso TINYCORE_X86 timestamping; handle_item '#' iso UBUNTU_DAILY_X64 timestamping; From ff73516362d598c4a90fe697668d457d187bd136 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 14 Sep 2021 20:19:32 +0200 Subject: [PATCH 452/694] updated url (kali) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 401246e..a110492 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-09-07 +# v 2021-09-14 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -161,7 +161,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From d4ed69c0e7a8fa6d86a6519753aba0c320e58724 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 Sep 2021 20:25:26 +0200 Subject: [PATCH 453/694] updated url (DragonOs, Emmabuntus) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index a110492..3539ea2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-09-14 +# v 2021-09-21 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,19 +124,19 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR16.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR16.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR17.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR17.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-amd64-10.8-1.04.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-amd64-10.8-1.04.iso.sha256 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-amd64-11.0-1.00.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-amd64-11.0-1.00.iso.sha256 EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-i686-10.8-1.04.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus%20DE3/Images/1.04/emmabuntus-de3-i686-10.8-1.04.iso.sha256 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-i686-11.0-1.00.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-i686-11.0-1.00.iso.sha256 EMMABUNTUS_X86_SUM_TYPE=sha256 From a7edac3cbdcaeacca0514fcf20834d4b8c96e3ed Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 5 Oct 2021 10:33:41 +0200 Subject: [PATCH 454/694] updated url (sysrescue) --- p2-include-url | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3539ea2..e8f6b9c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-09-21 +# v 2021-10-05 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.04/systemrescue-8.04-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.05/systemrescue-8.05-amd64.iso + TAILS_X64=tails-x64 TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.22/tails-amd64-4.22.img From 224a4ac739dcca9a5f28565a8c696e251818b23b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Oct 2021 00:48:58 +0200 Subject: [PATCH 455/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index e8f6b9c..813f065 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-10-05 +# v 2021-10-09 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -245,8 +245,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.22/tails-amd64-4.22.img -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.22/tails-amd64-4.22.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.img +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.img.sig TAILS_X64_SUM_TYPE=pgp From 5bd5ce108e99acaf367f16edde80419d3c7f456d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 12 Oct 2021 09:10:04 +0200 Subject: [PATCH 456/694] updated url (debian) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 813f065..56b8668 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-10-09 +# v 2021-10-12 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -89,14 +89,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.3-19/clonezilla-live-2.7.3-19-i686.iso -DEBIAN_KVER=5.10.0-8 +DEBIAN_KVER=5.10.0-9 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.0.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.1.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.0.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.1.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 98a15c83a2df1470a34ff6fabe40363798e1f853 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 14 Oct 2021 20:33:43 +0200 Subject: [PATCH 457/694] updated ul (ubuntu, devuan) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 56b8668..885283e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-10-12 +# v 2021-10-14 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -113,8 +113,8 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.1_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt +DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.0_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.0_amd64_desktop-live.iso.sha256 DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 @@ -282,13 +282,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/21.04/release/ubuntustudio-21.04-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/21.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/21.10/release/ubuntustudio-21.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/21.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/21.04/ubuntu-21.04-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/21.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/21.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From a7c2e9a8aed9da46090efebed4007c743d5b19c4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 14 Oct 2021 21:18:10 +0200 Subject: [PATCH 458/694] updated url (lubuntu) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 885283e..1250ed4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -189,8 +189,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/21.04/release/lubuntu-21.04-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/21.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/21.10/release/lubuntu-21.10-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/21.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 From 50874d108f9e952eebc1cf67e8325fbd88a1a4bf Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 14 Oct 2021 21:32:50 +0200 Subject: [PATCH 459/694] handle Tails as ISO again --- p2-include-handle | 2 +- p2-include-url | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-handle b/p2-include-handle index 30f3571..ae09aab 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -78,7 +78,7 @@ handle_item '#' iso PENTOO_BETA_X64 timestamping; handle_item '#' iso PENTOO_X64 timestamping; handle_item '#' iso RPDESKTOP_X86 timestamping; handle_item '-' iso SYSTEMRESCUE_X64; -handle_item '-' img TAILS_X64; +handle_item '-' iso TAILS_X64; handle_item '+' iso TINYCORE_X64 timestamping; handle_item '#' iso TINYCORE_X86 timestamping; handle_item '#' iso UBUNTU_DAILY_X64 timestamping; diff --git a/p2-include-url b/p2-include-url index 1250ed4..44c1e2c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -245,8 +245,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.img -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.img.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.iso.sig TAILS_X64_SUM_TYPE=pgp From 1665a4453651b3dcffc15fdac3502a51d975f8b8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Oct 2021 07:56:24 +0200 Subject: [PATCH 460/694] updated urk (kali) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 44c1e2c..e61c51b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-10-14 +# v 2021-10-28 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -161,7 +161,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.3a-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From c21d0929d95f15112327413c897cd7e80452e6ca Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Oct 2021 08:10:40 +0200 Subject: [PATCH 461/694] updated url (ubuntu daily) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index e61c51b..9788227 100644 --- a/p2-include-url +++ b/p2-include-url @@ -179,7 +179,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/impish-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/jammy-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -262,13 +262,13 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/impish-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/jammy-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=http://fwts.ubuntu.com/fwts-live/fwts-live-20.07.00.img.xz -UBUNTU_FWTS_SUM=http://fwts.ubuntu.com/fwts-live/SHA256SUM +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-21.09.00-x86_64.img.xz +UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 @@ -277,7 +277,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/impish-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/jammy-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From af54d0dcd19cba7fb0c3d495f7be451af34f6944 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 1 Nov 2021 20:49:09 +0100 Subject: [PATCH 462/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9788227..8fb143f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-10-28 +# v 2021-11-01 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR17.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR17.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR18.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR18.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From 1d5f549c5c453291443ae5b2ea837d7de182b8d8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Nov 2021 17:37:25 +0100 Subject: [PATCH 463/694] updated url (fedora) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8fb143f..3d7b48a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-11-01 +# v 2021-11-02 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -145,8 +145,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/34/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-34-1.2.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/34/Workstation/x86_64/iso/Fedora-Workstation-34-1.2-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-35-1.2.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/x86_64/iso/Fedora-Workstation-35-1.2-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 From a8afffb50c3857b5d5a62c64f9493cb431500515 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 5 Nov 2021 19:22:18 +0100 Subject: [PATCH 464/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3d7b48a..9fc5517 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-11-02 +# v 2021-11-05 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -245,8 +245,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.24/tails-amd64-4.24.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.24/tails-amd64-4.24.iso.sig TAILS_X64_SUM_TYPE=pgp From 3d06f6471fb4c93daf35f2a6de47c80535e612cb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 12 Nov 2021 17:18:35 +0100 Subject: [PATCH 465/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9fc5517..459c580 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-11-05 +# v 2021-11-12 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -217,13 +217,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.2/Parrot-kde-security-4.11.2_amd64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.2/signed-hashes.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.3/Parrot-kde-security-4.11.3_amd64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.3/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.2/Parrot-kde-home-4.11.2_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.2/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.3/Parrot-kde-home-4.11.3_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.3/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From eadda7ed2d12b52bab2d383df1409ba96dcfbbdc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 20 Nov 2021 17:40:32 +0100 Subject: [PATCH 466/694] fix COUNTRY_WLAN0 --- p2-include-var | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-var b/p2-include-var index d8a1741..076313e 100644 --- a/p2-include-var +++ b/p2-include-var @@ -67,7 +67,7 @@ IP_WLAN0_END=192.168.251.110 IP_WLAN0_MASK=255.255.255.0 ######################################################################## DRIVER_WLAN0=nl80211 -COUNTRY_WLAN0=$CUSTOM_COUNTRY +COUNTRY_WLAN0=US PASSWORD_WLAN0=p@ssw0rd SSID_WLAN0=wlan0@domain.local INTERFACE_WLAN0X=wlan0x From 69224bec6967aa2bcfa9aedcd0df0524a65149bb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 20 Nov 2021 22:07:51 +0100 Subject: [PATCH 467/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 459c580..885c9c1 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-11-12 +# v 2021-11-20 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.05/systemrescue-8.05-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.06/systemrescue-8.06-amd64.iso TAILS_X64=tails-x64 From d9934d121351849ee72633aa9ca8abb89de52bd9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 6 Dec 2021 17:51:46 +0100 Subject: [PATCH 468/694] updated url (kali) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 885c9c1..58ee450 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-11-20 +# v 2021-12-06 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -161,7 +161,7 @@ GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnura KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.3a-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.4-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From a2397206b87c973cc52bc46b02dfd05611b5a620 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 9 Dec 2021 14:14:06 +0100 Subject: [PATCH 469/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 58ee450..dfba245 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-12-06 +# v 2021-12-09 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -245,8 +245,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.24/tails-amd64-4.24.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.24/tails-amd64-4.24.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.25/tails-amd64-4.25.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.25/tails-amd64-4.25.iso.sig TAILS_X64_SUM_TYPE=pgp From 434479e5a304076fb30edda743c858883e7878ad Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 Dec 2021 17:50:50 +0100 Subject: [PATCH 470/694] updated url (debian, sysrescue) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index dfba245..df3b850 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-12-09 +# v 2021-12-21 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -89,14 +89,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.3-19/clonezilla-live-2.7.3-19-i686.iso -DEBIAN_KVER=5.10.0-9 +DEBIAN_KVER=5.10.0-10 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.1.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.2.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.1.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.2.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -157,7 +157,7 @@ FINNIX_X64_SUM_TYPE=gpg GNURADIO_X64=gnuradio-x64 -GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso +#GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso KALI_X64=kali-x64 @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.06/systemrescue-8.06-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.07/systemrescue-8.07-amd64.iso TAILS_X64=tails-x64 From 70f940f318c37d5596753b9bb04b137b7d1a62b3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 29 Dec 2021 09:14:02 +0100 Subject: [PATCH 471/694] updated url (kali, dragonos) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index df3b850..50b1984 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-12-21 +# v 2021-12-29 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR18.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR18.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR19.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR19.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 @@ -161,7 +161,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.4-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.4a-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 994153b9f2d427c806cb4aab6344556b1e85d6bc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 6 Jan 2022 07:02:37 +0100 Subject: [PATCH 472/694] updated url (mint) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 50b1984..bebc460 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2021-12-29 +# v 2022-01-06 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -200,8 +200,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20.2/linuxmint-20.2-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20.2/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20.3/linuxmint-20.3-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20.3/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From 6320b4c811d2abc325deb3be171c62320bd17170 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 8 Jan 2022 20:25:23 +0100 Subject: [PATCH 473/694] updated url (clonezilla) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index bebc460..5ac2e3d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-01-06 +# v 2022-01-08 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -84,9 +84,9 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.3-19/clonezilla-live-2.7.3-19-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.8.1-12/clonezilla-live-2.8.1-12-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.7.3-19/clonezilla-live-2.7.3-19-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.8.1-12/clonezilla-live-2.8.1-12-i686.iso DEBIAN_KVER=5.10.0-10 From c2919a6694b40fd8f6334b08d0ceb03023dd3a5f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 11 Jan 2022 23:00:12 +0100 Subject: [PATCH 474/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5ac2e3d..d56e6a9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-01-08 +# v 2022-01-11 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -245,8 +245,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.25/tails-amd64-4.25.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.25/tails-amd64-4.25.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.26.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.26.iso.sig TAILS_X64_SUM_TYPE=pgp From ba0052be29339ab5cd49178fccab15cb5305ec79 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 18 Jan 2022 07:34:02 +0100 Subject: [PATCH 475/694] updated url (sysrecue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index d56e6a9..cb21d0c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-01-11 +# v 2022-01-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -241,7 +241,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/8.07/systemrescue-8.07-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.00/systemrescue-9.00-amd64.iso TAILS_X64=tails-x64 From b09d0152c2cb23076cb194113ecdc8504d7149a5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 27 Jan 2022 20:31:08 +0100 Subject: [PATCH 476/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index cb21d0c..0b2f0a0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-01-18 +# v 2022-01-27 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR19.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR19.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR20.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR20.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From cec877665af100083435e794d2d5cccc504db296 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 31 Jan 2022 21:26:08 +0100 Subject: [PATCH 477/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0b2f0a0..148bb15 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-01-27 +# v 2022-01-31 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -124,8 +124,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR20.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR20.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR21.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR21.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From f486f7fdafa2aa4865bed7d6ef6305a9c9b0de23 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 Feb 2022 19:11:36 +0100 Subject: [PATCH 478/694] updated url (tinycore) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 148bb15..33729a6 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-01-31 +# v 2022-02-02 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -251,13 +251,13 @@ TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/12.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/12.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/13.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/13.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 -TINYCORE_X86_URL=http://tinycorelinux.net/12.x/x86/release/TinyCore-current.iso -TINYCORE_X86_SUM=http://tinycorelinux.net/12.x/x86/release/TinyCore-current.iso.md5.txt +TINYCORE_X86_URL=http://tinycorelinux.net/13.x/x86/release/TinyCore-current.iso +TINYCORE_X86_SUM=http://tinycorelinux.net/13.x/x86/release/TinyCore-current.iso.md5.txt TINYCORE_X86_SUM_TYPE=md5 From 7209292e2d71a3c100181445cb2af5d5f9bdaaa0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 Feb 2022 19:38:49 +0100 Subject: [PATCH 479/694] updated url (arch) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 33729a6..c9e82d7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -76,7 +76,7 @@ fi ######################################################################## ARCH_NETBOOT_X64=arch-netboot-x64 -ARCH_NETBOOT_X64_URL=https://www.archlinux.org/static/netboot/ipxe.lkrn +ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe.lkrn BLACKARCH_X64=blackarch-x64 From 36f8a3c9fc3ad95d39a3ea21e11481efabcc2d05 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 2 Feb 2022 19:54:59 +0100 Subject: [PATCH 480/694] just another version of broken url check --- p2-include-url | 1 + 1 file changed, 1 insertion(+) diff --git a/p2-include-url b/p2-include-url index c9e82d7..276a90b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -14,6 +14,7 @@ fi # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl --silent --head $i && echo Ok = $i || echo failed $? = $i; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From 61e96030ae593ab461049577356bffbd04b93ce9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Feb 2022 05:28:41 +0100 Subject: [PATCH 481/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 276a90b..ccadf8b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-02-02 +# v 2022-02-08 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.26.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.26.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.27.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.27.iso.sig TAILS_X64_SUM_TYPE=pgp From 402c7a060633b698563844e854b35bc97dbdb3df Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Feb 2022 05:32:19 +0100 Subject: [PATCH 482/694] updated url (tails) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index ccadf8b..4bf79bd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.27.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.26/tails-amd64-4.27.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.27/tails-amd64-4.27.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.27/tails-amd64-4.27.iso.sig TAILS_X64_SUM_TYPE=pgp From 42f8e317db1c66110d2c0f0d57a878d6caea908f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Feb 2022 07:04:34 +0100 Subject: [PATCH 483/694] add color in check for broken url --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4bf79bd..b4c9e75 100644 --- a/p2-include-url +++ b/p2-include-url @@ -13,8 +13,8 @@ fi # v 2022-02-08 # check for broken url -# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo Ok = $i || echo failed $? = $i; done -# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl --silent --head $i && echo Ok = $i || echo failed $? = $i; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[31mFAILED\e[0m $? = $i"; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[31mFAILED\e[0m = $i"; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From d94c4872461f6340453e67a395a18da80f32e4aa Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Feb 2022 20:09:20 +0100 Subject: [PATCH 484/694] more colorful FAILED status --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index b4c9e75..fd4ccf4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -13,8 +13,8 @@ fi # v 2022-02-08 # check for broken url -# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[31mFAILED\e[0m $? = $i"; done -# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[31mFAILED\e[0m = $i"; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From 76d2c0aab4dff027af22c4efe47fb39e272890da Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 13 Feb 2022 19:43:46 +0100 Subject: [PATCH 485/694] removed iptables --- p0-install | 7 ------- 1 file changed, 7 deletions(-) diff --git a/p0-install b/p0-install index 49fdf0a..8c8deb8 100644 --- a/p0-install +++ b/p0-install @@ -136,13 +136,6 @@ echo -e "\e[32minstall wlan access point\e[0m"; sudo apt install -y --no-install-recommends hostapd -######################################################################## -echo -e "\e[32minstall iptables for network address translation (NAT)\e[0m"; -echo "iptables-persistent iptables-persistent/autosave_v4 boolean true" | sudo debconf-set-selections; -echo "iptables-persistent iptables-persistent/autosave_v6 boolean true" | sudo debconf-set-selections; -sudo apt install -y --no-install-recommends iptables iptables-persistent - - ######################################################################## $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { echo -e "\e[32minstall chrony as ntp client and ntp server\e[0m"; From ee146725853c140a391731fbe109536b78669f0c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 13 Feb 2022 20:38:57 +0100 Subject: [PATCH 486/694] removed iptables rules, add nftables rues --- p1-setup | 126 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 111 insertions(+), 15 deletions(-) diff --git a/p1-setup b/p1-setup index cccd23d..4bc84f0 100644 --- a/p1-setup +++ b/p1-setup @@ -435,24 +435,120 @@ EOF #################################################################### ## network nat - sudo iptables -t nat --list | grep -q MASQUERADE 2> /dev/null || { - echo -e "\e[36m setup iptables for nat\e[0m"; - sudo iptables -t nat -A POSTROUTING -o "${INTERFACE_ETH0:?}" -j MASQUERADE -m comment --comment "NAT: masquerade traffic going out over ${INTERFACE_ETH0:?}" - sudo dpkg-reconfigure --unseen-only iptables-persistent + do_backup etc/nftables.conf + cat << EOF | sudo tee /etc/nftables.conf &> /dev/null +#!/usr/sbin/nft -f + +# https://wiki.nftables.org/wiki-nftables/index.php/Simple_ruleset_for_a_home_router +# /etc/nftables.conf +# sudo nft -f my_file +# sudo nft list ruleset +# sudo nft -j list ruleset + +flush ruleset + +define DEV_PRIVATE = ${INTERFACE_ETH0:?} +define DEV_WORLD = ${INTERFACE_WLAN0:?} +define NET_PRIVATE = ${IP_ETH0_0:?} +define NET6_PRIVATE = { fd80::0/96, } + +table ip global { + + chain inbound_world { + #icmp type echo-request limit rate 1/second burst 2 packets accept + + #ip protocol . th dport vmap { + # udp . 53 : accept, tcp . 53 : accept, # DNS + # udp . 5353 : accept, tcp . 5353 : accept, # mDNS + # udp . 853 : accept, tcp . 853 : accept, # DNS over TLS + # udp . 67 : accept, # DHCP + # tcp . ntp : accept, + #} } - #################################################################### - ## network nat limit access of eth1 and wlan0 - sudo iptables-save | grep -q LIMIT-ACCESS 2> /dev/null || { - echo -e "\e[36m setup iptables for limiting traffic of ${INTERFACE_ETH1:?}\e[0m"; - sudo iptables -t filter -A INPUT -s "${IP_ETH1_0:?}" ! -d "${IP_ETH1_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (eth1) going to outside own subnet" - sudo iptables -t filter -A INPUT -s "${IP_WLAN0_0:?}" ! -d "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to outside own subnet" - sudo iptables -t filter -A FORWARD -s "${IP_WLAN0_0:?}" -j REJECT --reject-with icmp-host-unreachable -m comment --comment "LIMIT-ACCESS: reject all traffic from (wlan0) going to internet" - sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (udp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p tcp -m multiport --dports 53,135,853,5353 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all (tcp) DNS traffic from all but ${INTERFACE_ETH0:?} to local DNS server" - sudo iptables -t nat -A PREROUTING ! -i "${INTERFACE_ETH0:?}" -p udp -m multiport --dports 123 -j REDIRECT -m comment --comment "LIMIT-ACCESS: redirect all NTP traffic from all but ${INTERFACE_ETH0:?} to local NTP server" - sudo dpkg-reconfigure --unseen-only iptables-persistent + chain inbound_private { + icmp type echo-request limit rate 1/second burst 2 packets accept + + ip protocol . th dport vmap { + udp . 53 : accept, tcp . 53 : accept, # DNS + udp . 5353 : accept, tcp . 5353 : accept, # mDNS + udp . 853 : accept, tcp . 853 : accept, # DNS over TLS + udp . 67 : accept, # DHCP + tcp . ssh : accept, + tcp . 5900 : accept, # VNC + tcp . 139 : accept, tcp . 445 : accept, # SMB + tcp . http : accept, + tcp . tftp : accept, + tcp . nfs : accept, + tcp . ntp : accept, + tcp . gpsd : accept, + } + } + + chain inbound { + type filter hook input priority 0; policy drop; + + # Allow traffic from established and related packets, drop invalid + ct state vmap { + established : accept, + related : accept, + invalid : drop + } + + # allow loopback traffic, anything else jump to chain for further evaluation + iifname vmap { + lo : accept, + \$DEV_PRIVATE : jump inbound_private, + \$DEV_WORLD : jump inbound_world, + } + + # the rest is dropped by the above policy } + + chain forward { + type filter hook forward priority 0; policy drop; + + # Allow traffic from established and related packets, drop invalid + ct state vmap { + established : accept, + related : accept, + invalid : drop + } + + # connections from the internal net to the internet or to other + # internal nets are allowed + iifname \$DEV_PRIVATE accept + + # the rest is dropped by the above policy + } + + chain postrouting { + type nat hook postrouting priority 100; policy accept; + + # masquerade private IP addresses + #ip saddr \$NET_PRIVATE oifname \$DEV_WORLD masquerade + + # masquerade traffic from private interface + #iifname \$DEV_PRIVATE oifname \$DEV_WORLD masquerade + + # masquerade all traffic to world interface + oifname \$DEV_WORLD masquerade + } +} + +# TODO +table ip6 global { + chain inbound { + type filter hook input priority 0; policy drop; + } + chain forward { + type filter hook forward priority 0; policy drop; + } + chain postrouting { + type filter hook postrouting priority 0; policy drop; + } +} +EOF } From 8359bc2c4291ca06de58a26c3d908d381bb3191e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 13 Feb 2022 22:44:25 +0100 Subject: [PATCH 487/694] hiding vendorclassid --- p1-setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p1-setup b/p1-setup index 4bc84f0..7c53650 100644 --- a/p1-setup +++ b/p1-setup @@ -109,6 +109,7 @@ interface ${INTERFACE_ETH1:?} static ip6_address=fd80::${IP_ETH1:?}/120 static routers=${IP_ETH1_ROUTER} static domain_name_servers=${IP_ETH1_ROUTER} + vendorclassid ######################################## interface ${INTERFACE_WLAN0:?} @@ -117,6 +118,7 @@ interface ${INTERFACE_WLAN0:?} static ip6_address=fd80::${IP_WLAN0:?}/120 static routers=${IP_WLAN0_ROUTER} static domain_name_servers=${IP_WLAN0_ROUTER} + vendorclassid EOF sudo systemctl daemon-reload; sudo systemctl restart dhcpcd.service; From 5fede8dc473e17576efa7f0fdc1239b6714ddd69 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Feb 2022 08:54:20 +0100 Subject: [PATCH 488/694] changed some wrong udp/tcp firewall settings --- p1-setup | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/p1-setup b/p1-setup index 7c53650..fc1ac39 100644 --- a/p1-setup +++ b/p1-setup @@ -462,28 +462,25 @@ table ip global { #ip protocol . th dport vmap { # udp . 53 : accept, tcp . 53 : accept, # DNS # udp . 5353 : accept, tcp . 5353 : accept, # mDNS - # udp . 853 : accept, tcp . 853 : accept, # DNS over TLS - # udp . 67 : accept, # DHCP - # tcp . ntp : accept, + # udp . 67 : accept, udp . 68 : accept, # DHCP + # udp . 123 : accept, # NTP #} } chain inbound_private { icmp type echo-request limit rate 1/second burst 2 packets accept + # TODO: fedora can nfsboot, ubuntu & debian can't! why? ip protocol . th dport vmap { udp . 53 : accept, tcp . 53 : accept, # DNS udp . 5353 : accept, tcp . 5353 : accept, # mDNS - udp . 853 : accept, tcp . 853 : accept, # DNS over TLS - udp . 67 : accept, # DHCP - tcp . ssh : accept, - tcp . 5900 : accept, # VNC + udp . 67 : accept, udp . 68 : accept, # DHCP + udp . 123 : accept, # NTP tcp . 139 : accept, tcp . 445 : accept, # SMB - tcp . http : accept, - tcp . tftp : accept, - tcp . nfs : accept, - tcp . ntp : accept, - tcp . gpsd : accept, + tcp . 80 : accept, # HTTP + udp . 69 : accept, # TFTP + udp . 111 : accept, tcp . 111 : accept, # RPC + udp . 2049 : accept, tcp . 2049 : accept, # NFS } } From bf55ce0a2f3927c503a4240f05955137e4ed2040 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Feb 2022 08:58:39 +0100 Subject: [PATCH 489/694] added url for nftables --- p1-setup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p1-setup b/p1-setup index fc1ac39..62cf8fe 100644 --- a/p1-setup +++ b/p1-setup @@ -441,7 +441,9 @@ EOF cat << EOF | sudo tee /etc/nftables.conf &> /dev/null #!/usr/sbin/nft -f +# https://wiki.nftables.org/wiki-nftables/index.php/Main_Page # https://wiki.nftables.org/wiki-nftables/index.php/Simple_ruleset_for_a_home_router +# https://www.netfilter.org/projects/nftables/manpage.html # /etc/nftables.conf # sudo nft -f my_file # sudo nft list ruleset From a2a94d3ca4405b933ee2994619de4350571921d8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Feb 2022 15:07:32 +0100 Subject: [PATCH 490/694] updated url (kali, sysrescue) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index fd4ccf4..ec30672 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-02-08 +# v 2022-02-15 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -162,7 +162,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2021.4a-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.1-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -242,7 +242,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.00/systemrescue-9.00-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.01/systemrescue-9.01-amd64.iso TAILS_X64=tails-x64 @@ -268,7 +268,7 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-21.09.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-22.01.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 From c5edaa69eaf4b317538fe016019b0f0d350f2350 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 27 Feb 2022 10:05:22 +0100 Subject: [PATCH 491/694] fix nfsboot when firewall enabled force nfs-kernel-server to use fixed port 20048 for rpc-mountd --- p1-setup | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/p1-setup b/p1-setup index 62cf8fe..93363d7 100644 --- a/p1-setup +++ b/p1-setup @@ -436,11 +436,22 @@ EOF #################################################################### - ## network nat - do_backup etc/nftables.conf - cat << EOF | sudo tee /etc/nftables.conf &> /dev/null + ## network firewall + grep -q mod_install_server /etc/default/nfs-kernel-server 2> /dev/null || { + echo -e "\e[36m setup nfs-kernel-server for firewall\e[0m"; + do_backup etc/default/nfs-kernel-server + sudo sed /etc/default/nfs-kernel-server -i -e 's/RPCMOUNTDOPTS=.*$/RPCMOUNTDOPTS=\"--manage-gids -p 20048\"/' + echo '# mod_install_server' | sudo tee -a /etc/default/nfs-kernel-server &>/dev/null + } + grep -q mod_install_server /etc/nftables.conf 2> /dev/null || { + echo -e "\e[36m setup nfs-kernel-server for firewall\e[0m"; + do_backup etc/nftables.conf + cat << EOF | sudo tee /etc/nftables.conf &> /dev/null #!/usr/sbin/nft -f +## mod_install_server +## mod_install_stratum_one + # https://wiki.nftables.org/wiki-nftables/index.php/Main_Page # https://wiki.nftables.org/wiki-nftables/index.php/Simple_ruleset_for_a_home_router # https://www.netfilter.org/projects/nftables/manpage.html @@ -453,6 +464,7 @@ flush ruleset define DEV_PRIVATE = ${INTERFACE_ETH0:?} define DEV_WORLD = ${INTERFACE_WLAN0:?} +define DEV_WORLD2 = ${INTERFACE_ETH1:?} define NET_PRIVATE = ${IP_ETH0_0:?} define NET6_PRIVATE = { fd80::0/96, } @@ -463,8 +475,8 @@ table ip global { #ip protocol . th dport vmap { # udp . 53 : accept, tcp . 53 : accept, # DNS - # udp . 5353 : accept, tcp . 5353 : accept, # mDNS - # udp . 67 : accept, udp . 68 : accept, # DHCP + # udp . 5353 : accept, # mDNS + # udp . 67 : accept, # DHCP # udp . 123 : accept, # NTP #} } @@ -472,17 +484,20 @@ table ip global { chain inbound_private { icmp type echo-request limit rate 1/second burst 2 packets accept - # TODO: fedora can nfsboot, ubuntu & debian can't! why? ip protocol . th dport vmap { udp . 53 : accept, tcp . 53 : accept, # DNS - udp . 5353 : accept, tcp . 5353 : accept, # mDNS - udp . 67 : accept, udp . 68 : accept, # DHCP + udp . 5353 : accept, # mDNS + udp . 67 : accept, # DHCP udp . 123 : accept, # NTP tcp . 139 : accept, tcp . 445 : accept, # SMB tcp . 80 : accept, # HTTP udp . 69 : accept, # TFTP - udp . 111 : accept, tcp . 111 : accept, # RPC + udp . 111 : accept, tcp . 111 : accept, # RPC-BIND udp . 2049 : accept, tcp . 2049 : accept, # NFS + udp . 20048 : accept, tcp . 20048 : accept, # RPC-MOUNTD + tcp . 22 : accept, # SSH + tcp . 5900 : accept, # VNC + tcp . 2947 : accept, # GPSD } } @@ -501,6 +516,7 @@ table ip global { lo : accept, \$DEV_PRIVATE : jump inbound_private, \$DEV_WORLD : jump inbound_world, + \$DEV_WORLD2 : jump inbound_world, } # the rest is dropped by the above policy From 3a4c8d534140f7a7a687478a7a8ad2e4db4b1d16 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 27 Feb 2022 10:08:16 +0100 Subject: [PATCH 492/694] typo --- p1-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p1-setup b/p1-setup index 93363d7..81305a9 100644 --- a/p1-setup +++ b/p1-setup @@ -444,7 +444,7 @@ EOF echo '# mod_install_server' | sudo tee -a /etc/default/nfs-kernel-server &>/dev/null } grep -q mod_install_server /etc/nftables.conf 2> /dev/null || { - echo -e "\e[36m setup nfs-kernel-server for firewall\e[0m"; + echo -e "\e[36m setup nftables for firewall\e[0m"; do_backup etc/nftables.conf cat << EOF | sudo tee /etc/nftables.conf &> /dev/null #!/usr/sbin/nft -f From 0e822214133b21c2d7802b993f511141a3c80d98 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 28 Feb 2022 22:23:16 +0100 Subject: [PATCH 493/694] updated url (ubuntu lts) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index ec30672..0fc6a30 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-02-15 +# v 2022-02-28 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -185,7 +185,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.3-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.4-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -273,7 +273,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.3-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.4-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 3219898192364ec3856b86bb49846ce723662e56 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 8 Mar 2022 19:31:32 +0100 Subject: [PATCH 494/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0fc6a30..053afcd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-02-28 +# v 2022-03-08 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.27/tails-amd64-4.27.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.27/tails-amd64-4.27.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.28/tails-amd64-4.28.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.28/tails-amd64-4.28.iso.sig TAILS_X64_SUM_TYPE=pgp From c945a9fb2d32ce4e5e2f9fbc8afbb88e1e8d1e87 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 24 Mar 2022 07:34:39 +0100 Subject: [PATCH 495/694] updated url (finnix) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 053afcd..429b408 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-03-08 +# v 2022-03-24 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -152,8 +152,8 @@ FEDORA_X64_SUM_TYPE=sha256 FINNIX_X64=finnix-x64 -FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-123.iso -FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-123.iso.gpg +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-124.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-124.iso.gpg FINNIX_X64_SUM_TYPE=gpg From 1adcae979ca3471938b250d65856500739922f77 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 27 Mar 2022 19:33:46 +0200 Subject: [PATCH 496/694] updated url (debian, dragonos) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 429b408..719c4a5 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-03-24 +# v 2022-03-27 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -90,14 +90,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.8.1-12/clonezilla-live-2.8.1-12-i686.iso -DEBIAN_KVER=5.10.0-10 +DEBIAN_KVER=5.10.0-13 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.2.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.3.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.2.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.3.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR21.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_PublicR21.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R22.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R22.1.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 From 18eb37bbbb95b2562738ed5da07b9af429403479 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 5 Apr 2022 18:48:03 +0200 Subject: [PATCH 497/694] updated url (parrot, tails) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 719c4a5..0307d86 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-03-27 +# v 2022-04-05 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -218,13 +218,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.3/Parrot-kde-security-4.11.3_amd64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.3/signed-hashes.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0/Parrot-security-5.0_amd64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/4.11.3/Parrot-kde-home-4.11.3_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/4.11.3/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0/Parrot-home-5.0_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.28/tails-amd64-4.28.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.28/tails-amd64-4.28.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.29/tails-amd64-4.29.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.29/tails-amd64-4.29.iso.sig TAILS_X64_SUM_TYPE=pgp From f3d12c1bf1ea1c1bbeccdd0f0c96eca63ab7b320 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 12 Apr 2022 06:22:18 +0200 Subject: [PATCH 498/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0307d86..d22a583 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-04-05 +# v 2022-04-12 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -242,7 +242,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.01/systemrescue-9.01-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.02/systemrescue-9.02-amd64.iso TAILS_X64=tails-x64 From 9351233e7f0e1d5afa5f6f09b5d5b1ea12ecda4a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 20 Apr 2022 09:00:41 +0200 Subject: [PATCH 499/694] updated url (piCore) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index d22a583..a6609d7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-04-12 +# v 2022-04-20 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -336,7 +336,7 @@ CENTOS_X64=centos-x64 # update the url, if disk image is outdated ######################################################################## PI_CORE=pi-core -PI_CORE_URL=http://tinycorelinux.net/9.x/armv7/releases/RPi/piCore-9.0.3.zip +PI_CORE_URL=http://tinycorelinux.net/13.x/armv7/releases/RPi/piCore-13.1.0.zip RPD_BASIC=rpi-raspbian-basic From 65f30f281daf1070c87fd7e2324ec7a82abdd15f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 21 Apr 2022 17:33:57 +0200 Subject: [PATCH 500/694] updated url (ubuntu) --- p2-include-url | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/p2-include-url b/p2-include-url index a6609d7..26e28fd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-04-20 +# v 2022-04-21 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -185,13 +185,13 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/lubuntu-20.04.4-desktop-amd64.iso -LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/20.04/release/SHA256SUMS +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/21.10/release/lubuntu-21.10-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/21.10/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -268,13 +268,13 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-22.01.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-22.03.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/20.04/ubuntu-20.04.4-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/20.04/SHA256SUMS +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 @@ -283,13 +283,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/21.10/release/ubuntustudio-21.10-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/21.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/ubuntustudio-22.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/21.10/ubuntu-21.10-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/21.10/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 6a1f25583638290278e5a60ca5ef9de162a5cd90 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 3 May 2022 22:37:29 +0200 Subject: [PATCH 501/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 26e28fd..76c0ec6 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-04-21 +# v 2022-05-03 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.29/tails-amd64-4.29.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-4.29/tails-amd64-4.29.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.0/tails-amd64-5.0.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.0/tails-amd64-5.0.iso.sig TAILS_X64_SUM_TYPE=pgp From 02378033ddd33053aa5aeb05f37a2736c2780bc4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 11 May 2022 10:31:22 +0200 Subject: [PATCH 502/694] updated url (fedora, parrot) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 76c0ec6..f0ff53a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-05-03 +# v 2022-05-11 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -146,8 +146,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-35-1.2.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/35/Workstation/x86_64/iso/Fedora-Workstation-35-1.2-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/36/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-36-1.5.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/36/Workstation/x86_64/iso/Fedora-Workstation-36-1.5-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 @@ -218,13 +218,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0/Parrot-security-5.0_amd64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0/signed-hashes.txt +PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0.1/Parrot-security-5.0.1_amd64.iso +PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0/Parrot-home-5.0_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0/signed-hashes.txt +PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0.1/Parrot-home-5.0.1_amd64.iso +PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From bb0fe22212b843ff16c5df9a262e817b8992e11b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 18 May 2022 05:58:22 +0200 Subject: [PATCH 503/694] updated url (kali) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index f0ff53a..f8ae959 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-05-11 +# v 2022-05-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -162,7 +162,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.1-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 97df8113e0215f79225286cee9a0981caba3bd46 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 18 May 2022 06:07:58 +0200 Subject: [PATCH 504/694] updated url (ubuntu daily) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index f8ae959..cc942a4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -180,7 +180,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/jammy-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/kinetic-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -263,7 +263,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/jammy-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/kinetic-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -278,7 +278,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/jammy-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/kinetic-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From fed88613fdfeb2f25e8e82d4b0833b70ce084f74 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 31 May 2022 17:36:42 +0200 Subject: [PATCH 505/694] updated url (clonzilla, sysrescue, dragonos) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index cc942a4..fa2259b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-05-18 +# v 2022-05-31 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -85,9 +85,9 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.8.1-12/clonezilla-live-2.8.1-12-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.0-26/clonezilla-live-3.0.0-26-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/2.8.1-12/clonezilla-live-2.8.1-12-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.0-26/clonezilla-live-3.0.0-26-i686.iso DEBIAN_KVER=5.10.0-13 @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R22.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R22.1.iso.md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R24.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R24.iso.md5 DRAGONOS_X64_SUM_TYPE=md5 @@ -242,7 +242,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.02/systemrescue-9.02-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.03/systemrescue-9.03-amd64.iso TAILS_X64=tails-x64 From b98d9717e2ed0858dcf09e54017c07ed5301655b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 5 Jun 2022 12:36:45 +0200 Subject: [PATCH 506/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index fa2259b..8e2d499 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-05-31 +# v 2022-06-05 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.0/tails-amd64-5.0.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.0/tails-amd64-5.0.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1/tails-amd64-5.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1/tails-amd64-5.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 0d643453d53924a31945c6776744d7f3de606aec Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 5 Jun 2022 22:31:34 +0200 Subject: [PATCH 507/694] forgot to rename buster to bullseye --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1e12ab..0408a3e 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ WAN───╢DSL router╟───╢ s ║ ║RPi- ╠╣USB-stick║ optional, if your SD card is too small or you don't want to have all the server content on the SD card, you can use the USB memory stick to hold all content. for that you have to do small tiny changes on the '**p2-include-var-sh**' script, by changing '**DST_ROOT=/srv**' to something else. ### software: -- **Raspberry Pi OS Buster** or **Raspberry Pi OS Buster Lite** (2021-01-11), https://www.raspberrypi.org/downloads/raspbian/) +- **Raspberry Pi OS Bullseye** or **Raspberry Pi OS Bullseye Lite**, https://www.raspberrypi.org/downloads/raspbian/) ## installation: assuming, -- your Raspberry Pi is running Raspberry Pi OS Buster (or Lite) from 2021-01-11, +- your Raspberry Pi is running Raspberry Pi OS Bullseye (or Lite), - and has a proper connection to the internet via LAN (eth0). - and your SD card can hold all the iso images (16GB when you use unmodified script) @@ -286,7 +286,7 @@ Serial : 0000000087654321 then take ```RPI_SN0=87654321```.
if you have more than one RPi3-client for network booting you have to add them by hand to the ```/srv/tftp``` folder on the PXE-server. -the script will download Raspberry Pi OS Buster Lite and prepare it for the RPi3-client with the given serial number. +the script will download Raspberry Pi OS Lite and prepare it for the RPi3-client with the given serial number. by default, a RPi3-client is not enabled for network booting. you have to enable it once. From c07d3d3d726f9d896a10305894237a987bc52176 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 7 Jul 2022 08:34:16 +0200 Subject: [PATCH 508/694] updated url (tails, openSuse) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8e2d499..63e539b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-06-05 +# v 2022-07-07 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -207,13 +207,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-Rescue-CD-x86_64-Media.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-Rescue-CD-x86_64-Media.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-Rescue-CD-x86_64-Media.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-Rescue-CD-x86_64-Media.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-KDE-Live-x86_64-Media.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.3-KDE-Live-x86_64-Media.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-KDE-Live-x86_64-Media.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-KDE-Live-x86_64-Media.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1/tails-amd64-5.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1/tails-amd64-5.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1.1/tails-amd64-5.1.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1.1/tails-amd64-5.1.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 59d2b4d8d27f3dd59c1e9d8d73f2ab12cee31724 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 15 Jul 2022 14:19:08 +0200 Subject: [PATCH 509/694] updated url (debian, tails) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 63e539b..34dcad4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-07-07 +# v 2022-07-15 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -92,12 +92,12 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER=5.10.0-13 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.3.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.4.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.3.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.4.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1.1/tails-amd64-5.1.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.1.1/tails-amd64-5.1.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.2/tails-amd64-5.2.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.2/tails-amd64-5.2.iso.sig TAILS_X64_SUM_TYPE=pgp From 2a4d7c5a56a6a27afa55ff2770cb451eea3df38a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 15 Jul 2022 14:21:58 +0200 Subject: [PATCH 510/694] updated debian --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 34dcad4..140ff6c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -90,7 +90,7 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.0-26/clonezilla-live-3.0.0-26-i686.iso -DEBIAN_KVER=5.10.0-13 +DEBIAN_KVER=5.10.0-16 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.4.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS From 5e666883e66745e6b55a15ec8a2fceba95520d90 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Jul 2022 22:24:16 +0200 Subject: [PATCH 511/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 140ff6c..7fe48f6 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-07-15 +# v 2022-07-28 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.2/tails-amd64-5.2.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.2/tails-amd64-5.2.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3/tails-amd64-5.3.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3/tails-amd64-5.3.iso.sig TAILS_X64_SUM_TYPE=pgp From d80a8276828378e8a631b6510135db7c9813da31 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Aug 2022 12:48:44 +0200 Subject: [PATCH 512/694] updated url (tails, mint) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7fe48f6..9c86b26 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-07-28 +# v 2022-08-02 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -201,8 +201,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/20.3/linuxmint-20.3-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/20.3/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21/linuxmint-21-cinnamon-64bit.iso.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21/sha256sum.txt MINT_X64_SUM_TYPE=sha256 @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3/tails-amd64-5.3.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3/tails-amd64-5.3.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3.1/tails-amd64-5.3.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3.1/tails-amd64-5.3.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 321559badd4364dd36850510b2f5ff683f405a56 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 2 Aug 2022 12:51:56 +0200 Subject: [PATCH 513/694] Update p2-include-url --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 9c86b26..4cace5f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -201,7 +201,7 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21/linuxmint-21-cinnamon-64bit.iso.iso +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21/linuxmint-21-cinnamon-64bit.iso MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From a32c29f5a8da2d86de724d947e7666969f6da012 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 13 Aug 2022 18:24:54 +0200 Subject: [PATCH 514/694] updated url (kali, sysrescue, ubuntu) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4cace5f..cd04802 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-08-02 +# v 2022-08-13 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -162,7 +162,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -185,12 +185,12 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.1-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04-desktop-amd64.iso +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.1-desktop-amd64.iso LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 @@ -242,7 +242,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.03/systemrescue-9.03-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.04/systemrescue-9.04-amd64.iso TAILS_X64=tails-x64 @@ -273,7 +273,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.1-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -283,12 +283,12 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/ubuntustudio-22.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/ubuntustudio-22.04.1-dvd-amd64.iso UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04-desktop-amd64.iso +UBUNTU_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.1-desktop-amd64.iso UBUNTU_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 From 38d204ff62e2f7384d73c6432a106cdba0e3ee33 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 25 Aug 2022 08:13:52 +0200 Subject: [PATCH 515/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index cd04802..8c94d8e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-08-13 +# v 2022-08-25 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3.1/tails-amd64-5.3.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.3.1/tails-amd64-5.3.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.4/tails-amd64-5.4.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.4/tails-amd64-5.4.iso.sig TAILS_X64_SUM_TYPE=pgp From 98cb2b7310f4cf81f46f347ffec1d8c6382d0a0f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 25 Aug 2022 08:21:18 +0200 Subject: [PATCH 516/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8c94d8e..743aa4e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -125,9 +125,9 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R24.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R24.iso.md5 -DRAGONOS_X64_SUM_TYPE=md5 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.iso.sha256 +DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 From 61339f18655e3c911023195744c75ba92bd4e23f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 29 Aug 2022 23:32:52 +0200 Subject: [PATCH 517/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 743aa4e..298a440 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-08-25 +# v 2022-08-29 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 150c87d54b7fcb8475b9d372282ffe50b3c8b296 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 9 Sep 2022 09:44:14 +0200 Subject: [PATCH 518/694] updated url (parrot) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 298a440..5de9c64 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-08-29 +# v 2022-09-09 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -218,8 +218,8 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0.1/Parrot-security-5.0.1_amd64.iso -PARROT_FULL_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.0.1/Parrot-security-5.0.1_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.0.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 From 1b22fd66467afcb5b8e203546727d1a9709b6009 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 9 Sep 2022 09:49:21 +0200 Subject: [PATCH 519/694] updated url (parrot, devuan) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5de9c64..ed1de12 100644 --- a/p2-include-url +++ b/p2-include-url @@ -114,8 +114,8 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.0_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.0_amd64_desktop-live.iso.sha256 +DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.1_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.1_amd64_desktop-live.iso.sha256 DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 @@ -223,8 +223,8 @@ PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.0.1/signed-hashes.tx PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://cdimage.parrotsec.org/parrot/iso/5.0.1/Parrot-home-5.0.1_amd64.iso -PARROT_LITE_X64_SUM=https://cdimage.parrotsec.org/parrot/iso/5.0.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.0.1/Parrot-home-5.0.1_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.0.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 2b082f2714c146722ac41c28107278c147ba17eb Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Sep 2022 07:05:37 +0200 Subject: [PATCH 520/694] updated url (debian) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index ed1de12..1599741 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-09-09 +# v 2022-09-14 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -90,14 +90,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.0-26/clonezilla-live-3.0.0-26-i686.iso -DEBIAN_KVER=5.10.0-16 +DEBIAN_KVER=5.10.0-18 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.4.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.5.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.4.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.5.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 2335f9b5348e06d0b26838104ce9883d05bf8430 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Sep 2022 07:09:25 +0200 Subject: [PATCH 521/694] updated url (devuan) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1599741..7c25c81 100644 --- a/p2-include-url +++ b/p2-include-url @@ -114,13 +114,13 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.1_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.1_amd64_desktop-live.iso.sha256 +DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.2_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/SHA256SUMS.txt DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_beowulf/desktop-live/devuan_beowulf_3.1.1_i386_desktop-live.iso -DEVUAN_X86_SUM=https://files.devuan.org/devuan_beowulf/desktop-live/SHA256SUMS.txt +DEVUAN_X86_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.2_i386_desktop-live.iso +DEVUAN_X86_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/SHA256SUMS.txt DEVUAN_X86_SUM_TYPE=sha256 From ef280b21f2a8851fbcfc914b007543fa34485bac Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 14 Sep 2022 08:38:29 +0200 Subject: [PATCH 522/694] Update p2-include-url --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7c25c81..718494a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -13,8 +13,8 @@ fi # v 2022-09-14 # check for broken url -# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done -# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done +# for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl --connect-timeout 5 --retry 0 -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install From 5b4072c033fe2eb2d2ac6372f9cbb2b9bb9a1891 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 28 Sep 2022 08:35:05 +0200 Subject: [PATCH 523/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 718494a..1dbbbe9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-09-14 +# v 2022-09-28 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -218,13 +218,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.0.1/Parrot-security-5.0.1_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.0.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.1/Parrot-security-5.1_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.0.1/Parrot-home-5.0.1_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.0.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.1/Parrot-home-5.1_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From f6c34ac525195de2e99a378f12a161fb2ba7419a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 4 Oct 2022 22:02:55 +0200 Subject: [PATCH 524/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1dbbbe9..89da449 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-09-28 +# v 2022-10-04 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R25.1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R26.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R26.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 0298a6bbd7b102f0bb39cdd6afd38b8bda6d7809 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 13 Oct 2022 22:13:42 +0200 Subject: [PATCH 525/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 89da449..3315822 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-10-04 +# v 2022-10-13 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -246,8 +246,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.4/tails-amd64-5.4.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.4/tails-amd64-5.4.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.5/tails-amd64-5.5.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.5/tails-amd64-5.5.iso.sig TAILS_X64_SUM_TYPE=pgp From e5a499f24454662fb575cea426314a5e312b970f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 25 Oct 2022 00:22:15 +0200 Subject: [PATCH 526/694] updated url (ubuntu, tails, sysrecue, emmabuntus) --- p2-include-url | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3315822..37d6a9d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-10-13 +# v 2022-10-25 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -131,16 +131,15 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-amd64-11.0-1.00.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-amd64-11.0-1.00.iso.sha256 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.02.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.02.iso.sha256 EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-i686-11.0-1.00.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.00/emmabuntus-de4-i686-11.0-1.00.iso.sha256 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.02.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.02.iso.sha256 EMMABUNTUS_X86_SUM_TYPE=sha256 - ESET_SYSRESCUE_X86=eset-rescue-x86 ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso @@ -190,8 +189,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.1-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.10/release/lubuntu-22.10-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -242,12 +241,12 @@ RPDESKTOP_X86_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.04/systemrescue-9.04-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.05/systemrescue-9.05-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.5/tails-amd64-5.5.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.5/tails-amd64-5.5.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.6/tails-amd64-5.6.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.6/tails-amd64-5.6.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -283,13 +282,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/ubuntustudio-22.04.1-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/22.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/22.10/release/ubuntustudio-22.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/22.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.1-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/22.10/ubuntu-22.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/22.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 91489fe49ec82c60d5c140842ed16b1aaa859b42 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 30 Oct 2022 14:21:09 +0100 Subject: [PATCH 527/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 37d6a9d..72e1264 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-10-25 +# v 2022-10-30 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -217,13 +217,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.1/Parrot-security-5.1_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.1.1/Parrot-security-5.1.1_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.1/Parrot-home-5.1_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.1.1/Parrot-home-5.1.1_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 1bc09024bd10d5b143ed699fe0d3f474973eea68 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 10 Nov 2022 06:30:25 +0100 Subject: [PATCH 528/694] updatae url (clonezilla) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 72e1264..0a471af 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-10-30 +# v 2022-11-10 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -85,9 +85,9 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.0-26/clonezilla-live-3.0.0-26-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.2-21/clonezilla-live-3.0.2-21-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.0-26/clonezilla-live-3.0.0-26-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.2-21/clonezilla-live-3.0.2-21-i686.iso DEBIAN_KVER=5.10.0-18 From fb285d4f9010f32124a17786c11269df1aa68317 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 14 Nov 2022 21:09:56 +0100 Subject: [PATCH 529/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0a471af..3386a39 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-11-10 +# v 2022-11-14 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R26.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R26.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R27.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R27.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 9f8c7da17f64336330c8585d86714e297e3dc7de Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 14 Nov 2022 21:14:23 +0100 Subject: [PATCH 530/694] updated url (dragonos) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3386a39..328b964 100644 --- a/p2-include-url +++ b/p2-include-url @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R27.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Focal_R27.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 27a2f5128693a27f5c1857e8b150ff6d5944aef1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Nov 2022 22:45:00 +0100 Subject: [PATCH 531/694] updated url (fedora) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 328b964..488e4e0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-11-14 +# v 2022-11-15 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -145,8 +145,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/36/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-36-1.5.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/36/Workstation/x86_64/iso/Fedora-Workstation-36-1.5-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/37/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-37-1.7.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/37/Workstation/x86_64/iso/Fedora-Workstation-37-1.7-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 From f69a54a90cc5c4c6d6de916fc4535e17626dd885 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Nov 2022 23:04:44 +0100 Subject: [PATCH 532/694] updated menu (fedora) --- p2-include-menu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 975908c..8b6d123 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -144,7 +144,7 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz" ]]; then echo -e "\e[36m add $FEDORA_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -153,8 +153,8 @@ if [[ -f "$FILE_MENU" ]] \ ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html LABEL $FEDORA_X64 MENU LABEL Fedora x64 - KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/isolinux/initrd.img + KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE TEXT HELP Boot to Fedora Workstation Live From ceb70530a20fd1d9fb4572f4af5a7ad22676f4ef Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Nov 2022 23:09:58 +0100 Subject: [PATCH 533/694] updated menu (fedora) --- p2-include-menu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 8b6d123..e5afb34 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -1605,8 +1605,8 @@ goto start :fedora-x64 set custom -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=\${keymap} locale.LANG=\${locale} set options ip=dhcp root=live:nfs://\${next-server}/srv/nfs/\${os}/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -imgselect \${base}/\${os}/isolinux/vmlinuz \${options} \${custom} || goto failed -imgfetch \${base}/\${os}/isolinux/initrd.img || goto failed +imgselect \${base}/\${os}/images/pxeboot/vmlinuz \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/images/pxeboot/initrd.img || goto failed imgexec || goto failed goto start From 4b845e2c632db40fa6f221a545cf265b84bdec01 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 15 Nov 2022 23:23:12 +0100 Subject: [PATCH 534/694] Add files via upload --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d87cdfd --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.run_last +backup.tar.xz From 46f92720942598da28a238441f9093ae50bcd072 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Nov 2022 06:36:13 +0100 Subject: [PATCH 535/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 488e4e0..381a9fb 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-11-15 +# v 2022-11-17 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -125,8 +125,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 3b5a3e55f29b54239eeeca34219d4285eb478ddc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 17 Nov 2022 07:17:11 +0100 Subject: [PATCH 536/694] aded Rescuezilla --- p2-include-handle | 1 + p2-include-menu | 21 +++++++++++++++++++++ p2-include-url | 6 ++++++ 3 files changed, 28 insertions(+) diff --git a/p2-include-handle b/p2-include-handle index ae09aab..7ff2823 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -77,6 +77,7 @@ handle_item '-' iso PARROT_LITE_X64; handle_item '#' iso PENTOO_BETA_X64 timestamping; handle_item '#' iso PENTOO_X64 timestamping; handle_item '#' iso RPDESKTOP_X86 timestamping; +handle_item '-' iso RESCUEZILLA_X64; handle_item '-' iso SYSTEMRESCUE_X64; handle_item '-' iso TAILS_X64; handle_item '+' iso TINYCORE_X64 timestamping; diff --git a/p2-include-menu b/p2-include-menu index e5afb34..ac58448 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -759,6 +759,25 @@ LABEL - EOF fi +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$RESCUEZILLA_X64/casper/vmlinuz" ]]; then + echo -e "\e[36m add $RESCUEZILLA_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $RESCUEZILLA_X64 + MENU LABEL Rescuezilla x64 + KERNEL $FILE_BASE$NFS_ETH0/$RESCUEZILLA_X64/casper/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$RESCUEZILLA_X64/casper/initrd.lz + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RESCUEZILLA_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + TEXT HELP + Boot to Rescuezilla x64 Live + User: + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]]; then @@ -1440,6 +1459,7 @@ item gnuradio-x64 Boot GNU Radio x64 item knoppix-x86 Boot Knoppix x86 item opensuse-rescue-x64 Boot openSUSE Rescue x64 item rpdesktop-x86 Boot Raspberry Pi Desktop +item rescuezilla-x64 Boot Rescuezilla x64 item systemrescue-x64 Boot System Rescue x64 item tails-x64 Boot Tails x64 item ubuntu-studio-x64 Boot Ubuntu Studio x64 @@ -1509,6 +1529,7 @@ goto ubuntu :eset-rescue-x86 :mint-x64 +:rescuezilla-x64 :ubuntu-x86 :desinfect-x64 :desinfect-x86 diff --git a/p2-include-url b/p2-include-url index 381a9fb..ea27e33 100644 --- a/p2-include-url +++ b/p2-include-url @@ -240,6 +240,12 @@ RPDESKTOP_X86_SUM=https://www.raspberrypi.org/downloads/raspberry-pi-desktop/ RPDESKTOP_X86_SUM_TYPE=sha256 +RESCUEZILLA_X64=rescuezilla-x64 +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.4.1/rescuezilla-2.4.1-64bit.jammy.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/ +RESCUEZILLA_X64_SUM_TYPE=sha256 + + SYSTEMRESCUE_X64=systemrescue-x64 SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.05/systemrescue-9.05-amd64.iso From cdc17a355bbdde7c6619eed80255f156ace20738 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 21 Nov 2022 21:15:18 +0100 Subject: [PATCH 537/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index ea27e33..753e661 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-11-17 +# v 2022-11-21 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -251,8 +251,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.6/tails-amd64-5.6.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.6/tails-amd64-5.6.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.7/tails-amd64-5.7.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.7/tails-amd64-5.7.iso.sig TAILS_X64_SUM_TYPE=pgp From 5cd7f422c7735d376cbcf16fd33823d7833adb3c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 21 Nov 2022 21:34:45 +0100 Subject: [PATCH 538/694] fixed typo --- p2-include-menu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-menu b/p2-include-menu index ac58448..fe9f0a3 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -1289,7 +1289,7 @@ fi ######################################################################## if [[ -f "$FILE_MENU" ]]; then - echo -e "\e[36m add section --- Tools and utilities ------\e[0m"; + echo -e "\e[36m add section --- Advanced options ---------\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null LABEL - MENU LABEL --- Advanced options ------------------------------------ From ebbd592578726731069de802651e7bd0ecfcb09d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 21 Nov 2022 21:43:51 +0100 Subject: [PATCH 539/694] fixed typo --- p2-include-menu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index fe9f0a3..f5b60eb 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -1299,7 +1299,7 @@ fi if [[ -f "$FILE_MENU" ]]; then if [[ "${MENU_PXE}" == "${DST_PXE_BIOS}" ]]; then - echo -e "\e[36m add section --- Advanced options ---------\e[0m"; + echo -e "\e[36m add reboot, power off (bios)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL reboot @@ -1313,7 +1313,7 @@ LABEL poweroff EOF else - echo -e "\e[36m add section --- Advanced options ---------\e[0m"; + echo -e "\e[36m add reboot, power off (efi)\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL reboot From 4b4c131b82442c90d11c9d17611e2d0065520c2b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 23 Nov 2022 16:55:40 +0100 Subject: [PATCH 540/694] added bunsen --- p2-include-handle | 1 + p2-include-menu | 19 +++++++++++++++++++ p2-include-url | 9 ++++++++- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/p2-include-handle b/p2-include-handle index 7ff2823..2210b14 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -48,6 +48,7 @@ fi #-----------+----+-----+------------------------+----------------------- #exec |act.|type |VAR. name of item |optional options handle_item '-' iso BLACKARCH_X64; +handle_item '-' iso BUNSEN_X64; handle_item '-' iso CLONEZILLA_X64; handle_item '-' iso CLONEZILLA_X86; handle_item '+' iso DEBIAN_X64; diff --git a/p2-include-menu b/p2-include-menu index f5b60eb..6bfd6c4 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -47,6 +47,25 @@ EOF fi #=========== END =========== +#========== BEGIN ========== +if [[ -f "$FILE_MENU" ]] \ +&& [[ -f "$DST_NFS_ETH0/$BUNSEN_X64/live/vmlinuz" ]]; then + echo -e "\e[36m add $BUNSEN_X64\e[0m"; + cat << EOF | sudo tee -a $FILE_MENU &>/dev/null + ######################################## + LABEL $BUNSEN_X64 + MENU LABEL Bunsen x64 + KERNEL $FILE_BASE$NFS_ETH0/$BUNSEN_X64/live/vmlinuz + INITRD $FILE_BASE$NFS_ETH0/$BUNSEN_X64/live/initrd.img + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$BUNSEN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + TEXT HELP + Boot to Bunsen x64 Live LXDE + User: user, Password: live + ENDTEXT +EOF +fi +#=========== END =========== + #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]]; then diff --git a/p2-include-url b/p2-include-url index 753e661..b589208 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-11-21 +# v 2022-11-23 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -84,6 +84,13 @@ BLACKARCH_X64=blackarch-x64 BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2021.09.01-x86_64.iso +BUNSEN_X64=bunsen-x64 +BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/lithium-3-amd64.hybrid.iso +BUNSEN_X64_SUM=https://ddl.bunsenlabs.org/ddl/release.sha256.txt +BUNSEN_X64_SUM_TYPE=sha256 + + + CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.2-21/clonezilla-live-3.0.2-21-amd64.iso CLONEZILLA_X86=clonezilla-x86 From 71d25982a9f1f34aaa2cdc202a0fabf738156b59 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 23 Nov 2022 16:58:57 +0100 Subject: [PATCH 541/694] added bunsen --- p2-include-menu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2-include-menu b/p2-include-menu index 6bfd6c4..34f1a3d 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -1452,6 +1452,7 @@ imgfree menu iPXE \${version}, \${platform}, \${archx}, \${next-server}, \${pxe_menu} item --gap -- ------------------------- Live Operating systems ------------------------- item arch-netboot-x64 Boot Arch netboot x64 +item bunsen-x64 Boot Bunsen x64 item debian-x64 Boot Debian x64 item devuan-x64 Boot Devuan x64 item fedora-x64 Boot Fedora x64 @@ -1617,6 +1618,7 @@ set file2 initrd.img set extra username=devuan goto debian +:bunsen-x64 :emmabuntus-x64 :emmabuntus-x86 set file1 vmlinuz From 83627638a7c791884866eea8c925c944ea382744 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 4 Dec 2022 22:18:41 +0100 Subject: [PATCH 542/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index b589208..b044e0f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-11-23 +# v 2022-12-04 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -224,13 +224,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.1.1/Parrot-security-5.1.1_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.1.2/Parrot-security-5.1.2_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.2/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.1.1/Parrot-home-5.1.1_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.1.2/Parrot-home-5.1.2_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 7f1e796993357a363e923d10b1eb0e596dc0267a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 4 Dec 2022 22:27:18 +0100 Subject: [PATCH 543/694] updated url (ubuntu-lunar) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index b044e0f..429e8c2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -186,7 +186,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/kinetic-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/lunar-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -275,7 +275,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/kinetic-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/lunar-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -290,7 +290,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/kinetic-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/lunar-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From 8ae960a87cfdba0586b116886af701c5aafcef89 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 23 Dec 2022 08:04:09 +0100 Subject: [PATCH 544/694] updated url (debian, kali, mint, sysrecue, tails) --- p2-include-url | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/p2-include-url b/p2-include-url index 429e8c2..97f9dcd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-12-04 +# v 2022-12-23 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -97,14 +97,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.2-21/clonezilla-live-3.0.2-21-i686.iso -DEBIAN_KVER=5.10.0-18 +DEBIAN_KVER=5.10.0-20 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.5.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.6.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.5.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.6.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -168,7 +168,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.4-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -207,8 +207,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21/linuxmint-21-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21.1/linuxmint-21.1-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21.1/sha256sum.txt MINT_X64_SUM_TYPE=sha256 @@ -254,12 +254,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.05/systemrescue-9.05-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.06/systemrescue-9.06-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.7/tails-amd64-5.7.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.7/tails-amd64-5.7.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.8/tails-amd64-5.8.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.8/tails-amd64-5.8.iso.sig TAILS_X64_SUM_TYPE=pgp From bbe39adac4bfe8ec9e94b51b0db4706d8f73c9ee Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 29 Dec 2022 21:32:54 +0100 Subject: [PATCH 545/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 97f9dcd..f037b80 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-12-23 +# v 2022-12-29 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -132,8 +132,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R27.1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R28.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R28.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 0e15b12c41cab5e6d6c5e5ca04a4389117dae5ca Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 29 Jan 2023 20:21:52 +0100 Subject: [PATCH 546/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index f037b80..61af387 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2022-12-29 +# v 2023-01-29 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -258,8 +258,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.8/tails-amd64-5.8.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.8/tails-amd64-5.8.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.9/tails-amd64-5.9.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.9/tails-amd64-5.9.iso.sig TAILS_X64_SUM_TYPE=pgp From 50a93702f6f61fce9175aa690f5bec415a9d9a5a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 14 Feb 2023 07:43:42 +0100 Subject: [PATCH 547/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 61af387..69d39d0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-01-29 +# v 2023-02-14 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -224,13 +224,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.1.2/Parrot-security-5.1.2_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.2/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.2/Parrot-security-5.2_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.2/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.1.2/Parrot-home-5.1.2_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.1.2/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.2/Parrot-home-5.2_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 606fe94883b55e19cf2884b598c9b10a2d35c21d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 22 Feb 2023 17:17:46 +0100 Subject: [PATCH 548/694] updated url (tails) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 69d39d0..9d95cda 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-02-14 +# v 2023-02-22 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -53,7 +53,7 @@ fi # opensuse https://download.opensuse.org/distribution/openSUSE-current/live/ # https://download.opensuse.org/tumbleweed/iso/?C=M;O=D # centos https://www.centos.org/download/ -# tail https://tails.boum.org/install/download/ +# tails https://tails.boum.org/install/download/ # knoppix https://www.knopper.net/knoppix-mirrors/index-en.html # kaspersky https://www.kaspersky.com/downloads/thank-you/free-rescue-disk # bitdefender https://download.bitdefender.com/rescue_cd/latest/ @@ -258,8 +258,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.9/tails-amd64-5.9.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.9/tails-amd64-5.9.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.10/tails-amd64-5.10.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.10/tails-amd64-5.10.iso.sig TAILS_X64_SUM_TYPE=pgp From e5ef09b06ea034a3444b43ebf7d348d4bec9309a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 23 Feb 2023 21:29:59 +0100 Subject: [PATCH 549/694] updated url (clonezilla, dragonos, ubuntu) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9d95cda..72fde6c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-02-22 +# v 2023-02-23 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -92,9 +92,9 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.2-21/clonezilla-live-3.0.2-21-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.3-22/clonezilla-live-3.0.3-22-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.2-21/clonezilla-live-3.0.2-21-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.3-22/clonezilla-live-3.0.3-22-i686.iso DEBIAN_KVER=5.10.0-20 @@ -132,8 +132,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R28.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R28.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -191,7 +191,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.1-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.2-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -280,12 +280,12 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-22.03.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-23.01.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.2-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 6afcd677d3c5c4e7d27317ca54ddefb7e71908e5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 4 Mar 2023 18:37:22 +0100 Subject: [PATCH 550/694] updated url (dragonos, emmabuntus) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 72fde6c..1502ced 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-02-23 +# v 2023-03-04 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -132,19 +132,19 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.02.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.02.iso.sha256 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.03.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.03.iso.sha256 EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.02.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.02.iso.sha256 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.03.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.03.iso.sha256 EMMABUNTUS_X86_SUM_TYPE=sha256 ESET_SYSRESCUE_X86=eset-rescue-x86 From 01562bc4ec533b2eda27802fed9766c726248043 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 4 Mar 2023 18:40:16 +0100 Subject: [PATCH 551/694] Update p2-include-url --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1502ced..a6129c1 100644 --- a/p2-include-url +++ b/p2-include-url @@ -138,13 +138,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.03.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-amd64-11.4-1.03.iso.sha256 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.4-1.03.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.4-1.03.iso.sha256 EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.03.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.02/emmabuntus-de4-i686-11.4-1.03.iso.sha256 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.4-1.03.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.4-1.03.iso.sha256 EMMABUNTUS_X86_SUM_TYPE=sha256 ESET_SYSRESCUE_X86=eset-rescue-x86 From 41d4a793718731927638e1c63e1b0640fc6574ab Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 4 Mar 2023 18:43:16 +0100 Subject: [PATCH 552/694] updated url (emmabuntus) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index a6129c1..65fcff0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -138,13 +138,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.4-1.03.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.4-1.03.iso.sha256 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.6-1.03.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.6-1.03.iso.sha256 EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.4-1.03.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.4-1.03.iso.sha256 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.6-1.03.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.6-1.03.iso.sha256 EMMABUNTUS_X86_SUM_TYPE=sha256 ESET_SYSRESCUE_X86=eset-rescue-x86 From 096b78cf4701870c8cbed8dbe1ec3f4e6e3a5abd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 18 Mar 2023 22:10:23 +0100 Subject: [PATCH 553/694] updated url (kali, parrot, rescuezilla) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 65fcff0..f5fd9f6 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-03-04 +# v 2023-03-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -168,7 +168,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2022.4-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.1-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -224,13 +224,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.2/Parrot-security-5.2_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.2/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.2-1/Parrot-security-5.2_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.2-1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.2/Parrot-home-5.2_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.2/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.2-1/Parrot-home-5.2_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.2-1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -248,7 +248,7 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.4.1/rescuezilla-2.4.1-64bit.jammy.iso +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.4.2/rescuezilla-2.4.2-64bit.jammy.iso RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/ RESCUEZILLA_X64_SUM_TYPE=sha256 From 850694a5c270b180ab3f654073515e7d03285379 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Mar 2023 23:39:37 +0200 Subject: [PATCH 554/694] updated url (finnix, systescure, tails) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index f5fd9f6..65be60a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-03-18 +# v 2023-03-26 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -158,8 +158,8 @@ FEDORA_X64_SUM_TYPE=sha256 FINNIX_X64=finnix-x64 -FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-124.iso -FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-124.iso.gpg +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-125.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-125.iso.gpg FINNIX_X64_SUM_TYPE=gpg @@ -254,12 +254,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/9.06/systemrescue-9.06-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/10.00/systemrescue-10.00-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.10/tails-amd64-5.10.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.10/tails-amd64-5.10.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.11/tails-amd64-5.11.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.11/tails-amd64-5.11.iso.sig TAILS_X64_SUM_TYPE=pgp From ce52fc3248d21af9e57ae062c2c2ad007df6ec1b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 4 Apr 2023 22:13:48 +0200 Subject: [PATCH 555/694] updated url (blackarch) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 65be60a..5aadbe6 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-03-26 +# v 2023-04-04 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -81,7 +81,7 @@ ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe.lkrn BLACKARCH_X64=blackarch-x64 -BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2021.09.01-x86_64.iso +BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2023.04.01-x86_64.iso BUNSEN_X64=bunsen-x64 From 494c7bfc542e00e74653a5130a60cb9e25102b67 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Apr 2023 06:47:17 +0200 Subject: [PATCH 556/694] updated url (dragonos, fedora, tails, tinycore) --- p2-include-url | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5aadbe6..5c276ad 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-04-04 +# v 2023-04-20 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -132,8 +132,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R29.1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -152,10 +152,15 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/37/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-37-1.7.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/37/Workstation/x86_64/iso/Fedora-Workstation-37-1.7-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/38/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-38-1.6.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/38/Workstation/x86_64/iso/Fedora-Workstation-38-1.6-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 +FEDORA_SL_X64=fedora-sec-x64 +FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/38/Labs/x86_64/iso/Fedora-Security-Live-x86_64-38-1.6.iso +FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/38/Labs/x86_64/iso/Fedora-Labs-38-1.6-x86_64-CHECKSUM +FEDORA_SL_X64_SUM_TYPE=sha256 + FINNIX_X64=finnix-x64 FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-125.iso @@ -258,19 +263,19 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.11/tails-amd64-5.11.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.11/tails-amd64-5.11.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.12/tails-amd64-5.12.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.12/tails-amd64-5.12.iso.sig TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/13.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/13.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/14.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/14.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 -TINYCORE_X86_URL=http://tinycorelinux.net/13.x/x86/release/TinyCore-current.iso -TINYCORE_X86_SUM=http://tinycorelinux.net/13.x/x86/release/TinyCore-current.iso.md5.txt +TINYCORE_X86_URL=http://tinycorelinux.net/14.x/x86/release/TinyCore-current.iso +TINYCORE_X86_SUM=http://tinycorelinux.net/14.x/x86/release/TinyCore-current.iso.md5.txt TINYCORE_X86_SUM_TYPE=md5 From b64f0bc461902faed8d3274381bf1362ed6e7a00 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 28 Apr 2023 08:43:34 +0200 Subject: [PATCH 557/694] updated url (clonezills, dragonos, ubuntu) --- p2-include-url | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5c276ad..d1e43c9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-04-20 +# v 2023-04-28 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -81,7 +81,7 @@ ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe.lkrn BLACKARCH_X64=blackarch-x64 -BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-full-2023.04.01-x86_64.iso +BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-slim-2023.04.01-x86_64.iso BUNSEN_X64=bunsen-x64 @@ -92,9 +92,9 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.3-22/clonezilla-live-3.0.3-22-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.0.3-22/clonezilla-live-3.0.3-22-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-i686.iso DEBIAN_KVER=5.10.0-20 @@ -132,8 +132,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -201,8 +201,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.10/release/lubuntu-22.10-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.10/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/23.04/release/lubuntu-23.04-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/23.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -300,13 +300,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/22.10/release/ubuntustudio-22.10-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/22.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/23.04/release/ubuntustudio-23.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/23.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/22.10/ubuntu-22.10-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/22.10/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/23.04/ubuntu-23.04-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/23.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 7e5187ef201386738c73767c57ac40cc062aef10 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 14 May 2023 06:58:51 +0200 Subject: [PATCH 558/694] updated url (bunsen, debian, dragonos, parrot) --- p2-include-url | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/p2-include-url b/p2-include-url index d1e43c9..5a6dca7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-04-28 +# v 2023-05-14 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -85,7 +85,7 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin BUNSEN_X64=bunsen-x64 -BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/lithium-3-amd64.hybrid.iso +BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/beryllium-1-amd64.hybrid.iso BUNSEN_X64_SUM=https://ddl.bunsenlabs.org/ddl/release.sha256.txt BUNSEN_X64_SUM_TYPE=sha256 @@ -97,14 +97,14 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-i686.iso -DEBIAN_KVER=5.10.0-20 +DEBIAN_KVER=5.10.0-22 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.6.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.7.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.6.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.7.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -132,8 +132,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -229,13 +229,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.2-1/Parrot-security-5.2_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.2-1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.3/Parrot-security-5.3_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.3/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.2-1/Parrot-home-5.2_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.2-1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.3/Parrot-home-5.3_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.3/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From fb50da3dcb1f0b5000d7cb6254e8c33e55f8b495 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 14 May 2023 07:09:04 +0200 Subject: [PATCH 559/694] updated url (blackarch, devuan, ubuntu) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5a6dca7..22b6b53 100644 --- a/p2-include-url +++ b/p2-include-url @@ -81,7 +81,7 @@ ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe.lkrn BLACKARCH_X64=blackarch-x64 -BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-slim-2023.04.01-x86_64.iso +BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-linux-slim-2023.05.01-x86_64.iso BUNSEN_X64=bunsen-x64 @@ -121,12 +121,12 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.2_amd64_desktop-live.iso +DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.3_amd64_desktop-live.iso DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/SHA256SUMS.txt DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.2_i386_desktop-live.iso +DEVUAN_X86_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.3_i386_desktop-live.iso DEVUAN_X86_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/SHA256SUMS.txt DEVUAN_X86_SUM_TYPE=sha256 @@ -191,7 +191,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/lunar-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/mantic-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -280,7 +280,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/lunar-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/mantic-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -295,7 +295,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/lunar-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/mantic-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From b14123777423872ac18cc1050177d137346fb63c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 17 May 2023 19:30:13 +0200 Subject: [PATCH 560/694] updated url (dragonos, tails) --- p2-include-url | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 22b6b53..345d75d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-05-14 +# v 2023-05-17 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -90,7 +90,6 @@ BUNSEN_X64_SUM=https://ddl.bunsenlabs.org/ddl/release.sha256.txt BUNSEN_X64_SUM_TYPE=sha256 - CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-amd64.iso CLONEZILLA_X86=clonezilla-x86 @@ -132,8 +131,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.3.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.3.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -263,8 +262,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.12/tails-amd64-5.12.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.12/tails-amd64-5.12.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.13/tails-amd64-5.13.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.13/tails-amd64-5.13.iso.sig TAILS_X64_SUM_TYPE=pgp From 535b74cf58ab364f8c873857e24f64446952bb3b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 17 May 2023 19:35:55 +0200 Subject: [PATCH 561/694] Update p2-include-url --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 345d75d..336a03e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -131,8 +131,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.3.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.3.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From f7914ab82edccd8d7431754015edfe81c43489a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Jun 2023 06:01:09 +0200 Subject: [PATCH 562/694] updted url (kali, sysrescue) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 336a03e..ceb68b8 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-05-17 +# v 2023-06-10 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -172,7 +172,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.1-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -258,7 +258,7 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/10.00/systemrescue-10.00-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/10.01/systemrescue-10.01-amd64.iso TAILS_X64=tails-x64 From 837a61c1ccd5ec8e8f6e494a9a324a5427c8c162 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 10 Jun 2023 06:07:14 +0200 Subject: [PATCH 563/694] updated url (opensuse) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index ceb68b8..52cbc68 100644 --- a/p2-include-url +++ b/p2-include-url @@ -217,13 +217,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-Rescue-CD-x86_64-Media.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-Rescue-CD-x86_64-Media.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-Rescue-CD-x86_64-Media.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-Rescue-CD-x86_64-Media.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-KDE-Live-x86_64-Media.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.4-KDE-Live-x86_64-Media.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-KDE-Live-x86_64-Media.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-KDE-Live-x86_64-Media.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 From 86bec94aa198109bae3f65e045dc1f2b74d6c26e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 13 Jun 2023 17:17:25 +0200 Subject: [PATCH 564/694] updated url (debian, tails) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index 52cbc68..5de6de4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-06-10 +# v 2023-06-13 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -96,16 +96,16 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-i686.iso -DEBIAN_KVER=5.10.0-22 +DEBIAN_KVER=6.1.0-9 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-11.7.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.0.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-11.7.0-i386-cinnamon.iso -DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS -DEBIAN_X86_SUM_TYPE=sha256 +#DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-12.0.0-i386-cinnamon.iso +#DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS +#DEBIAN_X86_SUM_TYPE=sha256 DEFT_X64=deft-x64 @@ -262,8 +262,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.13/tails-amd64-5.13.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.13/tails-amd64-5.13.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14/tails-amd64-5.14.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14/tails-amd64-5.14.iso.sig TAILS_X64_SUM_TYPE=pgp From 451c638fa9ae65588de9f84c9b0098311c70515b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Jun 2023 19:59:44 +0200 Subject: [PATCH 565/694] updated url (debian-i386, kali) --- p2-include-url | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5de6de4..9a65e6b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-06-13 +# v 2023-06-21 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -102,10 +102,11 @@ DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybri DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 +DEBIAN_KVER_X86=5.10.178-3 DEBIAN_X86=debian-x86 -#DEBIAN_X86_URL=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-12.0.0-i386-cinnamon.iso -#DEBIAN_X86_SUM=https://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/SHA256SUMS -#DEBIAN_X86_SUM_TYPE=sha256 +DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.7.0-i386-cinnamon.iso +DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS +DEBIAN_X86_SUM_TYPE=sha256 DEFT_X64=deft-x64 @@ -172,7 +173,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.2a-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 1f3cc244b8adb1f772733be6e2773e675b52af82 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Jun 2023 20:01:58 +0200 Subject: [PATCH 566/694] updated debian i386 --- p2-include-menu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 34f1a3d..0df183f 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -106,14 +106,14 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER_X86-686" ]]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X86 MENU LABEL Debian x86 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER-686 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER-686 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER_X86-686 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER_X86-686 APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE From 5d66e48b9b56ff41c1692ad16d5fe9fdeb781392 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Jun 2023 20:37:25 +0200 Subject: [PATCH 567/694] fix: kali, debian i386 --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9a65e6b..725f7b7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -102,7 +102,7 @@ DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybri DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 -DEBIAN_KVER_X86=5.10.178-3 +DEBIAN_KVER_X86=5.10.0-22 DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.7.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS @@ -173,7 +173,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.2a-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From f9e280dddcfa298998aeb96e53f9603839af74d7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 21 Jun 2023 20:43:44 +0200 Subject: [PATCH 568/694] disabled by default opensuse --- p2-include-handle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-handle b/p2-include-handle index 2210b14..364bacb 100644 --- a/p2-include-handle +++ b/p2-include-handle @@ -72,7 +72,7 @@ handle_item '-' iso LUBUNTU_X64; handle_item '-' iso LUBUNTU_X86; handle_item '-' iso MINT_X64; handle_item '#' iso OPENSUSE_RESCUE_X64 timestamping ,gid=root,uid=root,norock,mode=292 vbladed 0 1; -handle_item '+' iso OPENSUSE_X64 timestamping ,gid=root,uid=root,norock,mode=292 vbladed 1 1; +handle_item '#' iso OPENSUSE_X64 timestamping ,gid=root,uid=root,norock,mode=292 vbladed 1 1; handle_item '-' iso PARROT_FULL_X64; handle_item '-' iso PARROT_LITE_X64; handle_item '#' iso PENTOO_BETA_X64 timestamping; From ce65e3d06d5132f76d35958f94af1bd2d16d76c3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 13 Jul 2023 10:22:57 +0200 Subject: [PATCH 569/694] updated url (tails, ubuntu) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 725f7b7..8b9f0bb 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-06-21 +# v 2023-07-13 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -263,8 +263,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14/tails-amd64-5.14.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14/tails-amd64-5.14.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14.1/tails-amd64-5.14.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14.1/tails-amd64-5.14.1.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -290,7 +290,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.2-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04.2/ubuntu-22.04-latest-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 68e829a359eec0f86508ceb1ec233eb59d6db3c1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 13 Jul 2023 10:32:51 +0200 Subject: [PATCH 570/694] updated url (zails, tinycore) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8b9f0bb..cb090e3 100644 --- a/p2-include-url +++ b/p2-include-url @@ -263,8 +263,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14.1/tails-amd64-5.14.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.14.1/tails-amd64-5.14.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.15.1/tails-amd64-5.15.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.15.1/tails-amd64-5.15.1.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -353,7 +353,7 @@ CENTOS_X64=centos-x64 # update the url, if disk image is outdated ######################################################################## PI_CORE=pi-core -PI_CORE_URL=http://tinycorelinux.net/13.x/armv7/releases/RPi/piCore-13.1.0.zip +PI_CORE_URL=http://tinycorelinux.net/14.x/armv7/releases/RPi/piCore-14.0.zip RPD_BASIC=rpi-raspbian-basic From 366b30f95e2b3511b05ecac816c7cbdb67192996 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 18 Jul 2023 13:19:58 +0200 Subject: [PATCH 571/694] updated url (mint) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index cb090e3..ca12887 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-07-13 +# v 2023-07-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -212,8 +212,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21.1/linuxmint-21.1-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21.1/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21.2/linuxmint-21.2-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21.2/sha256sum.txt MINT_X64_SUM_TYPE=sha256 @@ -290,7 +290,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04.2/ubuntu-22.04-latest-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.2-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 13ccd71b7bfe9e30d7bf459826174860e5d2a732 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 25 Jul 2023 07:59:07 +0200 Subject: [PATCH 572/694] updated url (debian) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index ca12887..a8b77ab 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-07-18 +# v 2023-07-25 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -96,9 +96,9 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-i686.iso -DEBIAN_KVER=6.1.0-9 +DEBIAN_KVER=6.1.0-10 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.0.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.1.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 From bfcf2a6b54f57a30545c4ee7626ddafb0a412aa9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 12 Aug 2023 07:07:10 +0200 Subject: [PATCH 573/694] updated url (tails, ubuntu) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index a8b77ab..a73349b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-07-25 +# v 2023-08-12 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -196,7 +196,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.2-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.3-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -263,8 +263,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.15.1/tails-amd64-5.15.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.15.1/tails-amd64-5.15.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16/tails-amd64-5.16.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16/tails-amd64-5.16.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -290,7 +290,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.2-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.3-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From c273ae1d20e078f8cd66819404eefdcadc654b4d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 23 Aug 2023 21:27:33 +0200 Subject: [PATCH 574/694] updated url (devuan, kali, tails) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index a73349b..5e5bba7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-08-12 +# v 2023-08-23 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -121,13 +121,13 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.3_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/SHA256SUMS.txt +DEVUAN_X64_URL=https://files.devuan.org/devuan_daedalus/desktop-live/devuan_daedalus_5.0.0_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_daedalus/desktop-live/SHA256SUMS.txt DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 -DEVUAN_X86_URL=https://files.devuan.org/devuan_chimaera/desktop-live/devuan_chimaera_4.0.3_i386_desktop-live.iso -DEVUAN_X86_SUM=https://files.devuan.org/devuan_chimaera/desktop-live/SHA256SUMS.txt +DEVUAN_X86_URL=https://files.devuan.org/devuan_daedalus/desktop-live/devuan_daedalus_5.0.0_i386_desktop-live.iso +DEVUAN_X86_SUM=https://files.devuan.org/devuan_daedalus/desktop-live/SHA256SUMS.txt DEVUAN_X86_SUM_TYPE=sha256 @@ -173,7 +173,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -263,8 +263,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16/tails-amd64-5.16.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16/tails-amd64-5.16.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16.1/tails-amd64-5.16.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16.1/tails-amd64-5.16.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 04e98cac86f473b8bd49f97b4805b926d0cc4003 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 27 Aug 2023 13:20:45 +0200 Subject: [PATCH 575/694] updated url (dragonos) --- p2-include-url | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5e5bba7..191965b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-08-23 +# v 2023-08-27 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -76,6 +76,7 @@ fi # update the url, if iso is outdated ######################################################################## + ARCH_NETBOOT_X64=arch-netboot-x64 ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe.lkrn @@ -132,8 +133,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R30.2.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R31.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R31.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -147,6 +148,7 @@ EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabunt EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.6-1.03.iso.sha256 EMMABUNTUS_X86_SUM_TYPE=sha256 + ESET_SYSRESCUE_X86=eset-rescue-x86 ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso From 267a4616fbffbb3f19e00502d0d9748a69b8ce89 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Sep 2023 22:57:28 +0200 Subject: [PATCH 576/694] =?UTF-8?q?updated=20url=20(tails,=20emmabunt?= =?UTF-8?q?=C3=BCs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 191965b..f7f07ae 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-08-27 +# v 2023-09-09 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -139,13 +139,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.6-1.03.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-amd64-11.6-1.03.iso.sha256 +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-amd64-12.1-1.00.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-amd64-12.1-1.00.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.6-1.03.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE4/Images/1.03/emmabuntus-de4-i686-11.6-1.03.iso.sha256 +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-i686-12.1-1.00.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-i686-12.1-1.00.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 @@ -265,8 +265,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16.1/tails-amd64-5.16.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.16.1/tails-amd64-5.16.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17/tails-amd64-5.17.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17/tails-amd64-5.17.iso.sig TAILS_X64_SUM_TYPE=pgp From f3d8d4e35a01744b6beb2e6c2c61ff84703c0472 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 18 Sep 2023 13:15:30 +0200 Subject: [PATCH 577/694] updated url (tails, sysrescue) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index f7f07ae..c65bf6e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-09-09 +# v 2023-09-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -261,12 +261,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/10.01/systemrescue-10.01-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/10.02/systemrescue-10.02-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17/tails-amd64-5.17.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17/tails-amd64-5.17.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17.1/tails-amd64-5.17.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17.1/tails-amd64-5.17.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 40831970ff27149e971d5880d8bdee75165743aa Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 10 Oct 2023 08:29:01 +0200 Subject: [PATCH 578/694] updated url (debian, tails) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index c65bf6e..06e582b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-09-18 +# v 2023-10-10 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -97,15 +97,15 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-i686.iso -DEBIAN_KVER=6.1.0-10 +DEBIAN_KVER=-6.1.0-13 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.1.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.2.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 -DEBIAN_KVER_X86=5.10.0-22 +DEBIAN_KVER_X86=5.10.0-26 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.7.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.8.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -265,8 +265,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17.1/tails-amd64-5.17.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.17.1/tails-amd64-5.17.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.18.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.18.iso.sig TAILS_X64_SUM_TYPE=pgp From bb079448b61af5fe6607fe473acb2233ff05c471 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Oct 2023 22:19:52 +0200 Subject: [PATCH 579/694] updated url (ubuntu) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index 06e582b..9cbdbf1 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-10-10 +# v 2023-10-16 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -203,8 +203,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/23.04/release/lubuntu-23.04-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/23.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/23.10/release/lubuntu-23.10-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/23.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -287,7 +287,7 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-23.01.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-23.09.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 @@ -302,13 +302,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/23.04/release/ubuntustudio-23.04-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/23.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/23.10/release/ubuntustudio-23.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/23.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/23.04/ubuntu-23.04-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/23.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/23.10/ubuntu-23.10.1-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/23.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 72cf369257247b3ef78c37dde061aaa4466aaf51 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 2 Nov 2023 12:24:52 +0100 Subject: [PATCH 580/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9cbdbf1..29e2eb6 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-10-16 +# v 2023-11-2 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -265,8 +265,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.18.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.18.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.19.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.19.iso.sig TAILS_X64_SUM_TYPE=pgp From baddedac5f09b75c099dacdbfb16e12138a93dee Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 2 Nov 2023 13:00:10 +0100 Subject: [PATCH 581/694] updated url (tails, ubuntu) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 29e2eb6..09cb3db 100644 --- a/p2-include-url +++ b/p2-include-url @@ -265,8 +265,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.19.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.18/tails-amd64-5.19.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19/tails-amd64-5.19.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19/tails-amd64-5.19.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -282,7 +282,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/mantic-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/noble-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 From 55b4c3b08deb98c5b60743eadece9d423a74482b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 10 Nov 2023 15:50:57 +0100 Subject: [PATCH 582/694] updated url (clonezilla, fedora) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 09cb3db..8170bdb 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-11-2 +# v 2023-11-10 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -92,9 +92,9 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.0-22/clonezilla-live-3.1.0-22-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-i686.iso DEBIAN_KVER=-6.1.0-13 @@ -154,8 +154,8 @@ ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_ FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/38/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-38-1.6.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/38/Workstation/x86_64/iso/Fedora-Workstation-38-1.6-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/39/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-39-1.5.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/39/Workstation/x86_64/iso/Fedora-Workstation-39-1.5-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 From 31e8dca8f90621ddf06bec82afc83209871a0c26 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 10 Nov 2023 15:58:05 +0100 Subject: [PATCH 583/694] updated url (lubuntu) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 8170bdb..1699615 100644 --- a/p2-include-url +++ b/p2-include-url @@ -193,7 +193,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/mantic-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/noble-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 From 78a4f1f2a72468a6cf369197673a22cd3c54ca2f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 18 Nov 2023 15:19:36 +0100 Subject: [PATCH 584/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1699615..c20a1a4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-11-10 +# v 2023-11-18 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -265,8 +265,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19/tails-amd64-5.19.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19/tails-amd64-5.19.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19.1/tails-amd64-5.19.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19.1/tails-amd64-5.19.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 9f8bab651c764eb96ef4f6de5380c1875d0ffae5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 18 Nov 2023 15:25:12 +0100 Subject: [PATCH 585/694] updated url (ubuntu) --- p2-include-url | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index c20a1a4..d49644f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -59,7 +59,8 @@ fi # bitdefender https://download.bitdefender.com/rescue_cd/latest/ # Bitdefender Rescue CD reached End of Life on 2019-08-01 # https://www.bitdefender.com/consumer/support/answer/10131/ -# ESET SysRescue Live https://www.eset.com/int/download-utilities/#content-c10295 +# ESET SysRescue Live free public version - end of life (2023-11) ? +# https://www.eset.com/int/download-utilities/#content-c10295 # linuxmint https://www.linuxmint.com/download.php # https://mirrors.edge.kernel.org/linuxmint/stable/ # android x86 https://osdn.net/projects/android-x86/ @@ -150,7 +151,7 @@ EMMABUNTUS_X86_SUM_TYPE=sha256 ESET_SYSRESCUE_X86=eset-rescue-x86 -ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso +#ESET_SYSRESCUE_X86_URL=https://download.eset.com/com/eset/tools/recovery/rescue_cd/latest/eset_sysrescue_live_enu.iso FEDORA_X64=fedora-x64 @@ -297,7 +298,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/mantic-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/noble-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From 6dac77a891b259822cf7d29ed291c6073053ad2e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 Nov 2023 09:28:16 +0100 Subject: [PATCH 586/694] Update p2-include-urlfix typo in `DEBIAN_KVER` thanks to @pi-farm --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index d49644f..5510432 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-11-18 +# v 2023-11-21 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -98,7 +98,7 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-i686.iso -DEBIAN_KVER=-6.1.0-13 +DEBIAN_KVER=6.1.0-13 DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.2.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS From 315d69d0d360b3f07acdf2ed5d3ca7c0831b8767 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Nov 2023 00:36:23 +0100 Subject: [PATCH 587/694] fixed script error --- p1-setup | 1 + 1 file changed, 1 insertion(+) diff --git a/p1-setup b/p1-setup index 81305a9..70bc22f 100644 --- a/p1-setup +++ b/p1-setup @@ -566,6 +566,7 @@ table ip6 global { } } EOF + } } From c878b72569935057148fe5d0c2b90f46a42ab622 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Nov 2023 03:03:11 +0100 Subject: [PATCH 588/694] added comment for alternative wifi firmware i always spent a lot of time with searching for the instructions to switch the firmware. --- p1-setup | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/p1-setup b/p1-setup index 70bc22f..00645aa 100644 --- a/p1-setup +++ b/p1-setup @@ -307,6 +307,15 @@ EOF ######################################################################## +# https://github.com/RPi-Distro/firmware-nonfree/tree/bullseye/debian/config/brcm80211/cypress +# https://github.com/RPi-Distro/firmware-nonfree/tree/bookworm/debian/config/brcm80211/cypress +# +# The file cyfmac43455-sdio-minimal.bin is an alternative firmware that has been +# tuned to maximise the number of clients in AP mode while still supporting STA +# mode. +# +# sudo update-alternatives --config cyfmac43455-sdio.bin +# handle_hostapd() { echo -e "\e[32mhandle_hostapd()\e[0m"; From 9c555366ff27de94e5bdaa2be108c309c9adc36d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Nov 2023 03:10:18 +0100 Subject: [PATCH 589/694] added not for alternative wifi firmware --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 0408a3e..154dd6b 100644 --- a/README.md +++ b/README.md @@ -294,3 +294,13 @@ for more information, see: [Network Booting](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net.md)
see: [Network Boot Your Raspberry Pi](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md) + +## note4: +optional use alterative wifi firmware: `sudo update-alternatives --config cyfmac43455-sdio.bin` + +The file cyfmac43455-sdio-minimal.bin is an alternative firmware that has been +tuned to maximise the number of clients in AP mode while still supporting STA +mode. + +see: [cyfmac43455-sdio-minimal.bin, Bullseye](https://github.com/RPi-Distro/firmware-nonfree/tree/bullseye/debian/config/brcm80211/cypress)
+see: [cyfmac43455-sdio-minimal.bin, Bookworm](https://github.com/RPi-Distro/firmware-nonfree/tree/bookworm/debian/config/brcm80211/cypress) From b23e67e6701c9b63bea4d751c93a5d0c86a0c5db Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 3 Dec 2023 07:39:35 +0100 Subject: [PATCH 590/694] updated url (rescuezilla, tails) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5510432..db6586c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-11-21 +# v 2023-12-03 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -256,8 +256,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.4.2/rescuezilla-2.4.2-64bit.jammy.iso -RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/ +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/rolling-release.2023-11-26/rescuezilla-rolling-release.2023-11-26-64bit.jammy.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/rolling-release.2023-11-26/SHA256SUM RESCUEZILLA_X64_SUM_TYPE=sha256 @@ -266,8 +266,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19.1/tails-amd64-5.19.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.19.1/tails-amd64-5.19.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.20/tails-amd64-5.20.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.20/tails-amd64-5.20.iso.sig TAILS_X64_SUM_TYPE=pgp From 38e2caabf399521b5feb9d861693fe42a1c0bb1c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 6 Dec 2023 20:13:06 +0100 Subject: [PATCH 591/694] updated url (kali) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index db6586c..c743c66 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-12-03 +# v 2023-12-06 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -176,7 +176,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.4-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 15c946fa4b7f8d25f403836259c630f0204fcebc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 9 Dec 2023 09:40:06 +0100 Subject: [PATCH 592/694] undone some optional stuff --- p0-install | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/p0-install b/p0-install index 8c8deb8..ede75bc 100644 --- a/p0-install +++ b/p0-install @@ -147,9 +147,10 @@ $(dpkg --get-selections | grep -q -E "^(ntp|ntpd)[[:blank:]]*install$") || { ######################################################################## ######################################################################## echo -e "\e[32minstall real-vnc-server\e[0m"; -sudo apt install -y --no-install-recommends realvnc-vnc-server realvnc-vnc-viewer -sudo systemctl enable vncserver-x11-serviced.service; -sudo systemctl restart vncserver-x11-serviced.service; +#sudo apt install -y --no-install-recommends realvnc-vnc-server realvnc-vnc-viewer +sudo apt install -y --no-install-recommends realvnc-vnc-viewer +#sudo systemctl enable vncserver-x11-serviced.service; +#sudo systemctl restart vncserver-x11-serviced.service; ######################################################################## @@ -176,21 +177,21 @@ sudo apt install -y --no-install-recommends squashfs-tools initramfs-tools xz-ut #bridge#sudo apt install -y --no-install-recommends bridge-utils -######################################################################## -## optional -echo -e "\e[32minstall wireshark\e[0m"; -echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; -sudo apt install -y --no-install-recommends tshark wireshark -sudo usermod -a -G wireshark "${USER:?}" - -echo -e "\e[32minstall other useful stuff\e[0m"; -sudo apt install -y --no-install-recommends xterm transmission-gtk - -echo -e "\e[32mreduce annoying networktraffic\e[0m"; -sudo systemctl stop avahi-daemon.service -sudo systemctl disable avahi-daemon.service -sudo systemctl stop minissdpd.service -sudo systemctl disable minissdpd.service +######################################################################### +### optional +#echo -e "\e[32minstall wireshark\e[0m"; +#echo "wireshark-common wireshark-common/install-setuid boolean true" | sudo debconf-set-selections; +#sudo apt install -y --no-install-recommends tshark wireshark +#sudo usermod -a -G wireshark "${USER:?}" +# +#echo -e "\e[32minstall other useful stuff\e[0m"; +#sudo apt install -y --no-install-recommends xterm transmission-gtk +# +#echo -e "\e[32mreduce annoying networktraffic\e[0m"; +#sudo systemctl stop avahi-daemon.service +#sudo systemctl disable avahi-daemon.service +#sudo systemctl stop minissdpd.service +#sudo systemctl disable minissdpd.service ######################################################################## @@ -201,13 +202,13 @@ sudo sed -i '1 s/$/ logo.nologo/' /boot/cmdline.txt; } -######################################################################## -## optional -echo -e "\e[32mchange hostname\e[0m"; -do_backup etc/hostname -echo pxe-server | sudo tee /etc/hostname &>/dev/null -do_backup etc/hosts -sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts +######################################################################### +### optional +#echo -e "\e[32mchange hostname\e[0m"; +#do_backup etc/hostname +#echo pxe-server | sudo tee /etc/hostname &>/dev/null +#do_backup etc/hosts +#sudo sed -i "s/127.0.1.1.*$(hostname)/127.0.1.1\tpxe-server/g" /etc/hosts ######################################################################## From 2d2c1f1cf94433904539867143f91136a73891a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 20 Dec 2023 08:01:35 +0100 Subject: [PATCH 593/694] updated url (debian) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index c743c66..5f507d2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-12-06 +# v 2023-12-20 # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -98,9 +98,9 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-i686.iso -DEBIAN_KVER=6.1.0-13 +DEBIAN_KVER=6.1.0-15 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.2.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.4.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 From e6ca2fdf8be74ffc8dbff3d0088193de3d4af06b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 22 Dec 2023 07:44:36 +0100 Subject: [PATCH 594/694] updated url (tails) --- p2-include-url | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5f507d2..b23ad7f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,8 +10,10 @@ fi ######################################################################## -# v 2023-12-20 +# v 2023-12-22 +# pull updates +# cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl --connect-timeout 5 --retry 0 -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done @@ -266,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.20/tails-amd64-5.20.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.20/tails-amd64-5.20.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.21/tails-amd64-5.21.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.21/tails-amd64-5.21.iso.sig TAILS_X64_SUM_TYPE=pgp From 8f9c7663acc4ac1ef8767325ed99fcc25b79f6fd Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Dec 2023 23:40:27 +0100 Subject: [PATCH 595/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index b23ad7f..05ce890 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-12-22 +# v 2023-12-28 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -234,13 +234,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/5.3/Parrot-security-5.3_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/5.3/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.0/Parrot-security-6.0_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.0/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/5.3/Parrot-home-5.3_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/5.3/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.0/Parrot-home-6.0_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.0/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 4ea46af156b20bcc2e2facad5fd76cfa34d6eee9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 8 Jan 2024 16:26:19 +0100 Subject: [PATCH 596/694] updated url (emmabuntus) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 05ce890..a188643 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2023-12-28 +# v 2024-01-08 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -142,13 +142,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-amd64-12.1-1.00.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-amd64-12.1-1.00.iso.sum.txt +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-amd64-12.4-1.01.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-amd64-12.4-1.01.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-i686-12.1-1.00.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.00/emmabuntus-de5-i686-12.1-1.00.iso.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-i686-12.4-1.01.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-i686-12.4-1.01.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 From 7a19eca8a479284b90b79427c8ef13f050fcac28 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 15 Jan 2024 20:56:14 +0100 Subject: [PATCH 597/694] updated url (dragonos, mint) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index a188643..e1305cc 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-01-08 +# v 2024-01-15 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -136,8 +136,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R31.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R31.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R32.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R32.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -217,8 +217,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21.2/linuxmint-21.2-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21.2/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21.3/linuxmint-21.3-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21.3/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From 4017787433bd93d18b8f6cd327384606d27ab246 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 29 Jan 2024 23:01:50 +0100 Subject: [PATCH 598/694] updated url (tails, sysrescue, bunsen) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index e1305cc..9dde641 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-01-15 +# v 2024-01-29 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -89,7 +89,7 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin BUNSEN_X64=bunsen-x64 -BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/beryllium-1-amd64.hybrid.iso +BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/boron-1-240123-amd64.hybrid.iso BUNSEN_X64_SUM=https://ddl.bunsenlabs.org/ddl/release.sha256.txt BUNSEN_X64_SUM_TYPE=sha256 @@ -264,12 +264,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/10.02/systemrescue-10.02-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.00/systemrescue-11.00-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.21/tails-amd64-5.21.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.21/tails-amd64-5.21.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.22/tails-amd64-5.22.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.22/tails-amd64-5.22.iso.sig TAILS_X64_SUM_TYPE=pgp From 40595fec4bc7bf43eb5aaa3f4c2904093e29ed39 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 6 Feb 2024 20:52:11 +0100 Subject: [PATCH 599/694] updated url (pentoo) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9dde641..60f0526 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-01-29 +# v 2024-02-06 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -245,10 +245,10 @@ PARROT_LITE_X64_SUM_TYPE=sha256 PENTOO_BETA_X64=pentoo-beta-x64 -PENTOO_BETA_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo-full-daily-amd64-hardened-latest.iso +PENTOO_BETA_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-daily-amd64-hardened-latest.iso PENTOO_X64=pentoo-x64 -PENTOO_X64_URL=https://pentoo.ch/isos/latest-iso-symlinks/Daily/pentoo-full-daily-amd64-hardened-latest.iso +PENTOO_X64_URL=https://www.pentoo.ch/isos/latest-iso-symlinks/pentoo-full-daily-amd64-hardened-latest.iso RPDESKTOP_X86=rpdesktop-x86 From dad5cc21bff82ec0dee585309cdea5dcf5c879f7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 18 Feb 2024 23:34:19 +0100 Subject: [PATCH 600/694] updated url (debian, dragonos) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 60f0526..d8a32c8 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-02-06 +# v 2024-02-18 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -100,9 +100,9 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-i686.iso -DEBIAN_KVER=6.1.0-15 +DEBIAN_KVER=6.1.0-18 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.4.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.5.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -136,8 +136,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R32.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R32.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R33.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R33.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 66fb320c825b31a3e7e1cb74186e2610addaa1fa Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 18 Feb 2024 23:40:31 +0100 Subject: [PATCH 601/694] updated url (debian) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index d8a32c8..b5f81f9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -106,9 +106,9 @@ DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybri DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 -DEBIAN_KVER_X86=5.10.0-26 +DEBIAN_KVER_X86=5.10.0-28 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.8.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.9.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 From 4621fa2d9aa3af36ce6927f3be80e2e644af15b7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 27 Feb 2024 19:40:28 +0100 Subject: [PATCH 602/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index b5f81f9..b147902 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-02-18 +# v 2024-02-27 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.22/tails-amd64-5.22.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-5.22/tails-amd64-5.22.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.0.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.0.iso.sig TAILS_X64_SUM_TYPE=pgp From da8d2504d3f418ae5868dd02b3688cf7aded45b9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 27 Feb 2024 19:45:18 +0100 Subject: [PATCH 603/694] update url (kali, ubuntu) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index b147902..4491bff 100644 --- a/p2-include-url +++ b/p2-include-url @@ -178,7 +178,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2023.4-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.1-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -201,7 +201,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.3-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.4-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -295,7 +295,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.3-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.4-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From d5ef430d740cf6a25d31fea771af8a0f758b5f8f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 28 Feb 2024 00:02:38 +0100 Subject: [PATCH 604/694] Create patch-tails.sh --- patch-tails.sh | 174 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 patch-tails.sh diff --git a/patch-tails.sh b/patch-tails.sh new file mode 100644 index 0000000..8879a40 --- /dev/null +++ b/patch-tails.sh @@ -0,0 +1,174 @@ +#!/usr/bin/bash + +# ... break=premount +# ... break=init +# ... debug +# +# sudo unsquashfs -d /tmp/test -f /srv/nfs/tails-x64/live/filesystem.squashfs +# $ ls /tmp/test/bin/live-* +# $ ls -r /tmp/test/lib/live/* + +# 2024-02-27 for tails 6.0, renamed to all-net-blocklist.conf +# 2024-02-27 for tails 6.0, updated path from /lib/modules/ to /usr/lib/modules/ +# 2023-09-11 skip network de-init on boot option "break=init" to keep network alive for debugging +# 2021-11-07 /conf/net_drivers.tar.xz, /conf/conf.d/zzzz-hotfix-pxe, /etc/live/boot/zzzz-hotfix-pxe + +# requires: +# squashfs-tools (unsquashfs) +# initramfs-tools (cpio) +# xz-utils (xz) + +# location, where to store temporary files +TMP=/tmp/tails-net + +# full filename of the filesystem.squashfs from tails ISO +SRC=/srv/nfs/tails-x64/live/filesystem.squashfs + +# full filename of the hotfix-pxe image +DST=/srv/nfs/tails-x64-hotfix-pxe.cpio.xz + + +if [[ -z "${TMP}" ]] || [[ -z "${SRC}" ]] || [[ -z "${DST}" ]]; then + echo "ERROR: undefined variable" + return -1 +fi + +if ! [[ -d "$(dirname ${TMP:?})" ]] && ! [[ -r "${SRC:?}" ]] && ! [[ -d "$(dirname ${DST:?})" ]]; then + echo "ERROR: wrong file or folder" + return -2 +fi + + +# kernel version of tails +KVER=$(basename $(unsquashfs -l "${SRC:?}" -e /usr/lib/modules/ | grep /usr/lib/modules/ | head -n 1)) +(( $? != 0 )) && return -4 + +# test if kernel version is correct +if [[ -n "${KVER}" ]]; then + echo "INFO: KVER='${KVER:?}'" +else + echo "ERROR: unknown kernel version" + return -3 +fi + +do_modules() { +# extract missing network kernel drivers modules from tails +sudo unsquashfs \ + -d "${TMP:?}" \ + -f "${SRC:?}" \ + -e "/usr/lib/modules/${KVER:?}/kernel/drivers/net/phy" \ + -e "/usr/lib/modules/${KVER:?}/kernel/drivers/net/ethernet" \ + ; +(( $? != 0 )) && exit -4 + +# compress missing network kernel drivers modules to file +[[ -e "${TMP:?}/conf/" ]] || sudo mkdir -p "${TMP:?}/conf/" +sudo tar -ravf "${TMP:?}/conf/net_drivers.tar.xz" -C "${TMP:?}" "usr/lib" +sudo rm -rf "${TMP:?}/usr/lib" +} + + +do_patch_top() { +# add hotfix for pxe boot to initrd image +[[ -e "${TMP:?}/conf/conf.d/" ]] || sudo mkdir -p "${TMP:?}/conf/conf.d/" +cat << EOF | sudo tee "${TMP:?}/conf/conf.d/zzzz-hotfix-pxe" &>/dev/null +#!/usr/bin/sh + +# check if we dealing with same kernel version +if [ "\$(uname -r)" != "${KVER:?}" ]; then + . /scripts/functions + log_failure_msg "wrong kernel version. '\$(uname -r)'!='${KVER:?}'" + panic "please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31" +fi + +# comment out all blacklist entries +sed "s/^install/# install/g" -i /etc/modprobe.d/all-net-blocklist.conf + +# replace wget script by busybox, for normal behavior +mv /usr/bin/wget /usr/bin/wget.bak +ln -sf /usr/bin/busybox /usr/bin/wget + +# replace depmod, for normal behavior +mv /usr/sbin/depmod /usr/sbin/depmod.bak +ln -sf /usr/bin/kmod /usr/sbin/depmod + +# excract the compressed drivers in place +tar -xf "/conf/net_drivers.tar.xz" -C / + +# rebulid dependencies for added network kernel drivers modules +depmod -b /usr + +# +echo '/scripts/init-bottom/zzzz-hotfix-pxe' | tee -a /scripts/init-bottom/ORDER +EOF +(( $? != 0 )) && return -4 +sudo chmod +x "${TMP:?}/conf/conf.d/zzzz-hotfix-pxe" +(( $? != 0 )) && return -4 +} + +do_patch_bottom() { +[[ -e "${TMP:?}/scripts/init-bottom/" ]] || sudo mkdir -p "${TMP:?}/scripts/init-bottom/" +cat << EOF | sudo tee "${TMP:?}/scripts/init-bottom/zzzz-hotfix-pxe" &>/dev/null +#!/usr/bin/sh +patch_bottom() +{ + if ! [ -n "\$break" ]; then + # hotfix-pxe for issue with network initialisation in tails + local path_device + for path_device in /sys/class/net/*; do + local name_device + name_device=\$(basename \$path_device) + if [ "\$name_device" != "lo" ]; then + # set network devices down + ip link set \$name_device down + + local path_module + path_module=\$(readlink \$path_device/device/driver/module) + if [ -n "\$path_module" ]; then + # remove used network drivers + local name_module + name_module=\$(basename \$path_module) + modprobe -r \$name_module + fi + fi + done + fi +} + +patch_bottom +EOF +(( $? != 0 )) && return -4 +sudo chmod +x "${TMP:?}/scripts/init-bottom/zzzz-hotfix-pxe" +(( $? != 0 )) && return -4 +} + + +do_initrd() { +# create an initrd image to overlay at boot time +sudo rm "${DST:?}" +cd "${TMP:?}" +(( $? != 0 )) && return -4 +find . -type f -print0 | cpio --null --create --verbose --format=newc \ + | xz --compress --extreme --check=crc32 | sudo tee "${DST:?}" &>/dev/null +(( $? != 0 )) && return -4 +cd - +} + + +do_cleanup() { +# clean up temporary files +sudo rm -rf "${TMP:?}" +(( $? != 0 )) && return -4 +} + + +do_modules +do_patch_top +do_patch_bottom + +do_initrd + +do_cleanup + + +echo done. From 5755527e2bc7a1fdac5b14ee26b67b7fb9f14263 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 28 Feb 2024 00:23:47 +0100 Subject: [PATCH 605/694] Update patch-tails.sh --- patch-tails.sh | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/patch-tails.sh b/patch-tails.sh index 8879a40..96dd3aa 100644 --- a/patch-tails.sh +++ b/patch-tails.sh @@ -74,32 +74,37 @@ do_patch_top() { cat << EOF | sudo tee "${TMP:?}/conf/conf.d/zzzz-hotfix-pxe" &>/dev/null #!/usr/bin/sh -# check if we dealing with same kernel version -if [ "\$(uname -r)" != "${KVER:?}" ]; then - . /scripts/functions - log_failure_msg "wrong kernel version. '\$(uname -r)'!='${KVER:?}'" - panic "please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31" -fi +patch_top() +{ + # check if we dealing with same kernel version + if [ "\$(uname -r)" != "${KVER:?}" ]; then + . /scripts/functions + log_failure_msg "wrong kernel version. '\$(uname -r)'!='${KVER:?}'" + panic "please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31" + fi -# comment out all blacklist entries -sed "s/^install/# install/g" -i /etc/modprobe.d/all-net-blocklist.conf + # comment out all blacklist entries + sed "s/^install/# install/g" -i /etc/modprobe.d/all-net-blocklist.conf -# replace wget script by busybox, for normal behavior -mv /usr/bin/wget /usr/bin/wget.bak -ln -sf /usr/bin/busybox /usr/bin/wget + # replace wget script by busybox, for normal behavior + mv /usr/bin/wget /usr/bin/wget.bak + ln -sf /usr/bin/busybox /usr/bin/wget -# replace depmod, for normal behavior -mv /usr/sbin/depmod /usr/sbin/depmod.bak -ln -sf /usr/bin/kmod /usr/sbin/depmod + # replace depmod, for normal behavior + mv /usr/sbin/depmod /usr/sbin/depmod.bak + ln -sf /usr/bin/kmod /usr/sbin/depmod -# excract the compressed drivers in place -tar -xf "/conf/net_drivers.tar.xz" -C / + # excract the compressed drivers in place + tar -xf "/conf/net_drivers.tar.xz" -C / -# rebulid dependencies for added network kernel drivers modules -depmod -b /usr + # rebulid dependencies for added network kernel drivers modules + depmod -b /usr + + # enqueue hot fix for patch_bottom + echo '/scripts/init-bottom/zzzz-hotfix-pxe' | tee -a /scripts/init-bottom/ORDER +} -# -echo '/scripts/init-bottom/zzzz-hotfix-pxe' | tee -a /scripts/init-bottom/ORDER +patch_top EOF (( $? != 0 )) && return -4 sudo chmod +x "${TMP:?}/conf/conf.d/zzzz-hotfix-pxe" From 80a7061bd7fbfea2db09b0b07dfc82519e08b1a4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 28 Feb 2024 00:26:01 +0100 Subject: [PATCH 606/694] Update patch-tails.sh --- patch-tails.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/patch-tails.sh b/patch-tails.sh index 96dd3aa..cb036fd 100644 --- a/patch-tails.sh +++ b/patch-tails.sh @@ -115,6 +115,7 @@ do_patch_bottom() { [[ -e "${TMP:?}/scripts/init-bottom/" ]] || sudo mkdir -p "${TMP:?}/scripts/init-bottom/" cat << EOF | sudo tee "${TMP:?}/scripts/init-bottom/zzzz-hotfix-pxe" &>/dev/null #!/usr/bin/sh + patch_bottom() { if ! [ -n "\$break" ]; then From 32f4f312f982cabf467ad010f9a625297a507bee Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 18 Mar 2024 07:29:10 +0100 Subject: [PATCH 607/694] updated url (tinycore) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4491bff..4f205f3 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-02-27 +# v 2024-03-18 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -274,13 +274,13 @@ TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/14.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/14.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/15.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/15.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 -TINYCORE_X86_URL=http://tinycorelinux.net/14.x/x86/release/TinyCore-current.iso -TINYCORE_X86_SUM=http://tinycorelinux.net/14.x/x86/release/TinyCore-current.iso.md5.txt +TINYCORE_X86_URL=http://tinycorelinux.net/15.x/x86/release/TinyCore-current.iso +TINYCORE_X86_SUM=http://tinycorelinux.net/15.x/x86/release/TinyCore-current.iso.md5.txt TINYCORE_X86_SUM_TYPE=md5 From 197dc767753ca285a067c2d13e1df5134442e675 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Mar 2024 08:43:37 +0100 Subject: [PATCH 608/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4f205f3..998272c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-03-18 +# v 2024-03-28 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.0.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.0.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 041a69031a723c4250a35a0efca22f737a38e463 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Mar 2024 08:46:02 +0100 Subject: [PATCH 609/694] updated url (tails) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 998272c..cac203f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.0/tails-amd64-6.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.1/tails-amd64-6.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.1/tails-amd64-6.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 07fc28111faddf088aa2cbf2b48b1957daedc12f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 5 Apr 2024 06:20:36 +0200 Subject: [PATCH 610/694] updated url (dragonos) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index cac203f..b6d3cbc 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-03-28 +# v 2024-04-05 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -136,8 +136,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R33.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R33.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R34.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R34.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 6d6350ff403f5680a4c21b7c1071d0cd6a7eed82 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 18 Apr 2024 17:37:55 +0200 Subject: [PATCH 611/694] updated url (clonezilla, dragonos) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index b6d3cbc..1c21a70 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-04-05 +# v 2024-04-18 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -95,9 +95,9 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.2-22/clonezilla-live-3.1.2-22-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.1-27/clonezilla-live-3.1.1-27-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.1.2-22/clonezilla-live-3.1.2-22-i686.iso DEBIAN_KVER=6.1.0-18 @@ -136,8 +136,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R34.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R34.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R35.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R35.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 4b314c8f5de4e3f557baaf0fd9a7eb0b7bfa35a8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 22 Apr 2024 19:10:02 +0200 Subject: [PATCH 612/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1c21a70..5174e7b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-04-18 +# v 2024-04-22 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.1/tails-amd64-6.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.1/tails-amd64-6.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.2/tails-amd64-6.2.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.2/tails-amd64-6.2.iso.sig TAILS_X64_SUM_TYPE=pgp From 9caf5b1af81839c1f83d8d3253b02cf70a071fd1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 24 Apr 2024 07:26:44 +0200 Subject: [PATCH 613/694] updated url (fedora) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5174e7b..b3eb736 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-04-22 +# v 2024-04-24 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -157,8 +157,8 @@ ESET_SYSRESCUE_X86=eset-rescue-x86 FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/39/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-39-1.5.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/39/Workstation/x86_64/iso/Fedora-Workstation-39-1.5-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/40/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-40-1.14.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/40/Workstation/x86_64/iso/Fedora-Workstation-40-1.14-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 From b4d87c8093a65445ea21eacb10e4dbb0a545898f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 24 Apr 2024 07:33:15 +0200 Subject: [PATCH 614/694] updated url (fedora) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index b3eb736..20b50e7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -162,8 +162,8 @@ FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/40/W FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 -FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/38/Labs/x86_64/iso/Fedora-Security-Live-x86_64-38-1.6.iso -FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/38/Labs/x86_64/iso/Fedora-Labs-38-1.6-x86_64-CHECKSUM +FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/40/Labs/x86_64/iso/Fedora-Security-Live-x86_64-40-1.14.iso +FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/40/Labs/x86_64/iso/Fedora-Labs-40-1.14-x86_64-CHECKSUM FEDORA_SL_X64_SUM_TYPE=sha256 From f2928b116be92290237a0441ea332903199d6e0e Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 25 Apr 2024 19:36:15 +0200 Subject: [PATCH 615/694] updated url (ubuntu) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 20b50e7..4a3b2cd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-04-24 +# v 2024-04-25 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -206,8 +206,8 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/23.10/release/lubuntu-23.10-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/23.10/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -305,13 +305,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/23.10/release/ubuntustudio-23.10-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/23.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/ubuntustudio-24.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/23.10/ubuntu-23.10.1-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/23.10/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 8ef7c7454f8b306cab667a7e0949769403c13fea Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 6 May 2024 21:39:50 +0200 Subject: [PATCH 616/694] updated url (sysrescue) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4a3b2cd..3eb101e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-04-25 +# v 2024-05-06 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -264,7 +264,7 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.00/systemrescue-11.00-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.01/systemrescue-11.01-amd64.iso TAILS_X64=tails-x64 From eca429cc69565d4a3ec0cb0759e5ea834c4693a0 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 14 May 2024 06:23:13 +0200 Subject: [PATCH 617/694] updated url (rescuezilla) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3eb101e..30caffc 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-05-06 +# v 2024-05-14 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -258,8 +258,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/rolling-release.2023-11-26/rescuezilla-rolling-release.2023-11-26-64bit.jammy.iso -RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/rolling-release.2023-11-26/SHA256SUM +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.5/rescuezilla-2.5-64bit.noble.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.5/SHA256SUM RESCUEZILLA_X64_SUM_TYPE=sha256 From 486bbc52e4ff074f1617b48fe2451736b41e17c8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 14 May 2024 06:30:53 +0200 Subject: [PATCH 618/694] updated url (ubuntu) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index 30caffc..f8e037f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -196,7 +196,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/noble-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/oracular-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -285,12 +285,12 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/noble-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/oracular-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-23.09.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-24.03.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 @@ -300,7 +300,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/noble-dvd-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/oracular-dvd-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From 5652752814c10a7dccdb6112cc8f051a8de1430c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 21 May 2024 10:51:19 +0200 Subject: [PATCH 619/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index f8e037f..337a09c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-05-14 +# v 2024-05-20 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.2/tails-amd64-6.2.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.2/tails-amd64-6.2.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.3/tails-amd64-6.3.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.3/tails-amd64-6.3.iso.sig TAILS_X64_SUM_TYPE=pgp From 82532ff6b61e8669b4035def5635ed6ebab5a37f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 3 Jun 2024 07:50:13 +0200 Subject: [PATCH 620/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 337a09c..d0719ea 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-05-20 +# v 2024-06-03 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -234,13 +234,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.0/Parrot-security-6.0_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.0/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.1/Parrot-security-6.1_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.0/Parrot-home-6.0_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.0/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.1/Parrot-home-6.1_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 8379627a7e945a2e42e641131a2db21158f47412 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 1 Sep 2024 00:56:39 +0200 Subject: [PATCH 621/694] =?UTF-8?q?udated=20url=20(clonezilla,=20debian,?= =?UTF-8?q?=20finnix,=20kali,=20sysrescue,=20tails,=20ubuntu,=20mint,=20dr?= =?UTF-8?q?agonos,=20emmabunt=C3=BCs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p2-include-url | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/p2-include-url b/p2-include-url index d0719ea..5204958 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-06-03 +# v 2024-08-31 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -95,20 +95,20 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.2-22/clonezilla-live-3.1.2-22-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.3-16/clonezilla-live-3.1.3-16-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.1.2-22/clonezilla-live-3.1.2-22-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.1.3-16/clonezilla-live-3.1.3-16-i686.iso -DEBIAN_KVER=6.1.0-18 +DEBIAN_KVER=6.1.0-25 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.5.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.7.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 -DEBIAN_KVER_X86=5.10.0-28 +DEBIAN_KVER_X86=5.10.0-32 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.9.0-i386-cinnamon.iso +DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.11.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -136,19 +136,19 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R35.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R35.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R36.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R36.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-amd64-12.4-1.01.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-amd64-12.4-1.01.iso.sum.txt +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-amd64-12.6-1.02.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-amd64-12.6-1.02.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-i686-12.4-1.01.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.01/emmabuntus-de5-i686-12.4-1.01.iso.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso/download +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso/download.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 @@ -168,8 +168,8 @@ FEDORA_SL_X64_SUM_TYPE=sha256 FINNIX_X64=finnix-x64 -FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-125.iso -FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-125.iso.gpg +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-126.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-126.iso.gpg FINNIX_X64_SUM_TYPE=gpg @@ -178,7 +178,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.1-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -206,7 +206,7 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04-desktop-amd64.iso +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.01-desktop-amd64.iso LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 @@ -217,8 +217,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/21.3/linuxmint-21.3-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/21.3/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22/linuxmint-22-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22/sha256sum.txt MINT_X64_SUM_TYPE=sha256 @@ -264,12 +264,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.01/systemrescue-11.01-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.02/systemrescue-11.02-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.3/tails-amd64-6.3.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.3/tails-amd64-6.3.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.6/tails-amd64-6.6.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.6/tails-amd64-6.6.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -305,12 +305,12 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/ubuntustudio-24.04-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/ubuntustudio-24.04.01-dvd-amd64.iso UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04-desktop-amd64.iso +UBUNTU_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.01-desktop-amd64.iso UBUNTU_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 From d305ce3ff1c87c5f89c07320e7e4526a406caa5a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 1 Sep 2024 01:17:59 +0200 Subject: [PATCH 622/694] updated url (opensuse) --- p2-include-url | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5204958..e3b4e8c 100644 --- a/p2-include-url +++ b/p2-include-url @@ -147,8 +147,8 @@ EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabunt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso/download -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso/download.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 @@ -206,7 +206,7 @@ LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SH LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.01-desktop-amd64.iso +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.1-desktop-amd64.iso LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 @@ -223,13 +223,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-Rescue-CD-x86_64-Media.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-Rescue-CD-x86_64-Media.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-KDE-Live-x86_64-Media.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.5-KDE-Live-x86_64-Media.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 @@ -305,12 +305,12 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/ubuntustudio-24.04.01-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/ubuntustudio-24.04.1-dvd-amd64.iso UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.01-desktop-amd64.iso +UBUNTU_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.1-desktop-amd64.iso UBUNTU_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 From 84274e2e5b7c94b0988d4b65c7acf81b5c67f3b2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 12 Sep 2024 23:42:04 +0200 Subject: [PATCH 623/694] updated url (kali, rescuezilla, tails) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index e3b4e8c..1dfdce4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-08-31 +# v 2024-09-12 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -178,7 +178,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -258,8 +258,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.5/rescuezilla-2.5-64bit.noble.iso -RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.5/SHA256SUM +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.5.1/rescuezilla-2.5.1-64bit.noble.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.5.1/SHA256SUM RESCUEZILLA_X64_SUM_TYPE=sha256 @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.6/tails-amd64-6.6.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.6/tails-amd64-6.6.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.7/tails-amd64-6.7.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.7/tails-amd64-6.7.iso.sig TAILS_X64_SUM_TYPE=pgp From d8259c0f2cf09494de3ff43bfc4fb83367ead830 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 12 Sep 2024 23:46:44 +0200 Subject: [PATCH 624/694] updated url (ubuntu) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1dfdce4..9f5a18d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -201,7 +201,7 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.4-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.5-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -295,7 +295,7 @@ UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.4-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.5-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From 7d7821fa700290b17dac178bee4eeacb2c569c99 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 25 Sep 2024 06:25:35 +0200 Subject: [PATCH 625/694] =?UTF-8?q?updated=20url=20(dragonos,=20=C3=BCarro?= =?UTF-8?q?t)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9f5a18d..3acdd0d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-09-12 +# v 2024-09-24 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -136,8 +136,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R36.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R36.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R37.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R37.1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -234,13 +234,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.1/Parrot-security-6.1_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.2/Parrot-security-6.2_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.2/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.1/Parrot-home-6.1_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.2/Parrot-home-6.2_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 852ed84c49865e5f7e71dbdbc42792470b374de7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 9 Oct 2024 15:19:27 +0200 Subject: [PATCH 626/694] Update p2-include-urlupdated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3acdd0d..0c5fca9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-09-24 +# v 2024-10-09 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.7/tails-amd64-6.7.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.7/tails-amd64-6.7.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8/tails-amd64-6.8.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8/tails-amd64-6.8.iso.sig TAILS_X64_SUM_TYPE=pgp From b01b060d1c2a1ff515717dbe00d17ffed9d73724 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 11 Oct 2024 20:56:27 +0200 Subject: [PATCH 627/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0c5fca9..7ab408e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-10-09 +# v 2024-10-11 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8/tails-amd64-6.8.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8/tails-amd64-6.8.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8.1/tails-amd64-6.8.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8.1/tails-amd64-6.8.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 1406c7a0a1e5b9a8654840f3069a6f6e62b59b4d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 11 Oct 2024 21:09:08 +0200 Subject: [PATCH 628/694] updated url (ubuntu) --- p2-include-url | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7ab408e..7509e4d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -201,13 +201,13 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/lubuntu-22.04.5-desktop-amd64.iso -LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/22.04/release/SHA256SUMS +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.1-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.1-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/lubuntu-24.10-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -290,13 +290,13 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-24.03.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-24.09.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/22.04/ubuntu-22.04.5-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/22.04/SHA256SUMS +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 @@ -305,13 +305,13 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/ubuntustudio-24.04.1-dvd-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/ubuntustudio-24.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.1-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/24.10/ubuntu-24.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/24.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 From 48c35ae87f19397c64d06b58619bb615136b6d44 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 11 Oct 2024 21:13:08 +0200 Subject: [PATCH 629/694] updated url (ubuntustudio) From 654af988569cd80669cf90b18252110021b941e3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 11 Oct 2024 21:15:13 +0200 Subject: [PATCH 630/694] updated url (ubuntustudio) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 7509e4d..0c4e58f 100644 --- a/p2-include-url +++ b/p2-include-url @@ -305,7 +305,7 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/ UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/ubuntustudio-24.10-dvd-amd64.iso +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/ubuntustudio-24.10-desktop-amd64.iso UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 From cc51880780aba7249f22741b52056ecd49500a2c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 4 Nov 2024 17:09:48 +0100 Subject: [PATCH 631/694] updated url (CloneZilla, Fedora, Tails) --- p2-include-url | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p2-include-url b/p2-include-url index 0c4e58f..7766776 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-10-11 +# v 2024-11-04 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -95,9 +95,9 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.1.3-16/clonezilla-live-3.1.3-16-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.0-5/clonezilla-live-3.2.0-5-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.1.3-16/clonezilla-live-3.1.3-16-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso DEBIAN_KVER=6.1.0-25 @@ -157,13 +157,13 @@ ESET_SYSRESCUE_X86=eset-rescue-x86 FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/40/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-40-1.14.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/40/Workstation/x86_64/iso/Fedora-Workstation-40-1.14-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/41/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-41-1.4.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/41/Workstation/x86_64/iso/Fedora-Workstation-41-1.4-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 -FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/40/Labs/x86_64/iso/Fedora-Security-Live-x86_64-40-1.14.iso -FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/40/Labs/x86_64/iso/Fedora-Labs-40-1.14-x86_64-CHECKSUM +FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/41/Labs/x86_64/iso/Fedora-Security-Live-x86_64-41-1.4.iso +FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/41/Labs/x86_64/iso/Fedora-Labs-41-1.4-x86_64-CHECKSUM FEDORA_SL_X64_SUM_TYPE=sha256 @@ -268,8 +268,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8.1/tails-amd64-6.8.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.8.1/tails-amd64-6.8.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.9/tails-amd64-6.9.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.9/tails-amd64-6.9.iso.sig TAILS_X64_SUM_TYPE=pgp From 13a8d8a7cc14bc2aae426660d5abae0e62f81603 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 17 Nov 2024 08:36:40 +0100 Subject: [PATCH 632/694] updated url (debian) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7766776..d4fcbdd 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-11-04 +# v 2024-11-17 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -100,9 +100,9 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso -DEBIAN_KVER=6.1.0-25 +DEBIAN_KVER=6.1.0-27 DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.7.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.8.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 From e677d9b23240a282c158d2532195066f4056b5a4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 17 Nov 2024 10:04:19 +0100 Subject: [PATCH 633/694] updated KVER handling debian uses `/live/vmlinuz-U.V.W-X-Y`, but not always just `/live/vmlimuz`. same for `initrd.img` --- p2-include-menu | 42 ++++++++++++++++++++++++------------------ p2-include-url | 8 ++++++-- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 0df183f..930d299 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -68,14 +68,14 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz$DEBIAN_TESTING_KVER" ]]; then echo -e "\e[36m add $DEBIAN_TESTING_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_TESTING_X64 MENU LABEL Debian x64 (testing) - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz-$DEBIAN_TESTING_KVER-amd64 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/initrd.img-$DEBIAN_TESTING_KVER-amd64 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz$DEBIAN_TESTING_KVER + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/initrd.img$DEBIAN_TESTING_KVER APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live (testing) @@ -87,14 +87,14 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz$DEBIAN_KVER" ]]; then echo -e "\e[36m add $DEBIAN_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X64 MENU LABEL Debian x64 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz-$DEBIAN_KVER-amd64 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img-$DEBIAN_KVER-amd64 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz$DEBIAN_KVER + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img$DEBIAN_KVER APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x64 Live LXDE @@ -106,14 +106,14 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER_X86-686" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz$DEBIAN_KVER_X86" ]]; then echo -e "\e[36m add $DEBIAN_X86\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X86 MENU LABEL Debian x86 - KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz-$DEBIAN_KVER_X86-686 - INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img-$DEBIAN_KVER_X86-686 + KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz$DEBIAN_KVER_X86 + INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img$DEBIAN_KVER_X86 APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE TEXT HELP Boot to Debian x86 Live LXDE @@ -1592,22 +1592,28 @@ goto start ######################################################################## ### debian based :debian-cinnamon-x64 -:debian-cinnamon-x86 :debian-gnome-x64 -:debian-gnome-x86 :debian-kde-x64 -:debian-kde-x86 :debian-lxde-x64 -:debian-lxde-x86 :debian-lxqt-x64 -:debian-lxqt-x86 :debian-mate-x64 -:debian-mate-x86 :debian-x64 -:debian-x86 set version $DEBIAN_KVER -set file1 vmlinuz-\${version}-\${arch} -set file2 initrd.img-\${version}-\${arch} +set file1 vmlinuz\${version} +set file2 initrd.img\${version} +set extra +goto debian + +:debian-cinnamon-x86 +:debian-gnome-x86 +:debian-kde-x86 +:debian-lxde-x86 +:debian-lxqt-x86 +:debian-mate-x86 +:debian-x86 +set version $DEBIAN_KVER_X86 +set file1 vmlinuz\${version} +set file2 initrd.img\${version} set extra goto debian diff --git a/p2-include-url b/p2-include-url index d4fcbdd..5992c2e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -17,6 +17,10 @@ fi # check for broken url # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do wget --quiet --timeout=5 --tries=1 --spider $i && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done # for i in $(grep -E "^[A-Z0-9_]+_URL=" ~/git/RPi-PXE-Server/p2-include-url | sed s/^.*=//g); do curl --connect-timeout 5 --retry 0 -s -I -o /dev/null -w "%{response_code}" $i | grep -qE "(200|30.)" && echo -e "\e[32mOK\e[0m = $i" || echo -e "\e[97;41;5mFAILED\e[0m = $i"; done +# execute run.sh +# . ~/git/RPi-PXE-Server/run.sh +# find KVER +# curl https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.8.0-amd64-lxde.iso.contents -s | sed -n 's;^/live/vmlinuz;;p' | tail -n 1 ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -100,13 +104,13 @@ CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso -DEBIAN_KVER=6.1.0-27 +DEBIAN_KVER= DEBIAN_X64=debian-x64 DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.8.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 -DEBIAN_KVER_X86=5.10.0-32 +DEBIAN_KVER_X86=-5.10.0-32-686 DEBIAN_X86=debian-x86 DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.11.0-i386-cinnamon.iso DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS From 4ab293d1e9bfaeaa79e0a736ea4d7cf7b2df79e9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Nov 2024 22:46:01 +0100 Subject: [PATCH 634/694] updated url (emmabuntus, ubuntu, tails) --- p2-include-url | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5992c2e..19fd79d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-11-17 +# v 2024-11-28 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -20,7 +20,7 @@ fi # execute run.sh # . ~/git/RPi-PXE-Server/run.sh # find KVER -# curl https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.8.0-amd64-lxde.iso.contents -s | sed -n 's;^/live/vmlinuz;;p' | tail -n 1 +# curl https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.8.0-amd64-cinnamon.iso.contents -s | sed -n 's;^/live/vmlinuz;;p' | tail -n 1 ######################################################################## # winpe https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install @@ -146,13 +146,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-amd64-12.6-1.02.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-amd64-12.6-1.02.iso.sum.txt +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-amd64-12.8-1.03.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-amd64-12.8-1.03.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.02/emmabuntus-de5-i686-12.6-1.02.iso.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-i686-12.8-1.03.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-i686-12.8-1.03.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.9/tails-amd64-6.9.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.9/tails-amd64-6.9.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.10/tails-amd64-6.10.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.10/tails-amd64-6.10.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -289,7 +289,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/oracular-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/plucky-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -304,8 +304,8 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/oracular-dvd-amd64.iso -UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/dvd/pending/SHA256SUMS +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/plucky-desktop-amd64.iso +UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 From d06aafd2c6ca98b15e4d0b41ef544b3b1de75c27 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 28 Nov 2024 22:49:54 +0100 Subject: [PATCH 635/694] updated url (lubuntu) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 19fd79d..e21313a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -200,7 +200,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/oracular-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/plucky-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 From 5c4bcf562969cd8d309cba06b3557751dd471ec5 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Dec 2024 09:20:34 +0100 Subject: [PATCH 636/694] updated url (kali, sysrescue, ubuntu) --- p2-include-url | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/p2-include-url b/p2-include-url index e21313a..376eb7e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-11-28 +# v 2024-12-16 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -182,7 +182,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.4-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -204,16 +204,16 @@ LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/pluc LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 -LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.1-desktop-amd64.iso -LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS -LUBUNTU_LTS_X64_SUM_TYPE=sha256 - LUBUNTU_X64=lubuntu-x64 LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/lubuntu-24.10-desktop-amd64.iso LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 +LUBUNTU_LTS_X64=lubuntu-lts-x64 +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.1-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS +LUBUNTU_LTS_X64_SUM_TYPE=sha256 + LUBUNTU_LTS_X86=lubuntu-lts-x86 LUBUNTU_LTS_X86_URL=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/lubuntu-18.04.5-desktop-i386.iso LUBUNTU_LTS_X86_SUM=https://cdimage.ubuntu.com/lubuntu/releases/18.04/release/SHA256SUMS @@ -268,7 +268,7 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.02/systemrescue-11.02-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.03/systemrescue-11.03-amd64.iso TAILS_X64=tails-x64 @@ -289,20 +289,25 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/plucky-desktop-amd64.iso -UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/plucky-desktop-amd64.iso +UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 -UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-24.09.00-x86_64.img.xz -UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM -UBUNTU_FWTS_SUM_TYPE=sha256 +UBUNTU_X64=ubuntu-x64 +UBUNTU_X64_URL=https://cdimage.ubuntu.com/ubuntu/releases/24.10/release/ubuntu-24.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://cdimage.ubuntu.com/ubuntu/releases/24.10/release/SHA256SUMS +UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.1-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS +UBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/ubuntu/releases/24.04/release/ubuntu-24.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/ubuntu/releases/24.04/release/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 +UBUNTU_LTS_X86=ubuntu-lts-x86 +UBUNTU_LTS_X86_URL=https://cdimage.ubuntu.com/ubuntu/releases/16.04/release/ubuntu-16.04.7-desktop-i386.iso +UBUNTU_LTS_X86_SUM=https://cdimage.ubuntu.com/ubuntu/releases/16.04/release/SHA256SUMS +UBUNTU_LTS_X86_SUM_TYPE=sha256 + UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/plucky-desktop-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/SHA256SUMS @@ -313,15 +318,10 @@ UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/rel UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 -UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/24.10/ubuntu-24.10-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/24.10/SHA256SUMS -UBUNTU_X64_SUM_TYPE=sha256 - -UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso -UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS -UBUNTU_LTS_X86_SUM_TYPE=sha256 +UBUNTU_FWTS=ubuntu-fwts +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-24.11.00-x86_64.img.xz +UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM +UBUNTU_FWTS_SUM_TYPE=sha256 #custom# From 5591ef949c8b1cf2f269f122731ea53088ef8a31 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Dec 2024 09:29:27 +0100 Subject: [PATCH 637/694] fix url (ubuntu) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 376eb7e..4b81a98 100644 --- a/p2-include-url +++ b/p2-include-url @@ -294,18 +294,18 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/SHA256 UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://cdimage.ubuntu.com/ubuntu/releases/24.10/release/ubuntu-24.10-desktop-amd64.iso -UBUNTU_X64_SUM=https://cdimage.ubuntu.com/ubuntu/releases/24.10/release/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/ubuntu/24.10/ubuntu-24.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/ubuntu/24.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/ubuntu/releases/24.04/release/ubuntu-24.04.1-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/ubuntu/releases/24.04/release/SHA256SUMS +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/ubuntu/24.04/ubuntu-24.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/ubuntu/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=https://cdimage.ubuntu.com/ubuntu/releases/16.04/release/ubuntu-16.04.7-desktop-i386.iso -UBUNTU_LTS_X86_SUM=https://cdimage.ubuntu.com/ubuntu/releases/16.04/release/SHA256SUMS +UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/ubuntu/16.04/ubuntu-16.04.7-desktop-i386.iso +UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/ubuntu/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 From 127f6be006409a053784646cf0deaa32d4c6e53a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Dec 2024 09:31:00 +0100 Subject: [PATCH 638/694] fix url 2 (ubuntu) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4b81a98..169711e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -294,18 +294,18 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/SHA256 UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/ubuntu/24.10/ubuntu-24.10-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/ubuntu/24.10/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/24.10/ubuntu-24.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/24.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/ubuntu/24.04/ubuntu-24.04.1-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/ubuntu/24.04/SHA256SUMS +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/ubuntu/16.04/ubuntu-16.04.7-desktop-i386.iso -UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/ubuntu/16.04/SHA256SUMS +UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/16.04/ubuntu-16.04.7-desktop-i386.iso +UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 From 2ad6e667a99000c9d53bb13c7632e3df6b2bb17d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Dec 2024 09:33:50 +0100 Subject: [PATCH 639/694] fix url 3 (ubuntu) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 169711e..9c55e58 100644 --- a/p2-include-url +++ b/p2-include-url @@ -304,7 +304,7 @@ UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 -UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/16.04/ubuntu-16.04.7-desktop-i386.iso +UBUNTU_LTS_X86_URL=https://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-i386.iso UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 From 26adba0ddadde60dfd5f33dd418ce01388bddf9d Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 9 Jan 2025 12:19:36 +0100 Subject: [PATCH 640/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9c55e58..c147873 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2024-12-16 +# v 2025-01-09 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.10/tails-amd64-6.10.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.10/tails-amd64-6.10.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.11/tails-amd64-6.11.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.11/tails-amd64-6.11.iso.sig TAILS_X64_SUM_TYPE=pgp From b1fea7e7858555782233835ddf383ee6b39fa29c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 19 Jan 2025 17:51:04 +0100 Subject: [PATCH 641/694] updated url (debian, mint) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index c147873..f12145b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-01-09 +# v 2025-01-19 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -106,7 +106,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.8.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.9.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -221,8 +221,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22/linuxmint-22-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22.1/linuxmint-22.1-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22.1/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From 4399b04865501c09599f5fd2df8249ef589fc95f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Jan 2025 21:05:37 +0100 Subject: [PATCH 642/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index f12145b..8c73299 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-01-19 +# v 2025-01-26 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -238,13 +238,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.2/Parrot-security-6.2_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.2/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.3.1/Parrot-security-6.3.1_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.2/Parrot-home-6.2_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.2/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.3.1/Parrot-home-6.3.1_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 19874d215ed770f996ff1b215209f00616b401da Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 4 Feb 2025 19:13:18 +0100 Subject: [PATCH 643/694] updated url (parrot) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8c73299..5e1aea5 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-01-26 +# v 2025-02-ß4 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -238,13 +238,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.3.1/Parrot-security-6.3.1_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.3.2/Parrot-security-6.3.2_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.2/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.3.1/Parrot-home-6.3.1_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.3.2/Parrot-home-6.3.2_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 From 086c4d7b3cacbcaa0531279b867bc7c7982cc10b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 10 Feb 2025 18:49:54 +0100 Subject: [PATCH 644/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 5e1aea5..e893ec3 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-02-ß4 +# v 2025-02-10 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.11/tails-amd64-6.11.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.11/tails-amd64-6.11.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.12/tails-amd64-6.12.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.12/tails-amd64-6.12.iso.sig TAILS_X64_SUM_TYPE=pgp From 56edaf142a75a3189eea48d34603f1445ceaa4a6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 11 Mar 2025 09:20:05 +0100 Subject: [PATCH 645/694] updated url (clonezilla, kali, tails, ubuntu) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index e893ec3..8ffa1c4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-02-10 +# v 2025-03-11 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -99,9 +99,9 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.0-5/clonezilla-live-3.2.0-5-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.1-9/clonezilla-live-3.2.1-9-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.1-9/clonezilla-live-3.2.1-9-i686.iso DEBIAN_KVER= @@ -182,7 +182,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2024.4-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.1a-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.12/tails-amd64-6.12.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.12/tails-amd64-6.12.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.13/tails-amd64-6.13.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.13/tails-amd64-6.13.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -299,7 +299,7 @@ UBUNTU_X64_SUM=https://releases.ubuntu.com/24.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.1-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.2-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From d71d759b6ce325714917f89521c344de562a6195 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 11 Mar 2025 09:35:22 +0100 Subject: [PATCH 646/694] updated url (lubuntu) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8ffa1c4..681115e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -101,7 +101,7 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.1-9/clonezilla-live-3.2.1-9-amd64.iso CLONEZILLA_X86=clonezilla-x86 -CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.1-9/clonezilla-live-3.2.1-9-i686.iso +CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso DEBIAN_KVER= @@ -210,7 +210,7 @@ LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/SHA256 LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.1-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.2-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 From ea44b86d3a762f4bc186bd58d3d16f945c1b1295 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 18 Mar 2025 07:35:14 +0100 Subject: [PATCH 647/694] updated url (debian, sysrescure) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 681115e..716490b 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-03-11 +# v 2025-03-18 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -106,7 +106,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.9.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.10.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -268,7 +268,7 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/11.03/systemrescue-11.03-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.00/systemrescue-12.00-amd64.iso TAILS_X64=tails-x64 From 5d9164f55de127e1a29cc4bb600ee488bd95f9d3 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 14 Apr 2025 14:50:24 +0200 Subject: [PATCH 648/694] updated url (finnix, rescuezills, tinycore, tales, emmabuntus) --- p2-include-url | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/p2-include-url b/p2-include-url index 716490b..ed31594 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-03-18 +# v 2025-04-14 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -140,19 +140,19 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R37.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_FocalX_R37.1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-amd64-12.8-1.03.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-amd64-12.8-1.03.iso.sum.txt +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-amd64-12.10-1.04.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-amd64-12.10-1.04.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-i686-12.8-1.03.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.03/emmabuntus-de5-i686-12.8-1.03.iso.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-i686-12.10-1.04.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-i686-12.10-1.04.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 @@ -172,8 +172,8 @@ FEDORA_SL_X64_SUM_TYPE=sha256 FINNIX_X64=finnix-x64 -FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-126.iso -FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-126.iso.gpg +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-250.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-250.iso.gpg FINNIX_X64_SUM_TYPE=gpg @@ -262,8 +262,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.5.1/rescuezilla-2.5.1-64bit.noble.iso -RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.5.1/SHA256SUM +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.6/rescuezilla-2.6-64bit.oracular.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.6/SHA256SUM RESCUEZILLA_X64_SUM_TYPE=sha256 @@ -272,14 +272,14 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.13/tails-amd64-6.13.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.13/tails-amd64-6.13.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.14.1/tails-amd64-6.14.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.14.1/tails-amd64-6.14.1.iso.sig TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/15.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/15.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/16.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/16.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 From 7275e26881f27cf7dc453dbc96050e3633e5b912 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 5 May 2025 23:31:07 +0200 Subject: [PATCH 649/694] updated url (dragonos, fedora, kali, ubuntu, tails) --- p2-include-url | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/p2-include-url b/p2-include-url index ed31594..306aec3 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-04-14 +# v 2025-05-05 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -140,8 +140,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R2.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R2.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -161,8 +161,8 @@ ESET_SYSRESCUE_X86=eset-rescue-x86 FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/41/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-41-1.4.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/41/Workstation/x86_64/iso/Fedora-Workstation-41-1.4-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/42/Workstation/x86_64/iso/Fedora-Workstation-Live-42-1.1.x86_64.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/42/Workstation/x86_64/iso/Fedora-Workstation-42-1.1-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 @@ -182,7 +182,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.1a-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.1c-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -200,13 +200,13 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/plucky-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/questing-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/lubuntu-24.10-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.10/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/25.04/release/lubuntu-25.04-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/25.04/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.14.1/tails-amd64-6.14.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.14.1/tails-amd64-6.14.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15/tails-amd64-6.15.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15/tails-amd64-6.15.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -289,13 +289,13 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/plucky-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/questing-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/24.10/ubuntu-24.10-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/24.10/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/25.04/ubuntu-25.04-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/25.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 From aaa55d68e3498bd6470617e6637d0ad7b15a6f5c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 5 May 2025 23:38:53 +0200 Subject: [PATCH 650/694] fix ubuntu --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 306aec3..3b735af 100644 --- a/p2-include-url +++ b/p2-include-url @@ -289,8 +289,8 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/questing-desktop-amd64.iso -UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntu/daily-live/pending/SHA256SUMS +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/questing-desktop-amd64.iso +UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 From d88a8343b4e7670281e3dd6c72b9b879c66385d2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 19 May 2025 06:01:28 +0200 Subject: [PATCH 651/694] updated url (Clonezilla, debian, dragonos) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 3b735af..7ce12a9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-05-05 +# v 2025-05-18 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -99,14 +99,14 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.1-9/clonezilla-live-3.2.1-9-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.2-5/clonezilla-live-3.2.2-5-amd64.iso CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.10.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.11.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -140,8 +140,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R2.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R2.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 From 31654392030120c4ecc9bcf3034ffd5879dbce3c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 19 May 2025 06:07:18 +0200 Subject: [PATCH 652/694] updated url (ubuntu-studio) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7ce12a9..4ad7051 100644 --- a/p2-include-url +++ b/p2-include-url @@ -309,13 +309,13 @@ UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/plucky-desktop-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/questing-desktop-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/ubuntustudio-24.10-desktop-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/24.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/25.04/release/ubuntustudio-25.04-desktop-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/25.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts From 0519ce7c9f18353d48d3f4ba4b889cea4c6d1aa1 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 26 May 2025 22:28:30 +0200 Subject: [PATCH 653/694] updated url (dragonos, sysrescue, tails) --- p2-include-url | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/p2-include-url b/p2-include-url index 4ad7051..ef86bdf 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-05-18 +# v 2025-05-26 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -140,8 +140,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.1.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.1.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -268,12 +268,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.00/systemrescue-12.00-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.01/systemrescue-12.01-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15/tails-amd64-6.15.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15/tails-amd64-6.15.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15.1/tails-amd64-6.15.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15.1/tails-amd64-6.15.1.iso.sig TAILS_X64_SUM_TYPE=pgp From a75c4c05d2041dffa693786dd1071dfed6450cdc Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 26 May 2025 22:33:20 +0200 Subject: [PATCH 654/694] updated url (fedora) --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index ef86bdf..1208581 100644 --- a/p2-include-url +++ b/p2-include-url @@ -166,8 +166,8 @@ FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/42/W FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 -FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/41/Labs/x86_64/iso/Fedora-Security-Live-x86_64-41-1.4.iso -FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/41/Labs/x86_64/iso/Fedora-Labs-41-1.4-x86_64-CHECKSUM +FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/42/Labs/x86_64/iso/Fedora-Security-Live-x86_64-42-1.1.iso +FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/42/Labs/x86_64/iso/Fedora-Labs-42-1.1-x86_64-CHECKSUM FEDORA_SL_X64_SUM_TYPE=sha256 From c73eee5da92c6f99d763f7ccd11fac99103c6063 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 2 Jun 2025 08:01:36 +0200 Subject: [PATCH 655/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 1208581..e50fac2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-05-26 +# v 2025-06-01 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15.1/tails-amd64-6.15.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.15.1/tails-amd64-6.15.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.16.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.16.iso.sig TAILS_X64_SUM_TYPE=pgp From 685086f93d53ca0bcd84d5c60095ebba0f06ff6f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 21 Jun 2025 07:13:43 +0200 Subject: [PATCH 656/694] updated url (kali, dragonos) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index e50fac2..ad67988 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-06-01 +# v 2025-06-20 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -140,8 +140,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.1.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R3.1.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R4.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R4.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -182,7 +182,7 @@ GNURADIO_X64=gnuradio-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.1c-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 9b9d5258f0cfefd71d37ce5563f5576394956cb7 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 26 Jun 2025 09:05:12 +0200 Subject: [PATCH 657/694] updated url (Clonezilla, Tails) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index ad67988..b86adc0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-06-20 +# v 2025-06-25 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -99,7 +99,7 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.2-5/clonezilla-live-3.2.2-5-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.2-15/clonezilla-live-3.2.2-15-amd64.iso CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.16.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.16.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.17.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.17.iso.sig TAILS_X64_SUM_TYPE=pgp From f48347f932a1af79f74891c85454ce31437a749f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 26 Jun 2025 09:08:07 +0200 Subject: [PATCH 658/694] fix url tails --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index b86adc0..c312441 100644 --- a/p2-include-url +++ b/p2-include-url @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.17.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.16/tails-amd64-6.17.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.17/tails-amd64-6.17.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.17/tails-amd64-6.17.iso.sig TAILS_X64_SUM_TYPE=pgp From cf1cae2281dee65d0b9b7c77b639a29dc006f86f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 20 Jul 2025 08:05:43 +0200 Subject: [PATCH 659/694] updated url (dragonos, parrot, rescuezilla) --- p2-include-url | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p2-include-url b/p2-include-url index c312441..730068e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-06-25 +# v 2025-07-19 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -140,8 +140,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R4.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R4.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R5.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R5.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -238,13 +238,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.3.2/Parrot-security-6.3.2_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.2/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.4/Parrot-security-6.4_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.4/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.3.2/Parrot-home-6.3.2_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.3.2/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.4/Parrot-home-6.4_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.4/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -262,8 +262,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.6/rescuezilla-2.6-64bit.oracular.iso -RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.6/SHA256SUM +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.6.1/rescuezilla-2.6.1-64bit.oracular.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.6.1/SHA256SUM RESCUEZILLA_X64_SUM_TYPE=sha256 From 62204ccc22c2bbec37b9b91ba7ae32e7a8672094 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 26 Jul 2025 06:30:45 +0200 Subject: [PATCH 660/694] updated url (tails) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 730068e..e95d0d0 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-07-19 +# v 2025-07-25 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -272,8 +272,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.17/tails-amd64-6.17.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.17/tails-amd64-6.17.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.18/tails-amd64-6.18.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.18/tails-amd64-6.18.iso.sig TAILS_X64_SUM_TYPE=pgp From 5f00669d68fdfcd0eba4f15ee49a17d1d3a56f1b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 10 Aug 2025 09:38:29 +0200 Subject: [PATCH 661/694] updated url (debian, dragonos, ubuntu) --- p2-include-url | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p2-include-url b/p2-include-url index e95d0d0..a4e5680 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-07-25 +# v 2025-08-10 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -106,14 +106,14 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-12.11.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.0.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 DEBIAN_KVER_X86=-5.10.0-32-686 DEBIAN_X86=debian-x86 -DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/debian-live-11.11.0-i386-cinnamon.iso -DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldstable-live/i386/iso-hybrid/SHA256SUMS +DEBIAN_X86_URL=https://cdimage.debian.org/cdimage/archive/latest-oldoldstable-live/i386/iso-hybrid/debian-live-11.11.0-i386-cinnamon.iso +DEBIAN_X86_SUM=https://cdimage.debian.org/cdimage/archive/latest-oldoldstable-live/i386/iso-hybrid/SHA256SUMS DEBIAN_X86_SUM_TYPE=sha256 @@ -140,8 +140,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R5.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R5.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R7.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R7.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -210,7 +210,7 @@ LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/25.04/release/SHA256 LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.2-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.3-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -299,7 +299,7 @@ UBUNTU_X64_SUM=https://releases.ubuntu.com/25.04/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.2-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.3-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -319,7 +319,7 @@ UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/25.04/rel UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-24.11.00-x86_64.img.xz +UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-25.07.00-x86_64.img.xz UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM UBUNTU_FWTS_SUM_TYPE=sha256 From 4b18808b2613a0073c6889bc3fd0c9be2917ea1b Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 22 Aug 2025 01:49:59 +0200 Subject: [PATCH 662/694] made BOOT_OPTS optional --- p2-include-menu | 312 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 218 insertions(+), 94 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 930d299..6b05b82 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -16,6 +16,17 @@ then ## lpxelinux +######################################################################## +BOOT_OPTS_DEBIAN=" utc=no" +[[ -n "$CUSTOM_LOCALE" ]] && BOOT_OPTS_DEBIAN+=" locales=$CUSTOM_LOCALE" +[[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS_DEBIAN+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" +[[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS_DEBIAN+=" timezone=$CUSTOM_TIMEZONE" + +BOOT_OPTS_UBUNTU="" +[[ -n "$CUSTOM_LOCALE" ]] && BOOT_OPTS_UBUNTU+=" debian-installer/locale=$CUSTOM_LOCALE" +[[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS_UBUNTU+=" console-setup/layoutcode=$CUSTOM_LAYOUTCODE" +[[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS_UBUNTU+=" keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE" +[[ -n "$CUSTOM_VARIANT" ]] && BOOT_OPTS_UBUNTU+=" keyboard-configuration/variant=$CUSTOM_VARIANT" ######################################################################## @@ -49,122 +60,137 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$BUNSEN_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$BUNSEN_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $BUNSEN_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $BUNSEN_X64 MENU LABEL Bunsen x64 KERNEL $FILE_BASE$NFS_ETH0/$BUNSEN_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$BUNSEN_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$BUNSEN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$BUNSEN_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to Bunsen x64 Live LXDE User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz$DEBIAN_TESTING_KVER" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz$DEBIAN_TESTING_KVER" ]]; then ( echo -e "\e[36m add $DEBIAN_TESTING_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_TESTING_X64 MENU LABEL Debian x64 (testing) KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/vmlinuz$DEBIAN_TESTING_KVER INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_TESTING_X64/live/initrd.img$DEBIAN_TESTING_KVER - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_TESTING_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to Debian x64 Live (testing) User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz$DEBIAN_KVER" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X64/live/vmlinuz$DEBIAN_KVER" ]]; then ( echo -e "\e[36m add $DEBIAN_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X64 MENU LABEL Debian x64 KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/vmlinuz$DEBIAN_KVER INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X64/live/initrd.img$DEBIAN_KVER - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP - Boot to Debian x64 Live LXDE + Boot to Debian x64 Live User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz$DEBIAN_KVER_X86" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEBIAN_X86/live/vmlinuz$DEBIAN_KVER_X86" ]]; then ( echo -e "\e[36m add $DEBIAN_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEBIAN_X86 MENU LABEL Debian x86 KERNEL $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/vmlinuz$DEBIAN_KVER_X86 INITRD $FILE_BASE$NFS_ETH0/$DEBIAN_X86/live/initrd.img$DEBIAN_KVER_X86 - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEBIAN_X86 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP - Boot to Debian x86 Live LXDE + Boot to Debian x86 Live User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEVUAN_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $DEVUAN_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEVUAN_X64 MENU LABEL Devuan x64 KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X64 ro netboot=nfs boot=live username=devuan config -- $BOOT_OPTS TEXT HELP Boot to Devuan x64 Live User: devuan ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEVUAN_X86/live/vmlinuz" ]]; then ( echo -e "\e[36m add $DEVUAN_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEVUAN_X86 MENU LABEL Devuan x86 KERNEL $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEVUAN_X86/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEVUAN_X86 ro netboot=nfs boot=live username=devuan config -- $BOOT_OPTS TEXT HELP Boot to Devuan x86 Live User: devuan ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz" ]]; then ( echo -e "\e[36m add $FEDORA_X64\e[0m"; + BOOT_OPTS="vconsole.font=latarcyrheb-sun16" + [[ -n "$CUSTOM_LOCALE" ]] && BOOT_OPTS+=" locale.LANG=$CUSTOM_LOCALE" + [[ -n "$CUSTOM_KEYMAP" ]] && BOOT_OPTS+=" vconsole.keymap=$CUSTOM_KEYMAP" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## INFO: http://people.redhat.com/harald/dracut.html#dracut.kernel @@ -174,190 +200,213 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Fedora x64 KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img - APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=$CUSTOM_KEYMAP locale.LANG=$CUSTOM_LOCALE + APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Fedora Workstation Live User: liveuser ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$EMMABUNTUS_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$EMMABUNTUS_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $EMMABUNTUS_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $EMMABUNTUS_X64 MENU LABEL EmmaDE x64 KERNEL $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$EMMABUNTUS_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$EMMABUNTUS_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to EmmaDE x64 Live LXDE User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$EMMABUNTUS_X86/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$EMMABUNTUS_X86/live/vmlinuz" ]]; then ( echo -e "\e[36m add $EMMABUNTUS_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $EMMABUNTUS_X86 MENU LABEL EmmaDE x86 KERNEL $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$EMMABUNTUS_X86/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$EMMABUNTUS_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$EMMABUNTUS_X86 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to EmmaDE x86 Live LXDE User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $LUBUNTU_DAILY_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_DAILY_X64 MENU LABEL lubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to lubuntu x64 Daily-Live User: lubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $LUBUNTU_LTS_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_LTS_X64 MENU LABEL lubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- $BOOT_OPTS TEXT HELP Boot to lubuntu LTS x64 Live User: lubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $LUBUNTU_LTS_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_LTS_X86 MENU LABEL lubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_LTS_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- $BOOT_OPTS TEXT HELP Boot to lubuntu LTS x86 Live User: lubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $LUBUNTU_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_X64 MENU LABEL lubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to lubuntu x64 Live User: lubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $LUBUNTU_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $LUBUNTU_X86 MENU LABEL lubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$LUBUNTU_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$LUBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/lubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- $BOOT_OPTS TEXT HELP Boot to lubuntu x86 Live User: lubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$MINT_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $MINT_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $MINT_X64 MENU LABEL linux-mint x64 KERNEL $FILE_BASE$NFS_ETH0/$MINT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$MINT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$MINT_X64 ro netboot=nfs file=/cdrom/preseed/linuxmint.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- $BOOT_OPTS TEXT HELP Boot to linux-mint x64 Live User: ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]]; then +&& [[ -f "$DST_NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux" ]]; then ( echo -e "\e[36m add $OPENSUSE_X64\e[0m"; + BOOT_OPTS="" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $OPENSUSE_X64 MENU LABEL openSUSE Leap x64 KERNEL $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/linux INITRD $FILE_BASE$NFS_ETH0/$OPENSUSE_X64/boot/x86_64/loader/initrd - APPEND ip=dhcp root=live:AOEINTERFACE=e1.1 rd.kiwi.live.pxe -- + APPEND ip=dhcp root=live:AOEINTERFACE=e1.1 rd.kiwi.live.pxe -- $BOOT_OPTS TEXT HELP Boot to openSUSE Leap Live User: liveuser ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then ( echo -e "\e[36m add $TINYCORE_X64\e[0m"; + BOOT_OPTS=" noswap norestore settime showapps pause" + [[ -n "$CUSTOM_LANGUAGE" ]] && BOOT_OPTS+=" lang=$CUSTOM_LANGUAGE" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" kmap=$CUSTOM_KMAP" + [[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS+=" tz=$CUSTOM_TIMEZONE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options @@ -367,18 +416,19 @@ if [[ -f "$FILE_MENU" ]] \ INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X64/boot/corepure64.gz APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP noswap norestore #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X64.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP noswap norestore - #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP tz=$CUSTOM_TIMEZONE noswap norestore settime showapps pause + #APPEND ip=dhcp httplist=$IP_ETH0$DST_NFS_ETH0/tinycore-x64.xbase.lst vga=791 loglevel=3 -- $BOOT_OPTS TEXT HELP Boot to tiny core x64 User: tc ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X64/boot/vmlinuz64" ]]; then ( echo -e "\e[36m add $TINYCORE_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -393,13 +443,18 @@ if [[ -f "$FILE_MENU" ]] \ User: tc ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$TINYCORE_X86/boot/vmlinuz" ]]; then ( echo -e "\e[36m add $TINYCORE_X86\e[0m"; + BOOT_OPTS=" noswap norestore settime showapps pause" + [[ -n "$CUSTOM_LANGUAGE" ]] && BOOT_OPTS+=" lang=$CUSTOM_LANGUAGE" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" kmap=$CUSTOM_KMAP" + [[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS+=" tz=$CUSTOM_TIMEZONE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## # INFO: http://wiki.tinycorelinux.net/wiki:boot_options @@ -408,107 +463,118 @@ if [[ -f "$FILE_MENU" ]] \ KERNEL $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TINYCORE_X86/boot/core.gz APPEND nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86 tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=en kmap=qwertz/de-latin1 noswap norestore - #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- lang=$CUSTOM_LANGUAGE kmap=$CUSTOM_KMAP noswap norestore + #APPEND ip=dhcp nfsmount=$IP_ETH0:$DST_NFS_ETH0/$TINYCORE_X86.rw tce=/mnt/nfs/cde waitusb=5 vga=791 loglevel=3 -- $BOOT_OPTS TEXT HELP Boot to tiny core x86 User: tc ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_DAILY_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_DAILY_X64 MENU LABEL Ubuntu x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Ubuntu x64 Daily-Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_LTS_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_LTS_X64 MENU LABEL Ubuntu LTS x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip systemd.mask=tmp.mount -- $BOOT_OPTS TEXT HELP Boot to Ubuntu LTS x64 Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_LTS_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_LTS_X86 MENU LABEL Ubuntu LTS x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_LTS_X86/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_LTS_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Ubuntu LTS x86 Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_X64 MENU LABEL Ubuntu x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Ubuntu x64 Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_X86/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_X86 MENU LABEL Ubuntu x86 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Ubuntu x86 Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== @@ -527,7 +593,7 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]]; then +&& [[ -f "$DST_NFS_ETH0/$BLACKARCH_X64/blackarch/boot/x86_64/vmlinuz-linux" ]]; then ( echo -e "\e[36m add $BLACKARCH_X64\e[0m"; cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -542,139 +608,166 @@ if [[ -f "$FILE_MENU" ]] \ User: root, Password: blackarch ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEFT_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $DEFT_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEFT_X64 MENU LABEL DEFT x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 -- $BOOT_OPTS TEXT HELP Boot to DEFT x64 Live User: root, Password: toor ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DEFTZ_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $DEFTZ_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DEFTZ_X64 MENU LABEL DEFT Zero x64 KERNEL $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DEFTZ_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DEFTZ_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 -- $BOOT_OPTS TEXT HELP Boot to DEFT Zero x64 Live User: root, Password: toor ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$KALI_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $KALI_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $KALI_X64 MENU LABEL Kali x64 KERNEL $FILE_BASE$NFS_ETH0/$KALI_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$KALI_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$KALI_X64 ro netboot=nfs boot=live noconfig=sudo username=kali hostname=kali -- $BOOT_OPTS TEXT HELP Boot to Kali x64 Live User: kali, Password: kali ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $PARROT_FULL_X64\e[0m"; + BOOT_OPTS=" utc=no" + [[ -n "$CUSTOM_LOCALE" ]] && BOOT_OPTS+=" locales=$CUSTOM_LOCALE" + [[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" pkeys=$CUSTOM_KMAP" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" + [[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS+=" timezone=$CUSTOM_TIMEZONE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PARROT_FULL_X64 MENU LABEL Parrot Full x64 KERNEL $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$PARROT_FULL_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE pkeys=$CUSTOM_KMAP setxkbmap=$CUSTOM_KMAP utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_FULL_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to Parrot Full x64 Live (Security) User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $PARROT_LITE_X64\e[0m"; + BOOT_OPTS=" utc=no" + [[ -n "$CUSTOM_LOCALE" ]] && BOOT_OPTS+=" locales=$CUSTOM_LOCALE" + [[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" pkeys=$CUSTOM_KMAP" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" + [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" + [[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS+=" timezone=$CUSTOM_TIMEZONE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PARROT_LITE_X64 MENU LABEL Parrot Lite x64 KERNEL $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$PARROT_LITE_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE pkeys=$CUSTOM_KMAP setxkbmap=$CUSTOM_KMAP utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PARROT_LITE_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to Parrot Lite x64 Live (Home/Workstation) User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo" ]]; then +&& [[ -f "$DST_NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo" ]]; then ( echo -e "\e[36m add $PENTOO_BETA_X64\e[0m"; + BOOT_OPTS="" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PENTOO_BETA_X64 MENU LABEL Pentoo Beta x64 KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo INITRD $FILE_BASE$NFS_ETH0/$PENTOO_BETA_X64/boot/pentoo.igz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_BETA_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- $BOOT_OPTS TEXT HELP Boot to Pentoo Beta x64 Live User: pentoo ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$PENTOO_X64/boot/pentoo" ]]; then +&& [[ -f "$DST_NFS_ETH0/$PENTOO_X64/boot/pentoo" ]]; then ( echo -e "\e[36m add $PENTOO_X64\e[0m"; + BOOT_OPTS="" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $PENTOO_X64 MENU LABEL Pentoo x64 KERNEL $FILE_BASE$NFS_ETH0/$PENTOO_X64/boot/pentoo INITRD $FILE_BASE$NFS_ETH0/$PENTOO_X64/boot/pentoo.igz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$PENTOO_X64 ro real_root=/dev/nfs root=/dev/ram0 init=/linuxrc overlayfs looptype=squashfs loop=/image.squashfs cdroot nox secureconsole max_loop=256 dokeymap video=uvesafb:mtrr:3,ywrap,1024x768-16 console=tty0 scsi_mod.use_blk_mq=1 net.ifnames=0 ipv6.autoconf=0 -- $BOOT_OPTS TEXT HELP Boot to Pentoo x64 Live User: pentoo ENDTEXT EOF +) fi #=========== END =========== @@ -693,75 +786,83 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X86/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $DESINFECT_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DESINFECT_X86 MENU LABEL desinfect x86 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 rmdns -- $BOOT_OPTS TEXT HELP Boot to ct desinfect x86 User: desinfect ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DESINFECT_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $DESINFECT_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DESINFECT_X64 MENU LABEL desinfect x64 KERNEL $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DESINFECT_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 rmdns -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DESINFECT_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip memtest=4 rmdns -- $BOOT_OPTS TEXT HELP Boot to ct desinfect x64 User: desinfect ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $ESET_SYSRESCUE_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $ESET_SYSRESCUE_X86 MENU LABEL ESET SysRescue Live KERNEL $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$ESET_SYSRESCUE_X86/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$ESET_SYSRESCUE_X86 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to ESET SysRescue Live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]]; then +&& [[ -f "$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86_64" ]]; then ( echo -e "\e[36m add $KASPERSKY_RESCUE_X86\e[0m"; + BOOT_OPTS=" lang=us setkmap=us" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $KASPERSKY_RESCUE_X86 MENU LABEL Kaspersky Rescue Disk KERNEL $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/k-x86 INITRD $FILE_BASE$NFS_ETH0/$KASPERSKY_RESCUE_X86/boot/grub/initrd.xz - APPEND ip=dhcp netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- lang=us setkmap=us + APPEND ip=dhcp netboot=nfs://$IP_ETH0:$DST_NFS_ETH0/$KASPERSKY_RESCUE_X86 ro dostartx -- $BOOT_OPTS TEXT HELP Boot to Kaspersky Rescue Disk ENDTEXT EOF +) fi #=========== END =========== @@ -780,114 +881,126 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$RESCUEZILLA_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$RESCUEZILLA_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $RESCUEZILLA_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $RESCUEZILLA_X64 MENU LABEL Rescuezilla x64 KERNEL $FILE_BASE$NFS_ETH0/$RESCUEZILLA_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$RESCUEZILLA_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RESCUEZILLA_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RESCUEZILLA_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Rescuezilla x64 Live User: ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $CLONEZILLA_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $CLONEZILLA_X64 MENU LABEL Clonezilla x64 KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X64 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- $BOOT_OPTS TEXT HELP Boot to Clonezilla x64 User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz" ]]; then ( echo -e "\e[36m add $CLONEZILLA_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $CLONEZILLA_X86 MENU LABEL Clonezilla x86 KERNEL $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$CLONEZILLA_X86/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$CLONEZILLA_X86 ro netboot=nfs boot=live config username=user hostname=clonezilla union=overlay components noswap edd=on nomodeset nodmraid ocs_live_run=ocs-live-general ocs_live_extra_param= ocs_live_batch=no net.ifnames=0 nosplash noprompt -- $BOOT_OPTS TEXT HELP Boot to Clonezilla x86 User: user, Password: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $DRAGONOS_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $DRAGONOS_X64 MENU LABEL DragonOS x64 KERNEL $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$DRAGONOS_X64/casper/initrd.gz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/custom.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$DRAGONOS_X64 ro netboot=nfs file=/cdrom/preseed/custom.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to DragonOS x64 Live User: live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$FINNIX_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$FINNIX_X64/live/vmlinuz" ]]; then ( echo -e "\e[36m add $FINNIX_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $FINNIX_X64 MENU LABEL Finnix x64 KERNEL $FILE_BASE$NFS_ETH0/$FINNIX_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$FINNIX_X64/live/initrd.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$FINNIX_X64 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$FINNIX_X64 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to Finnix x64 Live ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]]; then +&& [[ -f "$DST_NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi" ]]; then ( echo -e "\e[36m add $GNURADIO_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $GNURADIO_X64 MENU LABEL GNU Radio x64 KERNEL $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/vmlinuz.efi INITRD $FILE_BASE$NFS_ETH0/$GNURADIO_X64/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$GNURADIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to GNU Radio x64 Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== @@ -942,20 +1055,22 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]]; then +&& [[ -f "$DST_NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2" ]]; then ( echo -e "\e[36m add $RPDESKTOP_X86\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_DEBIAN" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $RPDESKTOP_X86 MENU LABEL Raspberry Pi Desktop KERNEL $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/vmlinuz2 INITRD $FILE_BASE$NFS_ETH0/$RPDESKTOP_X86/live/initrd2.img - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- locales=$CUSTOM_LOCALE keyboard-layouts=$CUSTOM_LAYOUTCODE utc=no timezone=$CUSTOM_TIMEZONE + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$RPDESKTOP_X86 ro netboot=nfs boot=live config -- $BOOT_OPTS TEXT HELP Boot to Raspberry Pi Desktop User: pi, Password: raspberry ENDTEXT EOF +) fi #=========== END =========== @@ -982,7 +1097,7 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then ( if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz @@ -990,6 +1105,8 @@ if [[ -f "$FILE_MENU" ]] \ fi if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then echo -e "\e[36m add $TAILS_X64\e[0m"; + BOOT_OPTS="" + [[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz @@ -1000,7 +1117,7 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Tails x64 KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service fsck.mode=skip -- keyboard-layouts=$CUSTOM_LAYOUTCODE + APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Tails x64 Live ENDTEXT @@ -1009,13 +1126,15 @@ EOF echo -e "\e[1;31m failed $TAILS_X64,\e[0m" echo -e "\e[1;31m please visit: https://github.com/beta-tester/RPi-PXE-Server/issues/31\e[0m"; fi +) fi #========== END ========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_FWTS\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## ## INFO: https://wiki.ubuntu.com/FirmwareTestSuite/ @@ -1025,50 +1144,55 @@ if [[ -f "$FILE_MENU" ]] \ MENU LABEL Ubuntu Live FirmwareTestSuite KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_FWTS/casper/initrd.lz - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip toram -- + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_FWTS ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip toram -- $BOOT_OPTS TEXT HELP Boot to Ubuntu Live FirmwareTestSuite User: ubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_STUDIO_DAILY_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_STUDIO_DAILY_X64 MENU LABEL Ubuntu Studio x64 Daily-Live KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_DAILY_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Ubuntu Studio x64 Daily-Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]]; then +&& [[ -f "$DST_NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz" ]]; then ( echo -e "\e[36m add $UBUNTU_STUDIO_X64\e[0m"; + BOOT_OPTS=" $BOOT_OPTS_UBUNTU" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## LABEL $UBUNTU_STUDIO_X64 MENU LABEL Ubuntu Studio x64 KERNEL $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/vmlinuz INITRD $FILE_BASE$NFS_ETH0/$UBUNTU_STUDIO_X64/casper/initrd - APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- debian-installer/locale=$CUSTOM_LOCALE console-setup/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/layoutcode=$CUSTOM_LAYOUTCODE keyboard-configuration/variant=$CUSTOM_VARIANT + APPEND ip=dhcp nfsroot=$IP_ETH0:$DST_NFS_ETH0/$UBUNTU_STUDIO_X64 ro netboot=nfs file=/cdrom/preseed/ubuntu.seed boot=casper fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Ubuntu Studio x64 Live User: ubuntu ENDTEXT EOF +) fi #=========== END =========== From a84e11afd49c0ed2c1dbab27f9e8b654c716456c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 22 Aug 2025 13:49:11 +0200 Subject: [PATCH 663/694] fixed defining option twice --- p2-include-menu | 2 -- 1 file changed, 2 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 6b05b82..6b68365 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -684,7 +684,6 @@ if [[ -f "$FILE_MENU" ]] \ [[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" pkeys=$CUSTOM_KMAP" [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" - [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" [[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS+=" timezone=$CUSTOM_TIMEZONE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## @@ -711,7 +710,6 @@ if [[ -f "$FILE_MENU" ]] \ [[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" pkeys=$CUSTOM_KMAP" [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" - [[ -n "$CUSTOM_KMAP" ]] && BOOT_OPTS+=" setxkbmap=$CUSTOM_KMAP" [[ -n "$CUSTOM_TIMEZONE" ]] && BOOT_OPTS+=" timezone=$CUSTOM_TIMEZONE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## From 0d87b8d2c7940e1cb128cc56a463651fb591ec24 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 25 Aug 2025 00:18:34 +0200 Subject: [PATCH 664/694] updated url (sysrescue, tails) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index a4e5680..df9f782 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-08-10 +# v 2025-08-24 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -268,12 +268,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.01/systemrescue-12.01-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.02/systemrescue-12.02-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.18/tails-amd64-6.18.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.18/tails-amd64-6.18.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.19/tails-amd64-6.19.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.19/tails-amd64-6.19.iso.sig TAILS_X64_SUM_TYPE=pgp From 823fac2210635f3d17e80bf0b906b73cd0352176 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 25 Aug 2025 00:29:26 +0200 Subject: [PATCH 665/694] updated url (arch) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index df9f782..c54767d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -85,7 +85,7 @@ fi ARCH_NETBOOT_X64=arch-netboot-x64 -ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe.lkrn +ARCH_NETBOOT_X64_URL=https://archlinux.org/static/netboot/ipxe-arch.lkrn BLACKARCH_X64=blackarch-x64 From 2b0aa39e155dfac6405bc6048727e49ce8acd168 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 6 Sep 2025 08:52:37 +0200 Subject: [PATCH 666/694] updated url (mint, gparted) --- p2-include-url | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index c54767d..6e91d6e 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-08-24 +# v 2025-09-05 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -75,6 +75,7 @@ fi # http://tinycorelinux.net/9.x/armv7/releases/RPi/ # emmabuntus https://emmabuntus.org/ # https://sourceforge.net/projects/emmabuntus/files/ +# gparted https://sourceforge.net/projects/gparted/files/gparted-live-stable/ ######################################################################## @@ -181,6 +182,12 @@ GNURADIO_X64=gnuradio-x64 #GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso +GPARTED_X64=gparted-x64 +GPARTED_X64_URL=https://downloads.sourceforge.net/project/gparted/gparted-live-stable/1.7.0-8/gparted-live-1.7.0-8-amd64.iso +GPARTED_X64_SUM=https://sourceforge.net/projects/gparted/files/gparted-live-stable/1.7.0-8/ +GPARTED_X64_SUM_TYPE=sha256 + + KALI_X64=kali-x64 KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.2-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS @@ -221,8 +228,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22.1/linuxmint-22.1-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22.1/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22.2/linuxmint-22.2-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22.2/sha256sum.txt MINT_X64_SUM_TYPE=sha256 From c6abb1da324e293aef580633a8911d60e49b8980 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 6 Sep 2025 08:57:14 +0200 Subject: [PATCH 667/694] moved broken url --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 6e91d6e..fffc800 100644 --- a/p2-include-url +++ b/p2-include-url @@ -178,10 +178,6 @@ FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-250.iso.gpg FINNIX_X64_SUM_TYPE=gpg -GNURADIO_X64=gnuradio-x64 -#GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso - - GPARTED_X64=gparted-x64 GPARTED_X64_URL=https://downloads.sourceforge.net/project/gparted/gparted-live-stable/1.7.0-8/gparted-live-1.7.0-8-amd64.iso GPARTED_X64_SUM=https://sourceforge.net/projects/gparted/files/gparted-live-stable/1.7.0-8/ @@ -352,7 +348,7 @@ WIN_PE_X64_URL= #broken# ANDROID_X86=android-x86 -ANDROID_X86_URL=https://dotsrc.dl.osdn.net/osdn/android-x86/71931/android-x86_64-9.0-r2.iso +#ANDROID_X86_URL=https://dotsrc.dl.osdn.net/osdn/android-x86/71931/android-x86_64-9.0-r2.iso CENTOS_X64=centos-x64 @@ -361,6 +357,10 @@ CENTOS_X64=centos-x64 #CENTOS_X64_SUM_TYPE=sha256 +GNURADIO_X64=gnuradio-x64 +#GNURADIO_X64_URL=http://eu2-dist.gnuradio.org/ubuntu-16.04.2-desktop-amd64-gnuradio-3.7.11.iso + + ######################################################################## # url to zip files, # that contains disk images From 5b28933ed25eef0627982b5a1b769435d3384ef8 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Tue, 23 Sep 2025 19:05:43 +0200 Subject: [PATCH 668/694] updated url (debian, kali, tails) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index fffc800..947a2d5 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-09-05 +# v 2025-09-23 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -107,7 +107,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.0.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.1.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -185,7 +185,7 @@ GPARTED_X64_SUM_TYPE=sha256 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.2-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -275,8 +275,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.19/tails-amd64-6.19.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-6.19/tails-amd64-6.19.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.0/tails-amd64-7.0.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.0/tails-amd64-7.0.iso.sig TAILS_X64_SUM_TYPE=pgp From 1bc7accddc104077c4ce7c0fc6429466abaf8295 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 26 Sep 2025 16:33:54 +0200 Subject: [PATCH 669/694] fix for tails 7.0 --- p2-include-menu | 16 ++++++++++------ patch-tails.sh | 26 ++++++++++---------------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index 6b68365..f0cdf5f 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -1096,26 +1096,30 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ && [[ -f "$DST_NFS_ETH0/$TAILS_X64/live/vmlinuz" ]]; then ( - if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then + if ! [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix" ]]; then #echo -e "\e[36m download patch for $TAILS_X64\e[0m"; - #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix-pxe.cpio.xz + #sudo wget --quiet -O $DST_NFS_ETH0/$TAILS_X64-hotfix https://github.com/beta-tester/RPi-PXE-Server/files/?/$TAILS_X64-hotfix : fi - if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz" ]]; then + if [[ -f "$DST_NFS_ETH0/$TAILS_X64-hotfix" ]]; then echo -e "\e[36m add $TAILS_X64\e[0m"; BOOT_OPTS="" [[ -n "$CUSTOM_LAYOUTCODE" ]] && BOOT_OPTS+=" keyboard-layouts=$CUSTOM_LAYOUTCODE" cat << EOF | sudo tee -a $FILE_MENU &>/dev/null ######################################## - ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz + ## INFO: how to create $DST_NFS_ETH0/$TAILS_X64-hotfix ## see: ## https://github.com/beta-tester/RPi-PXE-Server/issues/31 + ## break=top + ## ... + ## break=init ######################################## LABEL $TAILS_X64 MENU LABEL Tails x64 KERNEL $FILE_BASE$NFS_ETH0/$TAILS_X64/live/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix-pxe.cpio.xz - APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt block.events_dfl_poll_msecs=1000 noautologin module=Tails slab_nomerge slub_debug=FZP mce=0 vsyscall=none page_poison=1 init_on_alloc=1 init_on_free=1 mds=full,nosmt timezone=Etc/UTC systemd.mask=tails-shutdown-on-media-removal.service fsck.mode=skip -- $BOOT_OPTS + INITRD $FILE_BASE$NFS_ETH0/$TAILS_X64/live/initrd.img,$FILE_BASE$NFS_ETH0/$TAILS_X64-hotfix + APPEND ip=dhcp fetch=$FILE_BASE$NFS_ETH0/$TAILS_X64/live/filesystem.squashfs ro boot=live config live-media=removable ipv6.disable=1 nopersistence noprompt noautologin module=Tails slab_nomerge slub_debug=FZ mce=0 vsyscall=none init_on_free=1 mds=full,nosmt timezone=Etc/UTC page_alloc.shuffle=1 randomize_kstack_offset=on efi_pstore.pstore_disable=1 erst_disable spec_store_bypass_disable=on systemd.condition_needs_update=no noapic noapm nodma nomce nolapic nosmp systemd.mask=tails-shutdown-on-media-removal.service fsck.mode=skip -- $BOOT_OPTS + sysappend 0x40000 TEXT HELP Boot to Tails x64 Live ENDTEXT diff --git a/patch-tails.sh b/patch-tails.sh index cb036fd..b088453 100644 --- a/patch-tails.sh +++ b/patch-tails.sh @@ -1,5 +1,7 @@ #!/usr/bin/bash +# ... break=top +# ... break=... # ... break=premount # ... break=init # ... debug @@ -8,6 +10,7 @@ # $ ls /tmp/test/bin/live-* # $ ls -r /tmp/test/lib/live/* +# 2025-09-26 for tails 7.0, add missing lib for kmod # 2024-02-27 for tails 6.0, renamed to all-net-blocklist.conf # 2024-02-27 for tails 6.0, updated path from /lib/modules/ to /usr/lib/modules/ # 2023-09-11 skip network de-init on boot option "break=init" to keep network alive for debugging @@ -15,8 +18,9 @@ # requires: # squashfs-tools (unsquashfs) -# initramfs-tools (cpio) +# initramfs-tools (cpio, unmkinitramfs) # xz-utils (xz) +# zstd (zstd) # location, where to store temporary files TMP=/tmp/tails-net @@ -25,7 +29,7 @@ TMP=/tmp/tails-net SRC=/srv/nfs/tails-x64/live/filesystem.squashfs # full filename of the hotfix-pxe image -DST=/srv/nfs/tails-x64-hotfix-pxe.cpio.xz +DST=/srv/nfs/tails-x64-hotfix if [[ -z "${TMP}" ]] || [[ -z "${SRC}" ]] || [[ -z "${DST}" ]]; then @@ -58,13 +62,10 @@ sudo unsquashfs \ -f "${SRC:?}" \ -e "/usr/lib/modules/${KVER:?}/kernel/drivers/net/phy" \ -e "/usr/lib/modules/${KVER:?}/kernel/drivers/net/ethernet" \ + -e "/usr/bin/kmod" \ + -e "/usr/lib/x86_64-linux-gnu/liblzma.so.*" \ ; (( $? != 0 )) && exit -4 - -# compress missing network kernel drivers modules to file -[[ -e "${TMP:?}/conf/" ]] || sudo mkdir -p "${TMP:?}/conf/" -sudo tar -ravf "${TMP:?}/conf/net_drivers.tar.xz" -C "${TMP:?}" "usr/lib" -sudo rm -rf "${TMP:?}/usr/lib" } @@ -86,17 +87,10 @@ patch_top() # comment out all blacklist entries sed "s/^install/# install/g" -i /etc/modprobe.d/all-net-blocklist.conf - # replace wget script by busybox, for normal behavior - mv /usr/bin/wget /usr/bin/wget.bak - ln -sf /usr/bin/busybox /usr/bin/wget - # replace depmod, for normal behavior mv /usr/sbin/depmod /usr/sbin/depmod.bak ln -sf /usr/bin/kmod /usr/sbin/depmod - # excract the compressed drivers in place - tar -xf "/conf/net_drivers.tar.xz" -C / - # rebulid dependencies for added network kernel drivers modules depmod -b /usr @@ -154,8 +148,8 @@ do_initrd() { sudo rm "${DST:?}" cd "${TMP:?}" (( $? != 0 )) && return -4 -find . -type f -print0 | cpio --null --create --verbose --format=newc \ - | xz --compress --extreme --check=crc32 | sudo tee "${DST:?}" &>/dev/null +find . -mindepth 1 -print0 | cpio --null --create --verbose --format=newc \ + | sudo tee "${DST:?}" &>/dev/null (( $? != 0 )) && return -4 cd - } From b1da1b2d034e3d48e1697fbc2da1b8b469b43600 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 8 Oct 2025 03:33:23 +0200 Subject: [PATCH 670/694] fix new KERNEL & INITRD path in FEDORA_X64 menu-entry thanks to @pi-farm https://github.com/beta-tester/RPi-PXE-Server/pull/46/commits/dad1837afd2d09cbc0ae26e470a9506e288c095b --- p2-include-menu | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-menu b/p2-include-menu index f0cdf5f..9e4e215 100644 --- a/p2-include-menu +++ b/p2-include-menu @@ -186,7 +186,7 @@ fi #========== BEGIN ========== if [[ -f "$FILE_MENU" ]] \ -&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz" ]]; then ( +&& [[ -f "$DST_NFS_ETH0/$FEDORA_X64/boot/x86_64/loader/linux" ]]; then ( echo -e "\e[36m add $FEDORA_X64\e[0m"; BOOT_OPTS="vconsole.font=latarcyrheb-sun16" [[ -n "$CUSTOM_LOCALE" ]] && BOOT_OPTS+=" locale.LANG=$CUSTOM_LOCALE" @@ -198,9 +198,9 @@ if [[ -f "$FILE_MENU" ]] \ ## https://lukas.zapletalovi.com/2016/08/hidden-feature-of-fedora-24-live-pxe-boot.html LABEL $FEDORA_X64 MENU LABEL Fedora x64 - KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/images/pxeboot/vmlinuz - INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/images/pxeboot/initrd.img - APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -- $BOOT_OPTS + KERNEL $FILE_BASE$NFS_ETH0/$FEDORA_X64/boot/x86_64/loader/linux + INITRD $FILE_BASE$NFS_ETH0/$FEDORA_X64/boot/x86_64/loader/initrd + APPEND ip=dhcp root=live:nfs://$IP_ETH0$DST_NFS_ETH0/$FEDORA_X64/LiveOS/squashfs.img ro rhgb rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 nomodeset vga=794 fsck.mode=skip -- $BOOT_OPTS TEXT HELP Boot to Fedora Workstation Live User: liveuser @@ -1778,9 +1778,9 @@ goto start ### :fedora-x64 set custom -- vconsole.font=latarcyrheb-sun16 vconsole.keymap=\${keymap} locale.LANG=\${locale} -set options ip=dhcp root=live:nfs://\${next-server}/srv/nfs/\${os}/LiveOS/squashfs.img ro rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 vga=794 fsck.mode=skip -imgselect \${base}/\${os}/images/pxeboot/vmlinuz \${options} \${custom} || goto failed -imgfetch \${base}/\${os}/images/pxeboot/initrd.img || goto failed +set options ip=dhcp root=live:nfs://\${next-server}/srv/nfs/\${os}/LiveOS/squashfs.img ro rhgb rd.live.image rd.lvm=0 rd.luks=0 rd.md=0 rd.dm=0 nomodeset vga=794 fsck.mode=skip +imgselect \${base}/\${os}/boot/x86_64/loader/linux \${options} \${custom} || goto failed +imgfetch \${base}/\${os}/boot/x86_64/loader/initrd || goto failed imgexec || goto failed goto start From bcde34d829340d2465aefe9bf69af51984ebff1a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 27 Oct 2025 11:45:19 +0100 Subject: [PATCH 671/694] updated url (clonezilla, tails, ubuntu) --- p2-include-url | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/p2-include-url b/p2-include-url index 947a2d5..ec3b966 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-09-23 +# v 2025-10-26 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -100,7 +100,7 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.2.2-15/clonezilla-live-3.2.2-15-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.3.0-33/clonezilla-live-3.3.0-33-amd64.iso CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso @@ -208,8 +208,8 @@ LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA2 LUBUNTU_DAILY_X64_SUM_TYPE=sha256 LUBUNTU_X64=lubuntu-x64 -LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/25.04/release/lubuntu-25.04-desktop-amd64.iso -LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/25.04/release/SHA256SUMS +LUBUNTU_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/25.10/release/lubuntu-25.10-desktop-amd64.iso +LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/25.10/release/SHA256SUMS LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 @@ -275,8 +275,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.0/tails-amd64-7.0.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.0/tails-amd64-7.0.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.1/tails-amd64-7.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.1/tails-amd64-7.1.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -297,8 +297,8 @@ UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 UBUNTU_X64=ubuntu-x64 -UBUNTU_X64_URL=https://releases.ubuntu.com/25.04/ubuntu-25.04-desktop-amd64.iso -UBUNTU_X64_SUM=https://releases.ubuntu.com/25.04/SHA256SUMS +UBUNTU_X64_URL=https://releases.ubuntu.com/25.10/ubuntu-25.10-desktop-amd64.iso +UBUNTU_X64_SUM=https://releases.ubuntu.com/25.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 @@ -317,8 +317,8 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/p UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/25.04/release/ubuntustudio-25.04-desktop-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/25.04/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/25.10/release/ubuntustudio-25.10-desktop-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/25.10/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts From c9fdee2a3cd318c2e73836e6e2c2e1e3332409a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 27 Oct 2025 12:00:52 +0100 Subject: [PATCH 672/694] updated url (ubunti daily) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index ec3b966..d78b9cc 100644 --- a/p2-include-url +++ b/p2-include-url @@ -203,7 +203,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/questing-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/resolute-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -292,7 +292,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/questing-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/resolute-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -312,7 +312,7 @@ UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/questing-desktop-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/resolute-desktop-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 From 3eb0db327d75f153a3409ac2c970f6a159338278 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 27 Oct 2025 12:21:01 +0100 Subject: [PATCH 673/694] updated url (opensuse) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index d78b9cc..6cfbfc9 100644 --- a/p2-include-url +++ b/p2-include-url @@ -230,13 +230,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/openSUSE-current/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 From 6d74f218ef5e062330a1e9425718728a13738b84 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 20 Nov 2025 08:02:35 +0100 Subject: [PATCH 674/694] updated url (debian, devuan, fedora, finnix, opensuse, tails) --- p2-include-url | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/p2-include-url b/p2-include-url index 6cfbfc9..8e2fe1d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-10-26 +# v 2025-11-19 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -107,7 +107,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.1.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.2.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -130,8 +130,8 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_daedalus/desktop-live/devuan_daedalus_5.0.0_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_daedalus/desktop-live/SHA256SUMS.txt +DEVUAN_X64_URL=https://files.devuan.org/devuan_excalibur/desktop-live/devuan_excalibur_6.0.0_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_excalibur/desktop-live/devuan_excalibur_6.0.0_amd64_desktop-live.iso.sha256 DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 @@ -162,26 +162,26 @@ ESET_SYSRESCUE_X86=eset-rescue-x86 FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/42/Workstation/x86_64/iso/Fedora-Workstation-Live-42-1.1.x86_64.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/42/Workstation/x86_64/iso/Fedora-Workstation-42-1.1-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/43/Workstation/x86_64/iso/Fedora-Workstation-Live-43-1.6.x86_64.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/43/Workstation/x86_64/iso/Fedora-Workstation-43-1.6-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 -FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/42/Labs/x86_64/iso/Fedora-Security-Live-x86_64-42-1.1.iso -FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/42/Labs/x86_64/iso/Fedora-Labs-42-1.1-x86_64-CHECKSUM +FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/43/Labs/x86_64/iso/Fedora-Security-Live-x86_64-43-1.6.iso +FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/43/Labs/x86_64/iso/Fedora-Labs-43-1.6-x86_64-CHECKSUM FEDORA_SL_X64_SUM_TYPE=sha256 FINNIX_X64=finnix-x64 -FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-250.iso -FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-250.iso.gpg +FINNIX_X64_URL=https://www.finnix.org/releases/current/finnix-251.iso +FINNIX_X64_SUM=https://www.finnix.org/releases/current/finnix-251.iso.gpg FINNIX_X64_SUM_TYPE=gpg GPARTED_X64=gparted-x64 -GPARTED_X64_URL=https://downloads.sourceforge.net/project/gparted/gparted-live-stable/1.7.0-8/gparted-live-1.7.0-8-amd64.iso -GPARTED_X64_SUM=https://sourceforge.net/projects/gparted/files/gparted-live-stable/1.7.0-8/ -GPARTED_X64_SUM_TYPE=sha256 +#GPARTED_X64_URL=https://downloads.sourceforge.net/project/gparted/gparted-live-stable/1.7.0-8/gparted-live-1.7.0-8-amd64.iso +#GPARTED_X64_SUM=https://sourceforge.net/projects/gparted/files/gparted-live-stable/1.7.0-8/ +#GPARTED_X64_SUM_TYPE=sha256 KALI_X64=kali-x64 @@ -230,13 +230,13 @@ MINT_X64_SUM_TYPE=sha256 OPENSUSE_RESCUE_X64=opensuse-rescue-x64 -OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso -OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-Rescue-CD-x86_64-Media.iso.sha256 +OPENSUSE_RESCUE_X64_URL=https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-Rescue-CD-x86_64-Current.iso +OPENSUSE_RESCUE_X64_SUM=https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-Rescue-CD-x86_64-Current.iso.sha256 OPENSUSE_RESCUE_X64_SUM_TYPE=sha256 OPENSUSE_X64=opensuse-x64 -OPENSUSE_X64_URL=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso -OPENSUSE_X64_SUM=https://download.opensuse.org/distribution/leap/15.6/live/openSUSE-Leap-15.6-KDE-Live-x86_64-Media.iso.sha256 +OPENSUSE_X64_URL=https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-KDE-Live-x86_64-Current.iso +OPENSUSE_X64_SUM=https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-KDE-Live-x86_64-Current.iso.sha256 OPENSUSE_X64_SUM_TYPE=sha256 @@ -275,8 +275,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.1/tails-amd64-7.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.1/tails-amd64-7.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.2/tails-amd64-7.2.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.2/tails-amd64-7.2.iso.sig TAILS_X64_SUM_TYPE=pgp From 1704e7311075741ed40dfb4af91d5fa6558f4326 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Wed, 17 Dec 2025 22:11:36 +0100 Subject: [PATCH 675/694] updated url (kali, sysrescue, tails) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8e2fe1d..b586e6d 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-11-19 +# v 2025-12-16 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -185,7 +185,7 @@ GPARTED_X64=gparted-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2025.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/kali-2025.3/kali-linux-2025.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -271,12 +271,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.02/systemrescue-12.02-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.03/systemrescue-12.03-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.2/tails-amd64-7.2.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.2/tails-amd64-7.2.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.3.1/tails-amd64-7.3.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.3.1/tails-amd64-7.3.1.iso.sig TAILS_X64_SUM_TYPE=pgp From fb672a6992dcc88b29d3f20ec788c35761c4f68f Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 11 Jan 2026 17:51:48 +0100 Subject: [PATCH 676/694] updated url (debian, devuan, dragonos, kali, parrot) --- p2-include-url | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p2-include-url b/p2-include-url index b586e6d..6329599 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-12-16 +# v 2025-01-10 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -107,7 +107,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.2.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.3.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -130,8 +130,8 @@ DEFTZ_X64=deftz-x64 DEVUAN_X64=devuan-x64 -DEVUAN_X64_URL=https://files.devuan.org/devuan_excalibur/desktop-live/devuan_excalibur_6.0.0_amd64_desktop-live.iso -DEVUAN_X64_SUM=https://files.devuan.org/devuan_excalibur/desktop-live/devuan_excalibur_6.0.0_amd64_desktop-live.iso.sha256 +DEVUAN_X64_URL=https://files.devuan.org/devuan_excalibur/desktop-live/devuan_excalibur_6.1.1_amd64_desktop-live.iso +DEVUAN_X64_SUM=https://files.devuan.org/devuan_excalibur/desktop-live/devuan_excalibur_6.1.1_amd64_desktop-live.iso.sha256 DEVUAN_X64_SUM_TYPE=sha256 DEVUAN_X86=devuan-x86 @@ -141,8 +141,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R7.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R7.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R8.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R8.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -185,7 +185,7 @@ GPARTED_X64=gparted-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/kali-2025.3/kali-linux-2025.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/kali-2025.4/kali-linux-2025.4-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -241,8 +241,8 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/6.4/Parrot-security-6.4_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/6.4/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/7.0/Parrot-security-7.0_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/7.0/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 From 81cc2cdfe2355d5db438256c8e294bf893151e26 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 11 Jan 2026 18:27:53 +0100 Subject: [PATCH 677/694] revert url to Kali2025.4 back to 2024.3 https://www.kali.org/blog/kali-linux-2025-4-release/#kali-live-image-is-now-distributed-over-bittorrent-only --- p2-include-url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2-include-url b/p2-include-url index 6329599..7372dd8 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2025-01-10 +# v 2026-01-10 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -185,7 +185,7 @@ GPARTED_X64=gparted-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/kali-2025.4/kali-linux-2025.4-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/kali-2025.3/kali-linux-2025.3-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From a0963afd268b854fb73f412036fd59f4415350a6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 29 Jan 2026 08:15:26 +0100 Subject: [PATCH 678/694] updated url (emmabuntus, mint, parrot, tails) --- p2-include-url | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/p2-include-url b/p2-include-url index 7372dd8..e057aa7 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-01-10 +# v 2026-01-28 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -147,13 +147,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-amd64-12.10-1.04.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-amd64-12.10-1.04.iso.sum.txt +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-amd64-12.10-1.05.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-amd64-12.10-1.05.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-i686-12.10-1.04.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.04/emmabuntus-de5-i686-12.10-1.04.iso.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-i686-12.10-1.05.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-i686-12.10-1.05.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 @@ -224,8 +224,8 @@ LUBUNTU_LTS_X86_SUM_TYPE=sha256 MINT_X64=mint-x64 -MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22.2/linuxmint-22.2-cinnamon-64bit.iso -MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22.2/sha256sum.txt +MINT_X64_URL=https://mirrors.edge.kernel.org/linuxmint/stable/22.3/linuxmint-22.3-cinnamon-64bit.iso +MINT_X64_SUM=https://mirrors.edge.kernel.org/linuxmint/stable/22.3/sha256sum.txt MINT_X64_SUM_TYPE=sha256 @@ -241,13 +241,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/7.0/Parrot-security-7.0_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/7.0/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/7.1/Parrot-security-7.1_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/7.1/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/6.4/Parrot-home-6.4_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/6.4/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/7.1/Parrot-home-7.1_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/7.1/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -275,8 +275,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.3.1/tails-amd64-7.3.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.3.1/tails-amd64-7.3.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4/tails-amd64-7.4.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4/tails-amd64-7.4.iso.sig TAILS_X64_SUM_TYPE=pgp From b979dc166617e6bbcad59a6059e659825af304a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Thu, 29 Jan 2026 08:18:41 +0100 Subject: [PATCH 679/694] fixed url (emmabuntus) --- p2-include-url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index e057aa7..cc799e2 100644 --- a/p2-include-url +++ b/p2-include-url @@ -147,13 +147,13 @@ DRAGONOS_X64_SUM_TYPE=sha256 EMMABUNTUS_X64=emmabuntus-x64 -EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-amd64-12.10-1.05.iso -EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-amd64-12.10-1.05.iso.sum.txt +EMMABUNTUS_X64_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-amd64-12.13-1.05.iso +EMMABUNTUS_X64_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-amd64-12.13-1.05.iso.sum.txt EMMABUNTUS_X64_SUM_TYPE=sha256 EMMABUNTUS_X86=emmabuntus-x86 -EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-i686-12.10-1.05.iso -EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-i686-12.10-1.05.iso.sum.txt +EMMABUNTUS_X86_URL=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-i686-12.13-1.05.iso +EMMABUNTUS_X86_SUM=https://downloads.sourceforge.net/project/emmabuntus/Emmabuntus_DE5/Images/1.05/emmabuntus-de5-i686-12.13-1.05.iso.sum.txt EMMABUNTUS_X86_SUM_TYPE=sha256 From 1046739025db29fc9aab370294f7712642b83a03 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 16 Feb 2026 22:21:27 +0100 Subject: [PATCH 680/694] updated url (tails, ubuntu) --- p2-include-url | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/p2-include-url b/p2-include-url index cc799e2..6765fc4 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-01-28 +# v 2026-02-16 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -213,7 +213,7 @@ LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/25.10/release/SHA256 LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.3-desktop-amd64.iso +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.4-desktop-amd64.iso LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 @@ -275,8 +275,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4/tails-amd64-7.4.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4/tails-amd64-7.4.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4.2/tails-amd64-7.4.2.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4.2/tails-amd64-7.4.2.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -302,7 +302,7 @@ UBUNTU_X64_SUM=https://releases.ubuntu.com/25.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.3-desktop-amd64.iso +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.4-desktop-amd64.iso UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 From ecb7d228b665384b88d0cdb579dd27ff4537eac4 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 28 Feb 2026 08:16:13 +0100 Subject: [PATCH 681/694] updated url (bunsen, clonezilla, tails, tinycore) --- p2-include-url | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index 6765fc4..a5b3a7a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-02-16 +# v 2026-02-28 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -94,13 +94,14 @@ BLACKARCH_X64_URL=https://ftp.halifax.rwth-aachen.de/blackarch/iso/blackarch-lin BUNSEN_X64=bunsen-x64 -BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/boron-1-240123-amd64.hybrid.iso +BUNSEN_X64_URL=https://ddl.bunsenlabs.org/ddl/carbon-1-260211-amd64.hybrid.iso BUNSEN_X64_SUM=https://ddl.bunsenlabs.org/ddl/release.sha256.txt BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.3.0-33/clonezilla-live-3.3.0-33-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.3.1-35/clonezilla-live-3.3.1-35-amd64.iso + CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso @@ -275,14 +276,14 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4.2/tails-amd64-7.4.2.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.4.2/tails-amd64-7.4.2.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.5/tails-amd64-7.5.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.5/tails-amd64-7.5.iso.sig TAILS_X64_SUM_TYPE=pgp TINYCORE_X64=tinycore-x64 -TINYCORE_X64_URL=http://tinycorelinux.net/16.x/x86_64/release/TinyCorePure64-current.iso -TINYCORE_X64_SUM=http://tinycorelinux.net/16.x/x86_64/release/TinyCorePure64-current.iso.md5.txt +TINYCORE_X64_URL=http://tinycorelinux.net/17.x/x86_64/release/TinyCorePure64-current.iso +TINYCORE_X64_SUM=http://tinycorelinux.net/17.x/x86_64/release/TinyCorePure64-current.iso.md5.txt TINYCORE_X64_SUM_TYPE=md5 TINYCORE_X86=tinycore-x86 From db119ce14ee67ffdb106598403176506143bf7c9 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Mon, 13 Apr 2026 12:13:52 +0200 Subject: [PATCH 682/694] updated url (debian, dragonos, kali, sysrescue, tails) --- p2-include-url | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/p2-include-url b/p2-include-url index a5b3a7a..9aea970 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-02-28 +# v 2026-04-12 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -108,7 +108,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.3.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.4.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -142,8 +142,8 @@ DEVUAN_X86_SUM_TYPE=sha256 DRAGONOS_X64=dragonos-x64 -DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R8.iso -DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R8.iso.sha256 +DRAGONOS_X64_URL=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R9.iso +DRAGONOS_X64_SUM=https://downloads.sourceforge.net/project/dragonos-focal/DragonOS_Noble_R9.iso.sha256 DRAGONOS_X64_SUM_TYPE=sha256 @@ -186,7 +186,7 @@ GPARTED_X64=gparted-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/kali-2025.3/kali-linux-2025.3-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2026.1-live-amd64.iso KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 @@ -272,12 +272,12 @@ RESCUEZILLA_X64_SUM_TYPE=sha256 SYSTEMRESCUE_X64=systemrescue-x64 -SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/12.03/systemrescue-12.03-amd64.iso +SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/13.00/systemrescue-13.00-amd64.iso TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.5/tails-amd64-7.5.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.5/tails-amd64-7.5.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.1/tails-amd64-7.6.1.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.1/tails-amd64-7.6.1.iso.sig TAILS_X64_SUM_TYPE=pgp From a2ee85fd94eea29fcb1cfb1813ea46d16dd66fd6 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 25 Apr 2026 21:15:29 +0200 Subject: [PATCH 683/694] updated url (tails, ubuntu) --- p2-include-url | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/p2-include-url b/p2-include-url index 9aea970..969af84 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-04-12 +# v 2026-04-24 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -214,8 +214,8 @@ LUBUNTU_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/25.10/release/SHA256 LUBUNTU_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X64=lubuntu-lts-x64 -LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/lubuntu-24.04.4-desktop-amd64.iso -LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/24.04/release/SHA256SUMS +LUBUNTU_LTS_X64_URL=https://cdimage.ubuntu.com/lubuntu/releases/26.04/release/lubuntu-26.04-desktop-amd64.iso +LUBUNTU_LTS_X64_SUM=https://cdimage.ubuntu.com/lubuntu/releases/26.04/release/SHA256SUMS LUBUNTU_LTS_X64_SUM_TYPE=sha256 LUBUNTU_LTS_X86=lubuntu-lts-x86 @@ -276,8 +276,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.1/tails-amd64-7.6.1.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.1/tails-amd64-7.6.1.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.2/tails-amd64-7.6.2.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.2/tails-amd64-7.6.2.iso.sig TAILS_X64_SUM_TYPE=pgp @@ -303,8 +303,8 @@ UBUNTU_X64_SUM=https://releases.ubuntu.com/25.10/SHA256SUMS UBUNTU_X64_SUM_TYPE=sha256 UBUNTU_LTS_X64=ubuntu-lts-x64 -UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/24.04/ubuntu-24.04.4-desktop-amd64.iso -UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/24.04/SHA256SUMS +UBUNTU_LTS_X64_URL=https://releases.ubuntu.com/26.04/ubuntu-26.04-desktop-amd64.iso +UBUNTU_LTS_X64_SUM=https://releases.ubuntu.com/26.04/SHA256SUMS UBUNTU_LTS_X64_SUM_TYPE=sha256 UBUNTU_LTS_X86=ubuntu-lts-x86 @@ -318,8 +318,8 @@ UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/p UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256 UBUNTU_STUDIO_X64=ubuntu-studio-x64 -UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/25.10/release/ubuntustudio-25.10-desktop-amd64.iso -UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/25.10/release/SHA256SUMS +UBUNTU_STUDIO_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/releases/26.04/release/ubuntustudio-26.04-desktop-amd64.iso +UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/26.04/release/SHA256SUMS UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts From f2ec96900abade33653fb2b5f1269bc30f6e949a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 25 Apr 2026 21:27:45 +0200 Subject: [PATCH 684/694] disabled ubuntu-fwts --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 969af84..6c75147 100644 --- a/p2-include-url +++ b/p2-include-url @@ -323,9 +323,9 @@ UBUNTU_STUDIO_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/releases/26.04/rel UBUNTU_STUDIO_X64_SUM_TYPE=sha256 UBUNTU_FWTS=ubuntu-fwts -UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-25.07.00-x86_64.img.xz -UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM -UBUNTU_FWTS_SUM_TYPE=sha256 +#UBUNTU_FWTS_URL=https://fwts.ubuntu.com/fwts-live/fwts-live-25.07.00-x86_64.img.xz +#UBUNTU_FWTS_SUM=https://fwts.ubuntu.com/fwts-live/SHA256SUM +#UBUNTU_FWTS_SUM_TYPE=sha256 #custom# From d823160d66ed50639ac0beaf2bfc694265c0d9a2 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Apr 2026 09:38:39 +0200 Subject: [PATCH 685/694] added iso.torrent via aria2 for kali --- p2-update | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/p2-update b/p2-update index 6bbd7ce..41a45fc 100644 --- a/p2-update +++ b/p2-update @@ -55,6 +55,19 @@ fi [[ -z "${SRC_MOUNT}" ]] && sudo mount "${SRC_MOUNT}" &>/dev/null; +######################################################################## +######################################################################## +#OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --max-connection-per-server=8 --split=8 --remote-time --max-upload-limit=0 --seed-time=0 --bt-hash-check-seed=false --bt-max-peers=1 --enable-dht=false --bt-enable-lpd=false --follow-torrent=true" +#OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0 --follow-torrent=true" +OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0" +# ensure aria2c is installed +if ! command -v aria2c &>/dev/null; then + echo -e "\e[33maria2c not found – install aria2...\e[0m"; + sudo apt-get update -y; + sudo apt-get install -y aria2; +fi + + ######################################################################## compare_last_modification_time() { python3 - << EOF "${1:?}" "${2:?}" @@ -504,6 +517,16 @@ handle_iso() { sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; sudo wget -O "${DST_ISO:?}/${FILE_ISO:?}" "${URL:?}"; + + if [[ "$URL" == *.torrent ]]; then + FILE_TORRENT="${DST_ISO:?}/${FILE_ISO:?}.torrent" + sudo mv -f "${DST_ISO:?}/${FILE_ISO:?}" "${FILE_TORRENT:?}"; + sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" "${FILE_TORRENT:?}"; + FILE_DL=$(basename $(aria2c --show-files "${FILE_TORRENT:?}" | grep -E '^[[:space:]]*1\|' | cut -d'|' -f2)) + #echo FILE_DL = \'"${DST_ISO:?}/${FILE_DL:?}"\' + sudo mv "${DST_ISO:?}/${FILE_DL:?}" "${DST_ISO:?}/${FILE_ISO:?}"; + fi + sudo sh -c "echo '${URL}' > ${DST_ISO:?}/${FILE_URL:?}"; sudo touch -r "${DST_ISO:?}/${FILE_ISO:?}" "${DST_ISO:?}/${FILE_URL:?}"; fi From eb397eef38cfb70fa741b44637ab962f10b65c20 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Apr 2026 09:42:55 +0200 Subject: [PATCH 686/694] updated url (kali) --- p2-include-url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2-include-url b/p2-include-url index 6c75147..a790736 100644 --- a/p2-include-url +++ b/p2-include-url @@ -186,7 +186,7 @@ GPARTED_X64=gparted-x64 KALI_X64=kali-x64 -KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2026.1-live-amd64.iso +KALI_X64_URL=https://cdimage.kali.org/current/kali-linux-2026.1-live-amd64.iso.torrent KALI_X64_SUM=https://cdimage.kali.org/current/SHA256SUMS KALI_X64_SUM_TYPE=sha256 From 78c8268bf2b078f45181b7c832d815b151761fae Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Apr 2026 18:35:13 +0200 Subject: [PATCH 687/694] tune torrent download --- p2-update | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/p2-update b/p2-update index 41a45fc..bf07da6 100644 --- a/p2-update +++ b/p2-update @@ -59,7 +59,8 @@ fi ######################################################################## #OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --max-connection-per-server=8 --split=8 --remote-time --max-upload-limit=0 --seed-time=0 --bt-hash-check-seed=false --bt-max-peers=1 --enable-dht=false --bt-enable-lpd=false --follow-torrent=true" #OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0 --follow-torrent=true" -OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0" +#OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0" +OPT_ARIA="--allow-overwrite=true --summary-interval=0 --remote-time --seed-time=0 --follow-torrent=true" # ensure aria2c is installed if ! command -v aria2c &>/dev/null; then echo -e "\e[33maria2c not found – install aria2...\e[0m"; @@ -519,12 +520,12 @@ handle_iso() { sudo wget -O "${DST_ISO:?}/${FILE_ISO:?}" "${URL:?}"; if [[ "$URL" == *.torrent ]]; then - FILE_TORRENT="${DST_ISO:?}/${FILE_ISO:?}.torrent" - sudo mv -f "${DST_ISO:?}/${FILE_ISO:?}" "${FILE_TORRENT:?}"; - sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" "${FILE_TORRENT:?}"; - FILE_DL=$(basename $(aria2c --show-files "${FILE_TORRENT:?}" | grep -E '^[[:space:]]*1\|' | cut -d'|' -f2)) + #FILE_TORRENT="${DST_ISO:?}/${FILE_ISO:?}.torrent" + #sudo mv -f "${DST_ISO:?}/${FILE_ISO:?}" "${FILE_TORRENT:?}"; + #sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" "${FILE_TORRENT:?}"; + FILE_DL=$(basename $(aria2c --show-files "${FILE_ISO:?}" | grep -E '^[[:space:]]*1\|' | cut -d'|' -f2)) #echo FILE_DL = \'"${DST_ISO:?}/${FILE_DL:?}"\' - sudo mv "${DST_ISO:?}/${FILE_DL:?}" "${DST_ISO:?}/${FILE_ISO:?}"; + sudo mv -f "${DST_ISO:?}/${FILE_DL:?}" "${DST_ISO:?}/${FILE_ISO:?}"; fi sudo sh -c "echo '${URL}' > ${DST_ISO:?}/${FILE_URL:?}"; From 7a650f193d5d6c3e824177fb1d63fd1342768e2c Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Apr 2026 19:14:26 +0200 Subject: [PATCH 688/694] tune torrent download --- p2-update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/p2-update b/p2-update index bf07da6..b593a58 100644 --- a/p2-update +++ b/p2-update @@ -517,13 +517,14 @@ handle_iso() { echo -e "\e[36m download iso image\e[0m"; sudo rm -f "${DST_ISO:?}/${FILE_URL:?}"; sudo rm -f "${DST_ISO:?}/${FILE_ISO:?}"; - sudo wget -O "${DST_ISO:?}/${FILE_ISO:?}" "${URL:?}"; + #sudo wget -O "${DST_ISO:?}/${FILE_ISO:?}" "${URL:?}"; + sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" --out="${FILE_ISO:?}" "${URL:?}"; if [[ "$URL" == *.torrent ]]; then #FILE_TORRENT="${DST_ISO:?}/${FILE_ISO:?}.torrent" #sudo mv -f "${DST_ISO:?}/${FILE_ISO:?}" "${FILE_TORRENT:?}"; #sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" "${FILE_TORRENT:?}"; - FILE_DL=$(basename $(aria2c --show-files "${FILE_ISO:?}" | grep -E '^[[:space:]]*1\|' | cut -d'|' -f2)) + FILE_DL=$(basename $(aria2c --show-files "${DST_ISO:?}/${FILE_ISO:?}" | grep -E '^[[:space:]]*1\|' | cut -d'|' -f2)) #echo FILE_DL = \'"${DST_ISO:?}/${FILE_DL:?}"\' sudo mv -f "${DST_ISO:?}/${FILE_DL:?}" "${DST_ISO:?}/${FILE_ISO:?}"; fi From 5766c55147c6f02ada63debe47c04f009f03b3be Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Apr 2026 21:28:27 +0200 Subject: [PATCH 689/694] final torrent version --- p2-update | 5 ----- 1 file changed, 5 deletions(-) diff --git a/p2-update b/p2-update index b593a58..a0042fe 100644 --- a/p2-update +++ b/p2-update @@ -58,8 +58,6 @@ fi ######################################################################## ######################################################################## #OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --max-connection-per-server=8 --split=8 --remote-time --max-upload-limit=0 --seed-time=0 --bt-hash-check-seed=false --bt-max-peers=1 --enable-dht=false --bt-enable-lpd=false --follow-torrent=true" -#OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0 --follow-torrent=true" -#OPT_ARIA="--connect-timeout=10 --max-tries=3 --allow-overwrite=true --summary-interval=0 --remote-time --max-connection-per-server=8 --split=8 --seed-time=0" OPT_ARIA="--allow-overwrite=true --summary-interval=0 --remote-time --seed-time=0 --follow-torrent=true" # ensure aria2c is installed if ! command -v aria2c &>/dev/null; then @@ -521,9 +519,6 @@ handle_iso() { sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" --out="${FILE_ISO:?}" "${URL:?}"; if [[ "$URL" == *.torrent ]]; then - #FILE_TORRENT="${DST_ISO:?}/${FILE_ISO:?}.torrent" - #sudo mv -f "${DST_ISO:?}/${FILE_ISO:?}" "${FILE_TORRENT:?}"; - #sudo aria2c ${OPT_ARIA} --dir="${DST_ISO:?}" "${FILE_TORRENT:?}"; FILE_DL=$(basename $(aria2c --show-files "${DST_ISO:?}/${FILE_ISO:?}" | grep -E '^[[:space:]]*1\|' | cut -d'|' -f2)) #echo FILE_DL = \'"${DST_ISO:?}/${FILE_DL:?}"\' sudo mv -f "${DST_ISO:?}/${FILE_DL:?}" "${DST_ISO:?}/${FILE_ISO:?}"; From 33c3a680be73cb790118d526e521506e960b8840 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 26 Apr 2026 21:48:50 +0200 Subject: [PATCH 690/694] added aria2 for torrent --- p0-install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/p0-install b/p0-install index ede75bc..4cb4c36 100644 --- a/p0-install +++ b/p0-install @@ -66,6 +66,11 @@ echo -e "\e[32minstall debconf-utils\e[0m"; sudo apt install -y --no-install-recommends debconf-utils; +######################################################################## +echo -e "\e[32minstall aria2\e[0m"; +sudo apt install -y --no-install-recommends aria2; + + ######################################################################## echo -e "\e[32minstall uuid\e[0m"; sudo apt install -y --no-install-recommends uuid; From 9e4a345c30a99fe2ed7b6e70c80a34671a64ba84 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sun, 3 May 2026 15:37:00 +0200 Subject: [PATCH 691/694] updated url (fedora, tails) --- p2-include-url | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/p2-include-url b/p2-include-url index a790736..a91dcee 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-04-24 +# v 2026-05-02 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -163,13 +163,13 @@ ESET_SYSRESCUE_X86=eset-rescue-x86 FEDORA_X64=fedora-x64 -FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/43/Workstation/x86_64/iso/Fedora-Workstation-Live-43-1.6.x86_64.iso -FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/43/Workstation/x86_64/iso/Fedora-Workstation-43-1.6-x86_64-CHECKSUM +FEDORA_X64_URL=https://download.fedoraproject.org/pub/fedora/linux/releases/44/Workstation/x86_64/iso/Fedora-Workstation-Live-44-1.7.x86_64.iso +FEDORA_X64_SUM=https://download.fedoraproject.org/pub/fedora/linux/releases/44/Workstation/x86_64/iso/Fedora-Workstation-44-1.7-x86_64-CHECKSUM FEDORA_X64_SUM_TYPE=sha256 FEDORA_SL_X64=fedora-sec-x64 -FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/43/Labs/x86_64/iso/Fedora-Security-Live-x86_64-43-1.6.iso -FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/43/Labs/x86_64/iso/Fedora-Labs-43-1.6-x86_64-CHECKSUM +FEDORA_SL_X64_URL=https://download.fedoraproject.org/pub/alt/releases/44/Labs/x86_64/iso/Fedora-Security-Live-44-1.7.x86_64.iso +FEDORA_SL_X64_SUM=https://download.fedoraproject.org/pub/alt/releases/44/Labs/x86_64/iso/Fedora-Labs-44-1.7-x86_64-CHECKSUM FEDORA_SL_X64_SUM_TYPE=sha256 @@ -276,8 +276,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.2/tails-amd64-7.6.2.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.6.2/tails-amd64-7.6.2.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.7.2/tails-amd64-7.7.2.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.7.2/tails-amd64-7.7.2.iso.sig TAILS_X64_SUM_TYPE=pgp From b98ee9acaaa77e3bb9dbd5ff3f2fa8d85292ca56 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Sat, 23 May 2026 23:21:03 +0200 Subject: [PATCH 692/694] updated url (debian, parrot, rescuezilla, tails) --- p2-include-url | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/p2-include-url b/p2-include-url index a91dcee..cd1ec63 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-05-02 +# v 2026-05-23 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -108,7 +108,7 @@ CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezil DEBIAN_KVER= DEBIAN_X64=debian-x64 -DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.4.0-amd64-cinnamon.iso +DEBIAN_X64_URL=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-13.5.0-amd64-cinnamon.iso DEBIAN_X64_SUM=https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS DEBIAN_X64_SUM_TYPE=sha256 @@ -242,13 +242,13 @@ OPENSUSE_X64_SUM_TYPE=sha256 PARROT_FULL_X64=parrot-full-x64 -PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/7.1/Parrot-security-7.1_amd64.iso -PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/7.1/signed-hashes.txt +PARROT_FULL_X64_URL=https://download.parrot.sh/parrot/iso/7.2/Parrot-security-7.2_amd64.iso +PARROT_FULL_X64_SUM=https://download.parrot.sh/parrot/iso/7.2/signed-hashes.txt PARROT_FULL_X64_SUM_TYPE=sha256 PARROT_LITE_X64=parrot-lite-x64 -PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/7.1/Parrot-home-7.1_amd64.iso -PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/7.1/signed-hashes.txt +PARROT_LITE_X64_URL=https://download.parrot.sh/parrot/iso/7.2/Parrot-home-7.2_amd64.iso +PARROT_LITE_X64_SUM=https://download.parrot.sh/parrot/iso/7.2/signed-hashes.txt PARROT_LITE_X64_SUM_TYPE=sha256 @@ -266,8 +266,8 @@ RPDESKTOP_X86_SUM_TYPE=sha256 RESCUEZILLA_X64=rescuezilla-x64 -RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.6.1/rescuezilla-2.6.1-64bit.oracular.iso -RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.6.1/SHA256SUM +RESCUEZILLA_X64_URL=https://github.com/rescuezilla/rescuezilla/releases/download/2.6.2/rescuezilla-2.6.2-64bit.resolute.iso +RESCUEZILLA_X64_SUM=https://github.com/rescuezilla/rescuezilla/releases/download/2.6.2/SHA256SUM RESCUEZILLA_X64_SUM_TYPE=sha256 @@ -276,8 +276,8 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.7.2/tails-amd64-7.7.2.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.7.2/tails-amd64-7.7.2.iso.sig +TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.8/tails-amd64-7.8.iso +TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.8/tails-amd64-7.8.iso.sig TAILS_X64_SUM_TYPE=pgp From ce58c2c109f3de39f8dd76e3c29b8b9dbc504e88 Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 5 Jun 2026 11:21:56 +0200 Subject: [PATCH 693/694] updated url (clonezilla, tails) --- p2-include-url | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/p2-include-url b/p2-include-url index cd1ec63..8b81611 100644 --- a/p2-include-url +++ b/p2-include-url @@ -10,7 +10,7 @@ fi ######################################################################## -# v 2026-05-23 +# v 2026-06-04 # pull updates # cd ~/git/RPi-PXE-Server/ && git pull --no-rebase && cd - || git diff; @@ -100,7 +100,7 @@ BUNSEN_X64_SUM_TYPE=sha256 CLONEZILLA_X64=clonezilla-x64 -CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.3.1-35/clonezilla-live-3.3.1-35-amd64.iso +CLONEZILLA_X64_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable/3.3.2-31/clonezilla-live-3.3.2-31-amd64.iso CLONEZILLA_X86=clonezilla-x86 CLONEZILLA_X86_URL=https://downloads.sourceforge.net/project/clonezilla/clonezilla_live_stable//3.2.0-5/clonezilla-live-3.2.0-5-i686.iso @@ -276,8 +276,10 @@ SYSTEMRESCUE_X64_URL=https://downloads.sourceforge.net/project/systemrescuecd/sy TAILS_X64=tails-x64 -TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.8/tails-amd64-7.8.iso -TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.8/tails-amd64-7.8.iso.sig +#TAILS_X64_URL=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.8.1/tails-amd64-7.8.1.iso +#TAILS_X64_SUM=https://mirrors.edge.kernel.org/tails/stable/tails-amd64-7.8.1/tails-amd64-7.8.1.iso.sig +TAILS_X64_URL=https://download.tails.net/tails/stable/tails-amd64-7.8.1/tails-amd64-7.8.1.iso +TAILS_X64_SUM=https://download.tails.net/tails/stable/tails-amd64-7.8.1/tails-amd64-7.8.1.iso.sig TAILS_X64_SUM_TYPE=pgp From 65fefd60c774c7f357b7fd6b71ded42234c5941a Mon Sep 17 00:00:00 2001 From: beta-tester Date: Fri, 5 Jun 2026 11:27:16 +0200 Subject: [PATCH 694/694] updated url (ubuntu) --- p2-include-url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2-include-url b/p2-include-url index 8b81611..ba6033a 100644 --- a/p2-include-url +++ b/p2-include-url @@ -204,7 +204,7 @@ KNOPPIX_X86_EXTRA_INITRD_URL=https://github.com/beta-tester/RPi-PXE-Server/files LUBUNTU_DAILY_X64=lubuntu-daily-x64 -LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/resolute-desktop-amd64.iso +LUBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/stonking-desktop-amd64.iso LUBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/lubuntu/daily-live/pending/SHA256SUMS LUBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -295,7 +295,7 @@ TINYCORE_X86_SUM_TYPE=md5 UBUNTU_DAILY_X64=ubuntu-daily-x64 -UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/resolute-desktop-amd64.iso +UBUNTU_DAILY_X64_URL=https://cdimage.ubuntu.com/daily-live/pending/stonking-desktop-amd64.iso UBUNTU_DAILY_X64_SUM=https://cdimage.ubuntu.com/daily-live/pending/SHA256SUMS UBUNTU_DAILY_X64_SUM_TYPE=sha256 @@ -315,7 +315,7 @@ UBUNTU_LTS_X86_SUM=https://releases.ubuntu.com/16.04/SHA256SUMS UBUNTU_LTS_X86_SUM_TYPE=sha256 UBUNTU_STUDIO_DAILY_X64=ubuntu-studio-daily-x64 -UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/resolute-desktop-amd64.iso +UBUNTU_STUDIO_DAILY_X64_URL=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/stonking-desktop-amd64.iso UBUNTU_STUDIO_DAILY_X64_SUM=https://cdimage.ubuntu.com/ubuntustudio/daily-live/pending/SHA256SUMS UBUNTU_STUDIO_DAILY_X64_SUM_TYPE=sha256