Hey, should we change dhcp and dhclient to use /var/lib instead of /var/state? AFAICT it's the only package using the /var/state directory. Context below.
---------- Forwarded message ---------- From: Daniel Isenmann <[email protected]> Date: Thu, Nov 1, 2012 at 10:01 PM Subject: Re: Fwd: NetworkManager starts dhclient with a bad path to lease file To: Jan Steffens <[email protected]> Hi, some time ago this was reported as bug and I changed dhclient to use /var/state/ directory. Personally I don't care where the file is located. Feel free to change it in the dhclient package. At the moment I have no time because I moved to a new appartment. Cheers, Daniel On Thu, 2012-11-01 at 17:35 +0100, Jan Steffens wrote: > I just got this email. I wonder why dhcp/dhclient is using /var/state > instead of /var/lib. It's the only package on my system to do so. > > Should this be fixed in dhcp or NM? > > ---------- Forwarded message ---------- > From: Stephen Drodge <[email protected]> > Date: Thu, Nov 1, 2012 at 3:05 AM > Subject: NetworkManager starts dhclient with a bad path to lease file > To: "Jan Alexander Steffens (heftig)" <[email protected]>, Jan de > Groot <[email protected]> > > > When NetworkManager starts dhclient it passes a command line argument > "-lf /var/lib/dhclient/dhclient*-*.lease" which tells dhclient to > place a lease file in /var/lib/dhclient. This directory does not exist > on my system (or indeed in the dhclient package). Lease files should > be placed instead in /var/state/dhclient. I have attached a trivial > patch to fix this. > > This is the first time I've submitted a patch, so please let me know > if I've gone about this the wrong way or if you want me to reformat > anything. I can also submit a patch to the abs package if you desire. > > I can also send this patch upstream if you think that it's appropriate > (I have found old bug reports of the same nature in launchpad so Arch > may not be the only distribution that suffers from this) > > Stephen Drodge

