Re: $skip_hooks empty for some $reason values
Roy Marples
Sun May 24 15:54:02 2020
On 21/05/2020 17:00, Scott Leggett wrote:
On 2020-05-20.22:09, Roy Marples wrote:
No, it's not intentional.
What version do you see this with?
This is with dhcpcd-9.0.2-60-gdad38acf, built without privsep, running
under systemd on Linux.
On Linux running my master branch b6f2649b67 with privsep disabled:
$ cat /etc/dhcpcd.enter-hook
echo "reason: $reason"
echo "skip_hooks $skip_hooks"
# ./dhcpcd -dB
dhcpcd-9.0.2 starting
udev: starting
dev: loaded udev
DUID 00:01:00:01:26:4d:67:88:fa:73:78:00:00:11
lo: ignoring due to interface type and no config
eth0: executing `/libexec/dhcpcd-run-hooks' PREINIT
reason: PREINIT
skip_hooks resolv.conf
eth0: executing `/libexec/dhcpcd-run-hooks' CARRIER
reason: CARRIER
skip_hooks resolv.conf
eth0: IAID 78:00:00:11
eth0: delaying IPv6 router solicitation for 0.3 seconds
eth0: delaying IPv4 for 0.8 seconds
eth0: soliciting an IPv6 router
eth0: sending Router Solicitation
eth0: Router Advertisement from fe80::1
eth0: adding address fd73:7808:1015:0:b0c9:e2a3:93c6:ace2/64
eth0: pltime 1200 seconds, vltime 1800 seconds
eth0: sending NA for fd73:7808:1015:0:b0c9:e2a3:93c6:ace2/64
eth0: adding route to 2001:470:690c:1::/64
eth0: adding route to fd73:7808:1015::/64
eth0: executing `/libexec/dhcpcd-run-hooks' ROUTERADVERT
reason: ROUTERADVERT
skip_hooks resolv.conf
eth0: reading lease `/var/db/dhcpcd/eth0.lease6'
eth0: confirming prior DHCPv6 lease
eth0: delaying CONFIRM6 (xid 0xf65a59), next in 1.1 seconds
eth0: reading lease `/var/db/dhcpcd/eth0.lease'
eth0: rebinding lease of 10.73.1.71
eth0: ARP announcing 10.73.1.71 (1 of 2), next in 2.0 seconds
eth0: sending REQUEST (xid 0xba551078), next in 3.5 seconds
eth0: acknowledged 10.73.1.71 from 10.73.0.1
eth0: leased 10.73.1.71 for 3600 seconds
eth0: renew in 1800 seconds, rebind in 3150 seconds
eth0: writing lease `/var/db/dhcpcd/eth0.lease'
eth0: adding IP address 10.73.1.71/16 broadcast 10.73.255.255
eth0: adding route to 10.73.0.0/16
eth0: adding default route via 10.73.0.1
eth0: ARP announcing 10.73.1.71 (1 of 2), next in 2.0 seconds
eth0: executing `/libexec/dhcpcd-run-hooks' REBOOT
reason: REBOOT
skip_hooks resolv.conf
eth0: bound, ignoring 10.73.1.71 from 10.73.0.1
^Creceived SIGINT, stopping
eth0: removing interface
eth0: executing `/libexec/dhcpcd-run-hooks' STOPPED
reason: STOPPED
skip_hooks resolv.conf
dev: unloaded udev
dhcpcd exited
Can you try my master branch please?
I don't recall fixing anything here though.
Roy
Archive administrator: postmaster@marples.name