update to cac5ce16b940ecde652c040dcbb911c6da692a54 dec 30 2021
authorIan Kelling <iank@fsf.org>
Wed, 27 Apr 2022 02:40:43 +0000 (22:40 -0400)
committerIan Kelling <iank@fsf.org>
Wed, 27 Apr 2022 02:40:43 +0000 (22:40 -0400)
fai/config/class/85-efi-classes
fai/config/class/FAIBASE.var
fai/config/scripts/LAST/50-misc

index d61db7e88b29077dc59f2ad5598ae57813c493c4..711b53479e623da3355248ee4580a898a569be6c 100755 (executable)
@@ -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
 
index 31120399bc94cb7a4c92e596bf5ca1b7825973c8..72d38f2006aa34f388621e6880c2ba051aad06b3 100644 (file)
@@ -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"
index a573f5081e7a95dcf74472725342ff269676f65e..2a7271b777041292a96527f85bab611d92125612 100755 (executable)
@@ -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