summaryrefslogtreecommitdiff
path: root/share/customize-resolved.sh
AgeCommit message (Collapse)Author
2025-05-06debvm-create: fix network during mmdebstrap for old releasesHelmut Grohne
We primarily run the systemd network stack inside debvm and that comes with turning /etc/resolv.conf into a symbolic link. Unfortunately, we may break networking during VM construction that way. The behavior is quite release dependent. For trixie and later, systemd-resolved.postinst takes a copy of /etc/resolv.conf and places it at the symlink target. For bookworm, systemd-resolved.postinst overwrites /etc/resolv.conf with a link that becomes dead. For bullseye and earlier, customize-resolved.conf overwrites /etc/resolv.conf with a link that becomes dead. That being dead means that passing any further customize hooks will not be able to utilize networking as DNS resolution fails. To improve the user experience, customize-resolved.sh will now turn ensure that those symlink targets are reasonably popoulated.
2023-07-25Fix resolv.conf in stretchJochen Sprickerhof
stub-resolv.conf was introduced in systemd 236 (e6b2d948f8). Regression of c751e22.
2023-01-11debvm-create: move functionality into support filesHelmut Grohne
The benefit of this change is that we don't have to escape that much. As a consequence, it becomes easier to put more code into the customization hooks, which have access to installed package versions. Thus we can reduce the use of DEBVER and thus improve working with snapshot.d.o.