diff options
author | Jochen Sprickerhof <git@jochen.sprickerhof.de> | 2023-07-25 14:45:51 +0200 |
---|---|---|
committer | Jochen Sprickerhof <git@jochen.sprickerhof.de> | 2023-07-25 14:45:51 +0200 |
commit | efc7b2e5a831c8b996e7dd39a2c4f3898872b883 (patch) | |
tree | 041087beb376772c9e4169534203328509a951ec | |
parent | bef9c51e23f9491c724d621025caa654bb498107 (diff) | |
download | debvm-efc7b2e5a831c8b996e7dd39a2c4f3898872b883.tar.gz |
Fix resolv.conf in stretch
stub-resolv.conf was introduced in systemd 236 (e6b2d948f8).
Regression of c751e22.
-rwxr-xr-x | share/customize-resolved.sh | 2 |
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" |