* usage of fixed path in hotplug scripts
@ 2014-04-17 14:06 Olaf Hering
2014-04-22 8:33 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Olaf Hering @ 2014-04-17 14:06 UTC (permalink / raw)
To: Ian.Campbell, Ian.Jackson; +Cc: xen-devel
Ian,
is there a reason /etc/init.d/xencommons uses a hardcoded path to
/etc/xen/scripts/hotplugpath.sh, 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.
Olaf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: usage of fixed path in hotplug scripts
2014-04-17 14:06 usage of fixed path in hotplug scripts Olaf Hering
@ 2014-04-22 8:33 ` Ian Campbell
2014-04-22 11:37 ` Olaf Hering
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2014-04-22 8:33 UTC (permalink / raw)
To: Olaf Hering; +Cc: Ian.Jackson, xen-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: usage of fixed path in hotplug scripts
2014-04-22 8:33 ` Ian Campbell
@ 2014-04-22 11:37 ` Olaf Hering
0 siblings, 0 replies; 3+ messages in thread
From: Olaf Hering @ 2014-04-22 11:37 UTC (permalink / raw)
To: Ian Campbell; +Cc: Ian.Jackson, xen-devel
On Tue, Apr 22, Ian Campbell wrote:
> 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/")
There can be only one xen.rpm (from make rpmball) active at a time. So I
think its perfectly fine to have a fixed /var dir, without $PREFIX.
For /etc is more complex because some parts are system configuration
(udev), other parts are internal to xen (scripts), and runlevel scripts
can be started manually if needed. Adding $PREFIX to /etc feels wrong.
In any case, I will preserve existing defaults.
Olaf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-22 11:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17 14:06 usage of fixed path in hotplug scripts Olaf Hering
2014-04-22 8:33 ` Ian Campbell
2014-04-22 11:37 ` Olaf Hering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).