From: Ian Kelling Date: Wed, 27 Apr 2022 02:40:43 +0000 (-0400) Subject: update to cac5ce16b940ecde652c040dcbb911c6da692a54 dec 30 2021 X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=94a151efd665eb0214c2c85604b81377fb346de8;p=automated-distro-installer update to cac5ce16b940ecde652c040dcbb911c6da692a54 dec 30 2021 --- diff --git a/fai/config/class/85-efi-classes b/fai/config/class/85-efi-classes index d61db7e..711b534 100755 --- a/fai/config/class/85-efi-classes +++ b/fai/config/class/85-efi-classes @@ -2,7 +2,7 @@ # define classes for disk_config in an EFI enironment -if [ ! -d /sys/firmware/efi ]; then +if [ ! -d /sys/firmware/efi ] || ifclass GRUB_PC; then exit 0 fi diff --git a/fai/config/class/FAIBASE.var b/fai/config/class/FAIBASE.var index 3112039..72d38f2 100644 --- a/fai/config/class/FAIBASE.var +++ b/fai/config/class/FAIBASE.var @@ -20,3 +20,6 @@ MAXPACKAGES=800 # a user account will be created username=demo USERPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1' + +# set a default +FAI_DEBOOTSTRAP="bullseye http://deb.debian.org/debian" diff --git a/fai/config/scripts/LAST/50-misc b/fai/config/scripts/LAST/50-misc index a573f50..2a7271b 100755 --- a/fai/config/scripts/LAST/50-misc +++ b/fai/config/scripts/LAST/50-misc @@ -90,7 +90,7 @@ deb $security_cdn/debian-security ${secsuite} main contrib non-free #deb [trusted=yes] http://fai-project.org/download $release koeln EOF # if the package fai-server was installed, enable the project's repository - if [ -f $target/var/lib/dpkg/info/fai-server.list ]; then + if dpkg-query --admindir=$target/var/lib/dpkg -W fai-server >/dev/null 2>&1; then sed -i -e '/fai-project.org/s/^#//' $target/etc/apt/sources.list fi fi