Hi Laurent,

On Thu, Apr 17, 2025 at 03:24:33PM +0200, Laurent Bigonville wrote:
> Would be a good idea to move the dhcpcd-run-hooks and the dhcpcd-hooks
> directory

So we're talking about these:

    /usr/lib/dhcpcd/dhcpcd-hooks/01-test
    /usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
    /usr/lib/dhcpcd/dhcpcd-hooks/30-hostname

> [move] to /usr/libexec

To what end?

Consider that people outside of Debian could be installing their own hooks
here which might cause breakage. Why risk it with change if we're not
trying to achive anything?

In any case since these aren't executable files they should clearly live in
/usr/share. Let the FHS bikeshedding begin ;-).

Honestly though. These seem similar to systemd's /usr/lib/systemd tree
which has files with a similar purpose.

Looking more closesly at dhcpcd-base I'm actually confused. In addtion to
/usr/lib/dhcpcd/dhcpcd-hooks/ there's also eg.  /usr/share/dhcpcd/hooks/
wich has more numbered scripts:

    /usr/share/dhcpcd/hooks/10-wpa_supplicant
    /usr/share/dhcpcd/hooks/15-timezone
    /usr/share/dhcpcd/hooks/29-lookup-hostname

What's the difference?

--Daniel

Attachment: signature.asc
Description: PGP signature

Reply via email to