summaryrefslogtreecommitdiff
path: root/utils/lxc
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-11-17 16:31:53 +0100
committerLuka Perkov <luka@openwrt.org>2014-11-17 21:48:36 +0100
commitdfd4daf6333089e81cbbb6a49a169c8d93bee67d (patch)
tree1994d68925d424aca9591142ed208e2fdc0a0529 /utils/lxc
parente2994cfd93d96b14393470352adaa907357a5a92 (diff)
lxc: correctly install configuration files
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'utils/lxc')
-rw-r--r--utils/lxc/Makefile5
-rw-r--r--utils/lxc/files/lxc.conf1
-rw-r--r--utils/lxc/patches/100-lxc-defconfig.patch5
3 files changed, 6 insertions, 5 deletions
diff --git a/utils/lxc/Makefile b/utils/lxc/Makefile
index 0156c94f3..3adfd5de9 100644
--- a/utils/lxc/Makefile
+++ b/utils/lxc/Makefile
@@ -165,6 +165,11 @@ define Package/lxc-common/install
$(INSTALL_DIR) $(1)/etc/lxc/
$(CP) \
$(PKG_INSTALL_DIR)/etc/lxc/default.conf \
+ $(1)/etc/lxc/default.conf
+
+ $(INSTALL_DIR) $(1)/etc/lxc/
+ $(CP) \
+ ./files/lxc.conf \
$(1)/etc/lxc/lxc.conf
$(INSTALL_DIR) $(1)/lxc/
diff --git a/utils/lxc/files/lxc.conf b/utils/lxc/files/lxc.conf
new file mode 100644
index 000000000..3b77baa91
--- /dev/null
+++ b/utils/lxc/files/lxc.conf
@@ -0,0 +1 @@
+lxc.lxcpath = /lxc
diff --git a/utils/lxc/patches/100-lxc-defconfig.patch b/utils/lxc/patches/100-lxc-defconfig.patch
deleted file mode 100644
index 60a0f9260..000000000
--- a/utils/lxc/patches/100-lxc-defconfig.patch
+++ /dev/null
@@ -1,5 +0,0 @@
---- a/config/etc/default.conf.unknown
-+++ b/config/etc/default.conf.unknown
-@@ -1 +1,2 @@
-+lxc.lxcpath = /lxc
- lxc.network.type = empty