[lxc-devel] [PATCH] fix systemd unit file location to use prefix for local installs

Stéphane Graber stgraber at ubuntu.com
Mon Mar 3 18:15:19 UTC 2014


On Mon, Mar 03, 2014 at 12:59:42PM -0500, Dwight Engen wrote:
> also remove /usr special case for non-debian distros since systemd
> itself sets systemunitdir=$(rootprefix)/lib/systemd/system
> 
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  config/init/systemd/Makefile.am | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/config/init/systemd/Makefile.am b/config/init/systemd/Makefile.am
> index 6e2bb13..de5ee50 100644
> --- a/config/init/systemd/Makefile.am
> +++ b/config/init/systemd/Makefile.am
> @@ -3,11 +3,7 @@ EXTRA_DIST = \
>  	lxc.service
>  
>  if INIT_SCRIPT_SYSTEMD
> -if HAVE_DEBIAN
> -SYSTEMD_UNIT_DIR = /lib/systemd/system
> -else
> -SYSTEMD_UNIT_DIR = /usr/lib/systemd/system
> -endif
> +SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system
>  
>  install-systemd: lxc.service lxc-devsetup
>  	$(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
> -- 
> 1.8.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-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: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140303/a3e51fae/attachment.pgp>


More information about the lxc-devel mailing list