.PHONY: _squash_modules _squash _isosquash _iso_image
ARCH := amd64
-BOOTSTRAP := http://cdn.debian.net/debian
+BOOTSTRAP := http://deb.debian.org/debian
PACKAGES := ${PACKAGES} apt busybox-static debian-archive-keyring init systemd
# Partition Table (2M) + Boot Partition (126M)+ Root Partition + Slack Space (1M) = 2048M
include ${config}
endif
-ifdef release
- KEYRING := keys/debian-archive-${release}-stable.gpg
-else
- release := stretch
- KEYRING := keys/debian-archive-stretch-stable.gpg
+ifndef release
+ release := bullseye
endif
+KEYRING := keys/debian-archive-${release}-stable.gpg
+KEYRING := keys/debian-archive-${release}-automatic.gpg
+# KEYRING := keys/debian-archive-${release}-security-automatic.gpg
+
ifndef SOURCES
-define SOURCES :=
-deb http://cdn.debian.net/debian ${release} main
-endef
+ ifneq "$(filter stretch jessie buster, ${release})" ""
+ define SOURCES :=
+ deb http://deb.debian.org/debian ${release} main
+ deb https://deb.debian.org/debian-security/ ${release}/updates main
+ endef
+ else
+ define SOURCES :=
+ deb http://deb.debian.org/debian ${release} main
+ deb https://deb.debian.org/debian-security/ ${release}-security main
+ endef
+ endif
endif
ifdef disk
grub-mkimage -p / -O x86_64-efi fat part_gpt normal linux all_video >"$${CFGROOT}/boot/EFI/BOOT/BOOTX64.EFI"
${CFGROOT}/boot/cmdline.txt: ${CFGROOT}
- printf 'root=/dev/mmcblk0p2 rootfstype=${fstype} fsck.repair=yes rootwait' >"$@"
+ printf 'root=/dev/mmcblk0p2 rootfstype=${fstype} fsck.repair=yes rootwait net.ifnames=0' >"$@"
_bootloader_raspi: ${CFGROOT} ${CFGROOT}/boot/cmdline.txt
cp -L "$${CFGROOT}/vmlinuz" "$${CFGROOT}/initrd.img" "$${ISOROOT}"
printf '%s\n' "insmod all_video" "set gfxmode=auto" "load_video" "insmod gfxterm" \
>"$${ISOROOT}/boot/grub/grub.cfg"
- printf '%s\n' "set timeout=10" "default=buster" \
- "menuentry 'Debian Buster' --id 'buster' {" \
+ printf '%s\n' "set timeout=10" "default=${release}" \
+ "menuentry 'Debian ${release}' --id '${release}' {" \
"linux '/vmlinuz' boot=live" "initrd '/initrd.img'" "}" \
>>"$${ISOROOT}/boot/grub/grub.cfg"
-[ -f "$${ISOROOT}/install/initrd.gz" -a -f "$${ISOROOT}/install/linux" ] && \