summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Sprickerhof <git@jochen.sprickerhof.de>2023-07-25 14:45:51 +0200
committerJochen Sprickerhof <git@jochen.sprickerhof.de>2023-07-25 14:45:51 +0200
commitefc7b2e5a831c8b996e7dd39a2c4f3898872b883 (patch)
tree041087beb376772c9e4169534203328509a951ec
parentbef9c51e23f9491c724d621025caa654bb498107 (diff)
downloaddebvm-efc7b2e5a831c8b996e7dd39a2c4f3898872b883.tar.gz
Fix resolv.conf in stretch
stub-resolv.conf was introduced in systemd 236 (e6b2d948f8). Regression of c751e22.
-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"