TARGET_DEB = $(MASTERFILE)_$(VERSION)_all.deb
-all: iso masterfile
+all: fix_bookworm iso masterfile
iso: $(TARGET_ISO)
echo $(ISOVER) > master/etc/trc6500_os_version
make -C $(MASTERFILE)
+fix_bookworm: simple-cdd/tmp/mirror/dists/bookworm/main/dep11/Components-amd64.yml.gz
+ for key in A7236886F3CCCAAD148A27F80E98404D386FA1D9 4D64FEC119C2029067D6E791F8D2585B8783D481 4CB50190207B4758A3F73A796ED0E7B82643E131 ED541312A33F1128F10B1C6C54404762BBB6E853 B0CAB9266E8C3929798B3EEEBDE6D2B9216EC7A8; do gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys $$key; done
+
+simple-cdd/tmp/mirror/dists/bookworm/main/dep11/Components-amd64.yml.gz:
+ wget ftp://ftp.fr.debian.org/debian/dists/bookworm/main/dep11/`basename $@`
+ mkdir -p `dirname $@`
+ mv `basename $@` $@
+
clean:
rm -f $(TARGET_DEB) $(TARGET_ISO)
# Weconfig configure options
-# Should webconfig be enabled?
-#ENABLED=1
+# ALIASES: filename containing form declaration
+#ALIASES="-a /etc/webconfig/alias.csv"
+ALIASES=
-# ALIAS: filename containing form declaration
-#ALIAS=/etc/webconfig/alias.csv
+# ALIASRC: directory containing form declaration
+ALIASRC="-r /etc/webconfig/alias.d"
+
+# CERT: filename containing ssl certificat
+# CERT="-c /etc/webconfig/cert.pem"
+CERT=
+
+# CA: filename containing ssl certificat authority
+# CA="-k /etc/ssl/certs/ca.pem"
+CA=
# PORT: server port
-PORT=8080
+PORT="-p 8080"
-# RESOURCE: directory containing alias files
-#RESOURCE=/etc/webconfig/alias.d
+ARGS=$ALIASES $ALIASRC $CERT $CA $PORT
# GRUB configuration
-grub grub-pc/install_devices multiselect /dev/sda
+d-i grub-installer/bootdev string default
+d-i grub-installer/only_debian boolean true
# unlike what the internet would tell you, sending this command to d-i doesn't work
+grub grub-pc/install_devices multiselect /dev/sda
# iptables configuration
-
iptables-persistent iptables-persistent/autosave_v6 boolean false
iptables-persistent iptables-persistent/autosave_v4 boolean false
+# Scan for additionnal device
+d-i apt-setup/cdrom/set-first boolean false
+
# APT configuration
d-i apt-setup/use_mirror boolean false
popularity-contest popularity-contest/participate boolean false
debian_mirror="ftp://ftp.fr.debian.org/debian/"
profiles_udeb_dist="bookworm"
mirror_component="main non-free-firmware"
+export NONFREE=1
#mirror_tools="wget"
# default for mirror_tools is "wget reprepro". However, if we use reprepro, build-simple-cdd doesn't read the local_packages option, because it assumes reprepro has already built those into the mirror. But we're not building the mirror here, so we never actually get them. If we disable reprepro, it will actually look into local_packages.
# Note that all this was because we were using the previously-built mirror in ./tmp instead of being connected to a repository like we'd normally do. If you don't do that just delete those things.