X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2FDEBIAN.var;h=18b49b5022af6bea3fd5497983106163dd744b76;hb=edb1a99660561c51aa5c7803d978284c7b423842;hp=dc133a5c5329278ae34de4c2519964e6414af475;hpb=490334746631a6c956eee47947f3ab8f8a451666;p=automated-distro-installer diff --git a/fai/config/class/DEBIAN.var b/fai/config/class/DEBIAN.var index dc133a5..18b49b5 100644 --- a/fai/config/class/DEBIAN.var +++ b/fai/config/class/DEBIAN.var @@ -1,6 +1,7 @@ -release=bullseye -apt_cdn=http://deb.debian.org -security_cdn=http://security.debian.org +# ian, commented, sources are set with fcopy +# 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 @@ -20,7 +21,29 @@ MODULESLIST="usbhid psmouse" # if you have enough RAM (>2GB) you may want to enable this line. It # also puts /var/cache into a ramdisk. -#FAI_RAMDISKS="$target/var/lib/dpkg $target/var/cache" +# ian: uncommented +FAI_RAMDISKS="$target/var/lib/dpkg $target/var/cache" # 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