dhcpcd-discuss

Re: dhcpcd 9.1.4 - Error dhcp_writefile: /var/db/dhcpcd/eth0.lease: No such file or directory

Roy Marples

Tue Aug 04 14:35:58 2020

Hi Stefano

On 04/08/2020 14:08, Stefano Cappa wrote:
After many experiments I found only an issue with dhcpcd 9.1.4.
If your OS doesn't have the /var/db folder, dhcpcd cannot create its folder and it throws an error (see logs below). The result is that it doesn't assign an ipv6 address to the interface and probably other issues.

I fixed this creating /var/db manually, but I saw that you removed from the makefile the command to create this path with this commit https://github.com/rsmarples/dhcpcd/commit/5f275b7bd1ed4d1f830b7a60ba253a98f7ef6127. In my embedded device, in case of a minimalistic production build, /var/db doesn't exist by default.

Should I create this folder while building my OS or is it better that dhcpcd will check the existence of /var/db before trying to create the dhcpcd folder and eventually creating also /var/db path?

I've reverted that change (although github is hanging, will push there later).
https://roy.marples.name/cgit/dhcpcd.git/commit/?id=bb7d64877674bd90b84c18364436d26351805a7e

We no longer have the database directory inside the chroot - the chroot now remains empty.

Roy

References:
dhcpcd 9.1.4 - Error dhcp_writefile: /var/db/dhcpcd/eth0.lease: No such file or directoryStefano Cappa
Archive administrator: postmaster@marples.name