[arch-dev-public] Fwd: NetworkManager starts dhclient with a bad path to lease file
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 <daniel.isenmann@gmx.de> 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 <jan.steffens@gmail.com> 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 <stephen.drodge@gmail.com> 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)" <jan.steffens@gmail.com>, Jan de Groot <jgc@archlinxu.org>
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
On Thu, Nov 1, 2012 at 10:27 PM, Jan Steffens <jan.steffens@gmail.com> wrote:
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.
Seems reasonable to me. /var/state is not a standard dir afaik, and /var/lib should contain "variable state information" according to FHS (which I shamelessly cite exactly when it supports my view). -t
participants (2)
-
Jan Steffens
-
Tom Gundersen