Re: nonstandard options missing from --dumplease in 6.10.1
Roy Marples
Thu Oct 19 15:36:06 2017
Hi Mike
On 18/10/2017 23:18, Mike McCabe wrote:
> Our organization maintains a large fleet of pxe-booted raspberry pis.
> We transmit some environment information to them via DHCP options.
> We're evaluating a switch from Raspbian Jessie (dhcpcd 6.7.1) to
> Stretch (dhcpcd 6.10.1).
>
> We use 'dhcpcd --dumplease eth0' to read the custom options, but they're
> missing from 6.10.1 output. Conf files are unchanged. 'od -a
> /var/lib/dhcpcd5/dhcpcd-eth0.lease' on the client shows text from the
> custom options (e.g. 'demo', below)
>
> /etc/dhcpcd.conf on client has:
> define 239 string vium-env
> option vium-env
>
> /etc/dhcp/dhcpd.conf on server has
> option vium-env code 239 = text;
> option vium-env "demo";
>
> ... and 6.7.1 shows
>
> vium-env='demo'
>
> ... but 6.10.1 does not.
>
> Is this a known issue?
>
> Any help appreciated!
I don't recall that ever being a reported issue.
Testing shows it works fine using your config.
# ./dhcpcd --version
dhcpcd 7.0.0-rc3
Copyright (c) 2006-2017 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH
# ./dhcpcd -U4 xennet0 | grep vium
vium-env=demo
netbsd$ ./dhcpcd --version
dhcpcd 6.10.1
Copyright (c) 2006-2016 Roy Marples
netbsd$ ./dhcpcd -U4 xennet0 | grep vium
dhcpcd: open: /var/log/dhcpcd.log: Permission denied
vium-env=demo
netbsd$
Roy
Archive administrator: postmaster@marples.name