Commit 96cbe629 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Commit current changes for Ubuntu 22

parent e364b062
......@@ -48,3 +48,13 @@ then
tar -xzvf netboot.tar.gz
fi
}
download_ubuntu_22_if_needed() {
download_debian_10_if_needed
if [ ! -d ubuntu-installer ]
then
rm -f netboot.tar.gz
wget https://releases.ubuntu.com/22.04.4/ubuntu-22.04.4-live-server-amd64.iso
mkdir ubuntu-installer
mount -o loop ubuntu-22.04.4-live-server-amd64.iso ubuntu-installer
fi
}
......@@ -6,7 +6,7 @@ cd $SCRIPT_DIR
. $SCRIPT_DIR/../download_boot_systems.sh
download_debian_11_if_needed
download_ubuntu_20_if_needed
download_ubuntu_22_if_needed
#download_sysrescuecd_if_needed
#UPDATE THOSE VARIABLES DEPENDING ON YOUR SITE
......@@ -70,8 +70,8 @@ menuentry 'Debian Installer (manual install) ttyS1,115200 (for Aowanda)' {
initrd /debian-installer/amd64/initrd.gz
}
menuentry 'Ubuntu Installer (manual install) ttyS0,57600' {
linux /ubuntu-installer/amd64/linux vga=788 language=C country=FR keymap=fr domain= --- mitigations=off console=ttyS0,57600
initrd /ubuntu-installer/amd64/initrd.gz
linux /ubuntu-installer/casper/vmlinuz ip=dhcp url=http://\$pxe_default_server:8000/ubuntu-22.04.4-live-server-amd64.iso vga=788 language=C country=FR keymap=fr domain= --- mitigations=off console=ttyS0,57600
initrd /ubuntu-installer/casper/initrd
}
menuentry 'SystemRescueCd' {
linux /sysresccd/sysresccd/boot/x86_64/vmlinuz archisobasedir=sysresccd archiso_http_srv=http://\$pxe_default_server:69/sysresccd/ checksum ip=dhcp console=ttyS1,57600
......@@ -107,6 +107,8 @@ iface ens9 inet dhcp
EOF
done
python3 -m http.server &
# create authorized_keys if it doesn't exist
[ -f authorized_keys ] || ln -s ../authorized_keys
exec dnsmasq -d --port=0 --log-dhcp \
......@@ -144,3 +146,9 @@ exec dnsmasq -d --port=0 --log-dhcp \
--dhcp-host=00:22:4d:da:8a:72,192.168.46.130,1h \
--dhcp-host=00:22:4d:dd:64:45,192.168.46.131,1h \
--dhcp-host=00:22:4d:dd:64:44,192.168.46.132,1h \
--dhcp-host=4c:38:d5:1d:da:ed,192.168.46.133,1h \
--dhcp-host=4c:38:d5:1d:da:ec,192.168.46.134,1h \
--dhcp-host=4c:38:d5:1e:ef:f1,192.168.46.135,1h \
--dhcp-host=4c:38:d5:1e:ef:f0,192.168.46.136,1h \
--dhcp-host=4c:38:d5:1d:ac:59,192.168.46.137,1h \
--dhcp-host=4c:38:d5:1d:ac:5a,192.168.46.138,1h \
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