On 23/06/2023 19.50, Martin-Éric Racine wrote:
Is /etc/dhcpc the correct path or should it be /etc/dhcpcd instead?

That's a really ancient location used by the 3.x version.

Shouldn't we instead try to move that resolv.conf instead of deleting it?

That was only a symlink to some location in /var, nothing to be preserved. And I only delete it if it is a symlink (to any target).


From the old .postinst:

...
# /etc/dhcpc/resolv.conf is now a link to /var/lib/dhcpcd/resolv.conf
rm -f /etc/dhcpc/resolv.conf
ln -s /var/lib/dhcpcd/resolv.conf /etc/dhcpc/resolv.conf
...


Andreas

PS: there are some obsolete conffiles still lingering around, but dpkg-maintscript-helper rm_conffile does not seem to work reliably when switching between arch:all and arch:any, so maybe I'll revisit that later.

Reply via email to