FS#28032 - [dhclient]: can't create /var/lib/dhclient/dhclient-...-wlan0.lease: No such file or directory
Attached to Project:
Arch Linux
Opened by Andreas Krüger (kardech) - Saturday, 21 January 2012, 16:56 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 04 November 2012, 02:00 GMT
Opened by Andreas Krüger (kardech) - Saturday, 21 January 2012, 16:56 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 04 November 2012, 02:00 GMT
|
Details
Description:
I kept seeing these in /var/log/everything.log, upon connecting to a network: Jan 16 21:14:34 localhost dhclient: Internet Systems Consortium DHCP Client 4.2.3-P1 Jan 16 21:14:34 localhost dhclient: Copyright 2004-2011 Internet Systems Consortium. Jan 16 21:14:34 localhost dhclient: All rights reserved. Jan 16 21:14:34 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/ Jan 16 21:14:34 localhost dhclient: Jan 16 21:14:34 localhost dhclient: can't create /var/lib/dhclient/dhclient-00fb385d-ed15-42bc-9ead-34897c52815a-wlan0.lease: No such file or directory Indeed, directory /var/lib/dhclient did not exist. I created it, and the "can't create" message did not reappear. There should be no need to create that directory manually, the installation of the dhclient package should do that. As of dhclient-4.2.3.2-2, the installation does not create that directory. Regards, and thank you for providing fine software, Andreas |
This task depends upon
Closed by Eric Belanger (Snowman)
Sunday, 04 November 2012, 02:00 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in dhclient 4.2.4.2-1
Sunday, 04 November 2012, 02:00 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in dhclient 4.2.4.2-1
I guess the lease files should go to /var/lib/
@ise: The PKGBUILD doesnt say why, it just *choose* to use /var/state.
Why can't /var/lib be used?
The configure script uses eg. $LOCALSTATEDIR/db/dhclient6.leases by default.
This is from fedora's spec file:
" --with-srv-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd.leases \
--with-srv6-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd6.leases \
--with-cli-lease-file=%{_localstatedir}/lib/dhclient/dhclient.leases \
--with-cli6-lease-file=%{_localstatedir}/lib/dhclient/dhclient6.leases \
--with-srv-pid-file=%{_localstatedir}/run/dhcpd.pid \
--with-srv6-pid-file=%{_localstatedir}/run/dhcpd6.pid \
--with-cli-pid-file=%{_localstatedir}/run/dhclient.pid \
--with-cli6-pid-file=%{_localstatedir}/run/dhclient6.pid \
--with-relay-pid-file=%{_localstatedir}/run/dhcrelay.pid \
--with-ldap \
--with-ldapcrypto \
--with-libbind=%{_includedir} --with-libbind-libs=%{_libdir} \
--disable-static \"
http://pkgs.fedoraproject.org/cgit/dhcp.git/tree/dhcp.spec