[lxc-devel] [PATCH] make install should create /var/cache/lxc directory
Stéphane Graber
stgraber at ubuntu.com
Wed Dec 5 20:24:41 UTC 2012
On 12/05/2012 03:05 PM, Dwight Engen wrote:
> On Thu, 29 Nov 2012 16:37:21 -0500
> Stéphane Graber <stgraber at ubuntu.com> wrote:
>
>> On 11/29/2012 04:24 PM, Dwight Engen wrote:
>>> The $LXCPATH (default /var/lib/lxc) directory was not being created
>>> by make install, so unless it gets created by some other means
>>> (packaging tools), commands such as lxc-create will fail.
>>>
>>> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
>>
>> Is the same already done for /var/cache/lxc or is that also missing?
>
> Hi Stéphane, looks like you applied the first patch before I got around
> to sending v2 which also created the cache dir, so here is
> creating /var/cache/lxc split out.
>
> -->8
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
Thanks. Applied to staging.
> ---
> Makefile.am | 1 +
> lxc.spec.in | 1 +
> 2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 863f8fd..7b32326 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -11,6 +11,7 @@ pcdata_DATA = lxc.pc
>
> install-data-local:
> $(MKDIR_P) $(DESTDIR)$(LXCPATH)
> + $(MKDIR_P) $(DESTDIR)$(localstatedir)/cache/lxc
>
> ChangeLog::
> @touch ChangeLog
> diff --git a/lxc.spec.in b/lxc.spec.in
> index bc69d68..094c34d 100644
> --- a/lxc.spec.in
> +++ b/lxc.spec.in
> @@ -98,6 +98,7 @@ rm -rf %{buildroot}
> %{_libdir}/*.so.*
> %{_libdir}/%{name}
> @LXCPATH@
> +%{_localstatedir}/cache/lxc
> %attr(4555,root,root) %{_libexecdir}/%{name}/lxc-init
>
> %files devel
>
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20121205/32deb3e4/attachment.pgp>
More information about the lxc-devel
mailing list