[oe] [PATCH] dhcp: Correct leases directory location
zlo at zlo.nu
Wed Mar 31 15:02:19 UTC 2010
On Wed, Mar 31, 2010 at 07:01:29AM -0700, Steve Sakoman wrote:
> On Wed, 2010-03-31 at 14:29 +0100, Martyn Welch wrote:
> > The DHCP client currently expects to be able to create a leases file in
> > "/var/lib/dhcp" as configured in dhcp3.inc. Recipe is currently creating a
> > directory called "/var/lib/dhcp3", resulting in the following error:
> > can't create /var/lib/dhcp/dhclient.eth0.leases
> > Correct directory naming to resolve error.
> > Signed-off-by: Martyn Welch <martyn.welch at ge.com>
> > ---
> > Steve: This seems to be directy reversing a change you made. The commit
> > message doesn't give me any idea of why you did it, can you remember?
> Interesting. I made the change because I was getting quite similar
> errors, but for files being created in /var/lib/dhcp3!
> I'm not sure what is different about our overall set ups, but perhaps
> the proper fix is to create both directories.
Hmm, note that recipes/dhcp/files/init-server uses /var/lib/dhcp as well.
dhclient from 3.1.2p1 uses /var/lib/dhcp by default. Maybe one of the
older versions used /var/lib/dhcp3 by default...
I did not spot this myself because dhclient is run from network-manager
on our system, which passes it command line arguments on where to put
the lease file.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: Digital signature
More information about the Openembedded-devel