summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-17 07:25:57 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-17 07:25:57 +0100
commit3e40dfbf11cf0970872ce5d0e49d38a515125e5c (patch)
tree8425eaa6ded7f17f65795775a8579959028d2b87
parent52cf84dd056e77dd7f0b148f454c5dac4a115dae (diff)
downloaddebvm-3e40dfbf11cf0970872ce5d0e49d38a515125e5c.tar.gz
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.
-rwxr-xr-xbin/debvm-create32
1 files changed, 1 insertions, 31 deletions
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"' "$@"