File lxc-1.1.2-centos.patch of Package lxc
diff -Ndur lxc-1.1.2/templates/lxc-centos.in lxc-1.1.2-centos/templates/lxc-centos.in
--- lxc-1.1.2/templates/lxc-centos.in 2015-04-10 22:14:41.000000000 +0300
+++ lxc-1.1.2-centos/templates/lxc-centos.in 2015-08-12 02:17:58.788791987 +0300
@@ -608,10 +608,11 @@
rm -f $config_path/config.def
- if [ -e "@LXCTEMPLATECONFIG@/centos.common.conf" ]; then
+ [ "$release" = "7" ] && COMMON_CONF=fedora || COMMON_CONF=centos
+ if [ -e "@LXCTEMPLATECONFIG@/$COMMON_CONF.common.conf" ]; then
echo "
# Include common configuration
-lxc.include = @LXCTEMPLATECONFIG@/centos.common.conf
+lxc.include = @LXCTEMPLATECONFIG@/$COMMON_CONF.common.conf
" >> $config_path/config
fi