From 3e40dfbf11cf0970872ce5d0e49d38a515125e5c Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 17 Jan 2023 07:25:57 +0100 Subject: debvm-create: stop validating the suite The only DEBVER check left checks for jessie. We can just compare the name instead. Thus we no longer reject Ubuntu suites such as jammy. This helps with !20, but not yet with #10. --- bin/debvm-create | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'bin/debvm-create') diff --git a/bin/debvm-create b/bin/debvm-create index 8e6ecd5..cf92b7c 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -211,36 +211,6 @@ check_skip() { esac } -case "$SUITE" in - jessie) - DEBVER=8 - ;; - stretch) - DEBVER=9 - ;; - buster) - DEBVER=10 - ;; - bullseye|stable) - DEBVER=11 - ;; - bookworm|testing) - DEBVER=12 - ;; - trixie) - DEBVER=13 - ;; - forky) - DEBVER=14 - ;; - sid|unstable) - DEBVER=999 - ;; - *) - die "unrecognized Debian release: $SUITE" - ;; -esac - KERNEL_ARCH=$ARCHITECTURE case "$ARCHITECTURE" in armhf) @@ -313,7 +283,7 @@ if ! check_skip packagelists; then set -- "--customize-hook=$SHARE_DIR/customize-dpkgavailable.sh" "$@" fi -if test "$DEBVER" -le 8; then +if test "$SUITE" = jessie; then # Use obsolete and expired keys. set -- '--keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg' "$@" set -- --aptopt='Apt::Key::gpgvcommand "/usr/libexec/mmdebstrap/gpgvnoexpkeysig"' "$@" -- cgit v1.2.3