Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222261 - net-misc/dhcp should create /var/lib/dhclient/
Summary: net-misc/dhcp should create /var/lib/dhclient/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-15 13:57 UTC by Martin Meyer
Modified: 2009-07-09 14:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Meyer 2008-05-15 13:57:40 UTC
I've got tons of errors in my messages log that look like this:

May 15 01:59:53 viktor dhclient: can't create /var/lib/dhclient/dhclient-wlan0.leases: No such file or directory

The solution seems simple: have the ebuild create that directory (/var/lib/dhclient/). The init script specifies that file as the lease file (the -lf argument), so the containing directory should probably be created before we start the process.
Comment 1 Maxim Loginov 2008-07-05 16:57:36 UTC
I confirm this bug and workaround
Comment 2 Balazs Nemeth 2009-02-05 12:30:34 UTC
I can confirm it too. 
Comment 3 Balazs Nemeth 2009-02-05 12:34:48 UTC
(In reply to comment #2)
> I can confirm it too. 
> 

On my 32bit machine this directory was missing, and I got the error messages. But on my 64bit machine the directory is still missing, and I haven't got any error message nor dhclient-eth0.leases file.

Both machine has net-misc/dhcp-3.1.1 installed, network is controlled by NM-0.7.
Comment 4 Sergey Kishchenko 2009-03-01 12:18:26 UTC
I confirm this bug and a workaround. I wasn't able to obtain an IP address via DHCP(wi-fi connection) because of this bug. But I was able to get an IP address before, so I can't understand, why it has been broken. Something strange also happened(in example, /etc/cond.d/local.start was not loaded correctly), so, maybe this bug is more complicated than I think.
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2009-07-09 14:42:03 UTC
+*dhcp-4.1.0 (09 Jul 2009)
+*dhcp-3.1.2 (09 Jul 2009)
+
+  09 Jul 2009; <chainsaw@gentoo.org> +dhcp-3.1.2.ebuild, +dhcp-4.1.0.ebuild,
+  +files/dhcp-4.1-dhclient-metric.patch, +files/dhcp-4.1-no_isc_blurb.patch,
+  +files/dhcpd.init2:
+  Version bump to 3.1.2 & 4.1.0 upstream releases, as requested in bug
+  #264809. Create /var/lib/dhclient as per bug #222261. Recursive chown to
+  dhcp:dhcp closes bug #236671. Test config in init-script, apache-style by
+  Arturas from Lithuania in bug #259364. Paranoia/chroot support now
+  upstream in 4.1, dropped patch.

Your bug report to Gentoo Linux is highly appreciated. I'm sorry it sat in the tracker unactioned for quite so long, it was not assigned to the maintainer.