From 2ac75356f2a267ffd7bec1429ac8e7b3bb5185fd Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 12 Apr 2012 00:06:12 +0200 Subject: [PATCH] add lxc_template.xml to packaging --- lxc-sliceimage.spec | 2 ++ lxc_template.xml | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 lxc_template.xml diff --git a/lxc-sliceimage.spec b/lxc-sliceimage.spec index 10e5aa4..3c0a0c6 100644 --- a/lxc-sliceimage.spec +++ b/lxc-sliceimage.spec @@ -33,6 +33,7 @@ rm -rf $RPM_BUILD_ROOT install -D -m 755 initscripts/lxc-sliceimage ${RPM_BUILD_ROOT}/%{_initrddir}/lxc-sliceimage install -D -m 644 cron.d/lxc-sliceimage $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/lxc-sliceimage install -D -m 644 logrotate/lxc-sliceimage $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/lxc-sliceimage +install -C -m 644 lxc_template.xml $RPM_BUILD_ROOT/vservers/.lvref/lxc_template.xml %clean rm -rf $RPM_BUILD_ROOT @@ -41,6 +42,7 @@ rm -rf $RPM_BUILD_ROOT %{_initrddir}/lxc-sliceimage %{_sysconfdir}/cron.d/lxc-sliceimage %{_sysconfdir}/logrotate.d/lxc-sliceimage +/vservers/.lvref %post chkconfig --add lxc-sliceimage diff --git a/lxc_template.xml b/lxc_template.xml new file mode 100644 index 0000000..66ff206 --- /dev/null +++ b/lxc_template.xml @@ -0,0 +1,25 @@ + + $name + 32768 + + exe + /sbin/init + + 1 + + destroy + restart + destroy + + /usr/libexec/libvirt_lxc + + + + + + + + + + + -- 2.43.0