From: Ian Campbell Subject: Re: usage of fixed path in hotplug scripts Date: Tue, 22 Apr 2014 09:33:37 +0100 Message-ID: <1398155617.31707.6.camel@kazak.uk.xensource.com> References: <20140417140614.GA27737@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140417140614.GA27737@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-17 at 16:06 +0200, Olaf Hering wrote: > is there a reason /etc/init.d/xencommons uses a hardcoded path to > /etc/xen/scripts/hotplugpath.sh, I don't think so, just historical inertia I expect. > while that file actually contains all > the variable paths? Should make install do some sort of > > sed "s^@XEN_SCRIPT_DIR@$XEN_SCRIPT_DIR@" \ > tools/hotplug/Linux/init.d/xencommons \ > > $DESTDIR$(XENCOMMONS_INITD)/xencommons > > (or whatever the correct syntax would be) > > My point is that some parts of the paths can be configured, but these > paths are not used. Instead hardcoded paths are used. I think it would be fine to fix this up, so long as the defaults don't change (iirc autoconf has weird ideas about /var aka $localstatedir, see 9f7b256146dc "tools: revert to using /var and /etc/") Ian.