From 8d13bcead097b2052ad300e594d1bfb9183d0164 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 13 Jan 2023 07:43:46 +0100 Subject: debvm-create: defer the decision of installing libnss-resolve to apt Rather than check the DEBVER, let apt figure out whether it knows about a package called libnss-resolve and install it when available. --- bin/debvm-create | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/debvm-create') diff --git a/bin/debvm-create b/bin/debvm-create index 981b450..d4a291b 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -254,9 +254,7 @@ if test -n "$SSHKEY"; then fi # add a DNS resolver -if test "$DEBVER" -ge 9; then - INCLUDE_PACKAGES="$INCLUDE_PACKAGES,libnss-resolve" -fi +INCLUDE_PACKAGES="$INCLUDE_PACKAGES,?exact-name(libnss-resolve)" set -- "--customize-hook=$SHARE_DIR/customize-resolved.sh" "$@" # construct mmdebstrap options as $@: -- cgit v1.2.3