dhcpcd-discuss

Re: $skip_hooks empty for some $reason values

Roy Marples

Wed May 20 22:09:45 2020

Hi Scott

Sorry for the late reply

On 15/05/2020 16:42, Scott Leggett wrote:
Hi,

I've been debugging why my /etc/resolv.conf is overwritten by dhcpcd
even though I've set a global "nohook resolv.conf" option in my
dhcpcd.conf file.

After adding some debug code to the dhcpcd-run-hooks script I've found
that it is invoked for some $reason values with an empty $skip_hooks
variable.

Specifically, on these $reason values $skip_hooks is empty:

* STOPPED
* PREINIT
* NOCARRIER

Is this intentional? If so I guess the 20-resolve.conf hook needs a
patch to avoid updating /etc/resolv.conf on those $reason values?

No, it's not intentional.

What version do you see this with?

Roy

Follow-Ups:
Re: $skip_hooks empty for some $reason valuesScott Leggett
References:
$skip_hooks empty for some $reason valuesScott Leggett
Archive administrator: postmaster@marples.name