lxc: patches: remove unsupported option
authorPetar Koretic <petar.koretic@sartura.hr>
Wed, 22 Oct 2014 09:00:45 +0000 (11:00 +0200)
committerLuka Perkov <luka.perkov@sartura.hr>
Thu, 23 Oct 2014 08:07:10 +0000 (04:07 -0400)
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
utils/lxc/patches/201-remove-unsupported-option.patch [new file with mode: 0644]

diff --git a/utils/lxc/patches/201-remove-unsupported-option.patch b/utils/lxc/patches/201-remove-unsupported-option.patch
new file mode 100644 (file)
index 0000000..f70d49d
--- /dev/null
@@ -0,0 +1,19 @@
+--- a/templates/lxc-download.in
++++ b/templates/lxc-download.in
+@@ -479,15 +479,7 @@ fi
+ # Unpack the rootfs
+ echo "Unpacking the rootfs"
+-EXCLUDES=""
+-excludelist=$(relevant_file excludes)
+-if [ -f "${excludelist}" ]; then
+-    while read line; do
+-        EXCLUDES="$EXCLUDES --exclude=$line"
+-    done < $excludelist
+-fi
+-
+-tar  --anchored ${EXCLUDES} --numeric-owner -xpJf \
++tar --numeric-owner -xpJf \
+     ${LXC_CACHE_PATH}/rootfs.tar.xz -C ${LXC_ROOTFS}
+ mkdir -p ${LXC_ROOTFS}/dev/pts/