mkdir -p ${prefix}/etc/lxcf
chmod 755 ${prefix}/etc/lxcf
install -o root -g root -m 644 conf/lxcf.conf ${prefix}/etc/lxcf/lxcf.conf
+ install -o root -g root -m 644 conf/lxcf.conf ${prefix}/usr/lib/lxcf/lxcf.conf
mkdir -p ${prefix}/usr/lib/systemd/system
install -o root -g root -m 600 conf/lxcf.service ${prefix}/usr/lib/systemd/system/lxcf.service
mkdir -p ${prefix}/etc/systemd/system/multi-user.target.wants
mkdir -p ${prefix}/etc/lxcf
chmod 755 ${prefix}/etc/lxcf
install -o root -g root -m 644 conf/lxcf.conf ${prefix}/etc/lxcf/lxcf.conf
+ install -o root -g root -m 644 conf/lxcf.conf ${prefix}/usr/lib/lxcf/lxcf.conf
mkdir -p ${prefix}/usr/lib/systemd/system
install -o root -g root -m 600 conf/lxcf.service ${prefix}/usr/lib/systemd/system/lxcf.service
mkdir -p ${prefix}/etc/systemd/system/multi-user.target.wants
chmod 755 /etc/lxcf
chmod 755 /etc/lxcf/rsc
+# check lxcf.conf
+if [ ! -e /etc/lxcf/lxcf.conf ] ; then
+ cp -p /usr/lib/lxcf/lxcf.conf /etc/lxcf/lxcf.conf
+fi
+
# cp files
cpfiles() {
chmod 755 /etc/lxcf
chmod 755 /etc/lxcf/rsc
+# check lxcf.conf
+if [ ! -e /etc/lxcf/lxcf.conf ] ; then
+ cp -p /usr/lib/lxcf/lxcf.conf /etc/lxcf/lxcf.conf
+fi
+
# erase one container
lxcf_erase1() {
LXCNAME=$1
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
+
+# check /opt/lxcf
+mkdir -p /opt/lxcf
+chmod 755 /opt/lxcf
+
+# check /etc/lxcf/rsc
+mkdir -p /etc/lxcf/rsc
+chmod 755 /etc/lxcf
+chmod 755 /etc/lxcf/rsc
+
+# check lxcf.conf
+if [ ! -e /etc/lxcf/lxcf.conf ] ; then
+ cp -p /usr/lib/lxcf/lxcf.conf /etc/lxcf/lxcf.conf
+fi
+
# check default separate mdoel
/usr/lib/lxcf/lxcf-config
if [ -e /etc/lxcf/separate ] ; then
fi
fi
-# check /opt/lxcf
-mkdir -p /opt/lxcf
-chmod 755 /opt/lxcf
-
-# check /etc/lxcf/rsc
-mkdir -p /etc/lxcf/rsc
-chmod 755 /etc/lxcf
-chmod 755 /etc/lxcf/rsc
-
# generate one container
lxcf_sysgen1() {
LXCNAME=${1}
/usr/lib/lxcf/sbin/suspend
/usr/lib/lxcf/sbin/suspend-n
/usr/lib/lxcf/sbin/list
+/usr/lib/lxcf/lxcf.conf
/etc/lxcf/lxcf.conf
/etc/libvirt/hooks/lxc
/etc/libvirt/hooks/qemu