From caaea6d202ea17fc99ddd7cc2c440919b224bcf0 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 9 Nov 2025 19:56:28 +0100 Subject: [PATCH] Add ubuntu 24 to 26 --- ubuntu-24.04/ubuntu-up.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ubuntu-24.04/ubuntu-up.sh diff --git a/ubuntu-24.04/ubuntu-up.sh b/ubuntu-24.04/ubuntu-up.sh new file mode 100644 index 0000000..7ec19a0 --- /dev/null +++ b/ubuntu-24.04/ubuntu-up.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +declare -r FREEMEM=$(free |grep Mem: | awk '{print $4}') + +if [ "${FREEMEM}" -lt 130000 ]; then + echo "Not enough free ram, exiting" + exit 1 +fi + + + + +sed -i 's/noble/resolute/' /etc/apt/sources.list +sed -i 's/noble/resolute/' /etc/apt/sources.list.d/* +# Check other sources if needed + + +# Can resolve dpkg issue : +# echo "" > /var/lib/dpkg/available +# sh -c 'for i in /var/lib/apt/lists/*_Packages; do dpkg --merge-avail "$i"; done' + +apt update +apt dist-upgrade -y +apt autoclean -y +apt autopurge -y + +#if [ -d /sys/firmware/efi ]; then +# if [ -d /etc/pve ]; then +# apt install -y systemd-boot +# fi +#fi + + +echo "" +hostname +read -n 1 -s -r -p "Press any key to reboot" +reboot