From efc7b2e5a831c8b996e7dd39a2c4f3898872b883 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Tue, 25 Jul 2023 14:45:51 +0200 Subject: Fix resolv.conf in stretch stub-resolv.conf was introduced in systemd 236 (e6b2d948f8). Regression of c751e22. --- share/customize-resolved.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/customize-resolved.sh') 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" -- cgit v1.2.3