Commit 411f43da authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼 Committed by Lu Xu

Add Ubuntu 20 and Debian 10 without automatic install options

parent 657843fb
......@@ -7,6 +7,7 @@ SCRIPT_DIR=$(realpath `dirname "$0"`)
. $SCRIPT_DIR/download_boot_systems.sh
download_debian_10_if_needed
download_ubuntu_20_if_needed
#download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
......@@ -37,16 +38,27 @@ elif [ \$net_default_mac = 00:22:4d:da:ca:a7 ];
then
set hostname=lille-edu-capri-002
set inteface=eno1
else
set hostname=unknown
set interface=unknown
fi
unset timeout
menuentry 'Debian Installer' {
linux /debian-installer/amd64/linux vga=788 url=tftp://\$pxe_default_server/preseed_lille.cfg language=C country=FR keymap=fr hostname=\$hostname domain= interface=\$interface --- mitigations=off $common
menuentry 'Debian Installer (automatic install)' {
linux /debian-installer/amd64/linux url=tftp://\$pxe_default_server/preseed_lille.cfg vga=788 language=C country=FR keymap=fr hostname=\$hostname domain= interface=\$interface --- mitigations=off console=ttyS1,57600
initrd /debian-installer/amd64/initrd.gz
}
menuentry 'Debian Installer (manual install)' {
linux /debian-installer/amd64/linux vga=788 language=C country=FR keymap=fr hostname=\$hostname domain= interface=\$interface --- mitigations=off console=ttyS1,57600
initrd /debian-installer/amd64/initrd.gz
}
menuentry 'Ubuntu Installer' {
linux /ubuntu-installer/amd64/linux vga=788 language=C country=FR keymap=fr --- mitigations=off console=ttyS0,57600
initrd /ubuntu-installer/amd64/initrd.gz
}
menuentry 'SystemRescueCd' {
linux /sysresccd/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=http://\$pxe_default_server:69/sysresccd/ checksum ip=dhcp $common
linux /sysresccd/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=http://\$pxe_default_server:69/sysresccd/ checksum ip=dhcp console=ttyS1,57600
initrd /sysresccd/sysresccd/boot/intel_ucode.img /sysresccd/sysresccd/boot/amd_ucode.img /sysresccd/sysresccd/boot/x86_64/sysresccd.img
}
menuentry 'Exit' {
......@@ -96,3 +108,7 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-host=00:22:4d:da:ca:a7,192.168.46.104,1h \
--dhcp-host=00:22:4d:da:ca:88,192.168.46.105,1h \
--dhcp-host=00:22:4d:da:ca:87,192.168.46.106,1h \
--dhcp-host=00:22:4d:d9:0a:ab,192.168.46.107,1h \
--dhcp-host=00:22:4d:d9:0a:aa,192.168.46.108,1h \
--dhcp-host=00:22:4d:da:8a:3b,192.168.46.109,1h \
--dhcp-host=00:22:4d:da:8a:3a,192.168.46.110,1h \
#!/bin/sh
download_debian_10_if_needed() {
if [ ! -f version.info ]
if [ ! -d debian-installer ]
then
rm -f netboot.tar.gz
rm -f grubx64.efi
......@@ -29,3 +29,12 @@ then
mount -o loop CentOS-8.2.2004-x86_64-minimal.iso centos-installer
fi
}
download_ubuntu_20_if_needed() {
download_debian_10_if_needed
if [ ! -d ubuntu-installer ]
then
rm -f netboot.tar.gz
wget http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/netboot.tar.gz
tar -xzvf netboot.tar.gz
fi
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment