summaryrefslogtreecommitdiff
path: root/share/customize-resolved.sh
diff options
context:
space:
mode:
authorHelmut Grohne <helmutg@debian.org>2023-07-25 18:29:02 +0000
committerHelmut Grohne <helmutg@debian.org>2023-07-25 18:29:02 +0000
commit7415c33e49c9887ee73edbb7b7684b7401dafba9 (patch)
tree041087beb376772c9e4169534203328509a951ec /share/customize-resolved.sh
parentbef9c51e23f9491c724d621025caa654bb498107 (diff)
parentefc7b2e5a831c8b996e7dd39a2c4f3898872b883 (diff)
downloaddebvm-7415c33e49c9887ee73edbb7b7684b7401dafba9.tar.gz
Merge branch 'fix_stretch' into 'main'
Fix resolv.conf in stretch See merge request helmutg/debvm!37
Diffstat (limited to 'share/customize-resolved.sh')
-rwxr-xr-xshare/customize-resolved.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/customize-resolved.sh b/share/customize-resolved.sh
index e8fe248..8885d18 100755
--- a/share/customize-resolved.sh
+++ b/share/customize-resolved.sh
@@ -18,7 +18,7 @@ if dpkg --compare-versions "$LIBNSS_RESOLVE_VERSION" lt 251.3-2~exp1; then
chroot "$TARGET" systemctl enable systemd-resolved.service
fi
- if test -z "$LIBNSS_RESOLVE_VERSION"; then
+ if test -z "$LIBNSS_RESOLVE_VERSION" || dpkg --compare-versions "$LIBNSS_RESOLVE_VERSION" lt 236; then
ln -fs ../run/systemd/resolve/resolv.conf "$TARGET/etc/resolv.conf"
else
ln -fs ../run/systemd/resolve/stub-resolv.conf "$TARGET/etc/resolv.conf"