summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-13 07:43:46 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-13 07:43:46 +0100
commit8d13bcead097b2052ad300e594d1bfb9183d0164 (patch)
tree5066258661e7494df0f88dee2745553a79d6e9d6
parent52202bfc705e433a170e78529558556b0976ae71 (diff)
downloaddebvm-8d13bcead097b2052ad300e594d1bfb9183d0164.tar.gz
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.
-rwxr-xr-xbin/debvm-create4
1 files changed, 1 insertions, 3 deletions
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 $@: