]> git.plutz.net Git - blast/blobdiff - Makefile
suppress kernel messages spamming console
[blast] / Makefile
index cd430aad1648283c4c31e8d2ceb5d3370bef7443..91e66a5e07a52005c05db6c6bfd593f777587361 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ space_:= ${nul_} ${nul_}
 .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
@@ -32,17 +32,26 @@ else
   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
@@ -180,7 +189,8 @@ ifdef modules
   include $(addsuffix .mk, $(addprefix modules/, $(subst ${comma_},${space_},${modules})))
 endif
 
-ifeq "${ARCH}" "amd64"
+ifeq "$(findstring linux-image, ${PACKAGES})" "linux-image"
+else ifeq "${ARCH}" "amd64"
   PACKAGES += linux-image-amd64
 else ifeq "${ARCH}" "i386"
   PACKAGES += linux-image-686
@@ -359,7 +369,7 @@ _grub_efi64: ${CFGROOT}
        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
 
@@ -382,8 +392,8 @@ _bootloader_iso: ${CFGROOT} ${ISOROOT}
        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" ] && \