X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=Makefile;h=eb822cd416bc1121e54494fed08a98bbb5e20fab;hb=14d297bd587064f94b787abc48c2185f17292f2f;hp=cd430aad1648283c4c31e8d2ceb5d3370bef7443;hpb=885091ac4326fa344c3831532daf01a0c6a4eeb8;p=blast diff --git a/Makefile b/Makefile index cd430aa..eb822cd 100644 --- a/Makefile +++ b/Makefile @@ -32,16 +32,18 @@ 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 +deb http://security.debian.org/ ${release}/updates main endef endif @@ -180,7 +182,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 @@ -382,8 +385,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" ] && \