X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2FDEBIAN.var;h=492d9950ab2fd4be399e9c302fdaec84fadbf8be;hb=refs%2Fheads%2Fupstream;hp=e9a275695156be45497decce5d88854dca64b1e2;hpb=f8e7e925a0eba5b0091354ccf26842bcfda9b84e;p=automated-distro-installer diff --git a/fai/config/class/DEBIAN.var b/fai/config/class/DEBIAN.var index e9a2756..492d995 100644 --- a/fai/config/class/DEBIAN.var +++ b/fai/config/class/DEBIAN.var @@ -1,7 +1,14 @@ -release=buster +release=bookworm apt_cdn=http://deb.debian.org security_cdn=http://security.debian.org +# since bullseye Debian changed the suite name for security +if [ $release = buster ]; then + secsuite=buster/updates +else + secsuite=$release-security +fi + CONSOLEFONT= KEYMAP=us-latin1 @@ -17,3 +24,24 @@ MODULESLIST="usbhid psmouse" # if you want to use the faiserver as APT proxy #APTPROXY=http://faiserver:3142 + + +# The linux-image package has different names for Debian and Ubuntu +if ifclass UBUNTU; then + kernelname=linux-image-generic +elif ifclass I386; then + kernelname=linux-image-686-pae +elif ifclass AMD64; then + kernelname=linux-image-amd64 +fi + +if [ -z "kernelname" ]; then + _arch=$(dpkg --print-architecture 2>/dev/null) + case $_arch in + i386) + kernelname=linux-image-686-pae ;; + *) + kernelname=linux-image-$_arch + esac + unset _arch +fi