From 90d327abbeb7e3284fff1aef19a92516d00d2adf Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 9 Apr 2024 12:58:45 +0000 Subject: [PATCH] Test for Debian 6.6 official kernel when not on x86_64 --- debian9-x86_64.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index 02c495d..7106c3a 100755 --- a/debian9-x86_64.sh +++ b/debian9-x86_64.sh @@ -439,6 +439,14 @@ elif [ "$KERNEL" = "6.6" ] && [ "$ARCH" = "amd64" ]; then sed -i "s@^\(GRUB_DEFAULT=\).*@\1\"0\"@" /etc/default/grub >/dev/null 2>&1 [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 } +elif [ "$KERNEL" = "6.6" ] && [ "$ID" = "debian" ]; then + echo 'deb http://deb.debian.org/debian bookworm-backports main' > /etc/apt/sources.list.d/bookworm-backports.list + apt-get update + apt-get -y install $(apt-cache search linux-image-amd64-6.6 | tail -n 1 | cut -d" " -f1) + [ -f /etc/default/grub ] && { + sed -i "s@^\(GRUB_DEFAULT=\).*@\1\"0\"@" /etc/default/grub >/dev/null 2>&1 + [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 + } else if [ "$ID" = "ubuntu" ] && [ -z "$(uname -a | grep '6.1')" ]; then apt-get -y install $(apt-cache search linux-image-unsigned-6.1.0 | tail -n 1 | cut -d" " -f1)