From 6dcf584b25a9548bc3bc681c31b3c56bfb7245bc Mon Sep 17 00:00:00 2001 From: Cam Cope Date: Wed, 11 May 2016 14:10:04 -0700 Subject: [PATCH 1/2] preserve xattrs --- scripts/lxc-template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lxc-template b/scripts/lxc-template index 50baf96..d51c923 100755 --- a/scripts/lxc-template +++ b/scripts/lxc-template @@ -124,7 +124,7 @@ mkdir -p /var/lock/subsys fi mkdir -p ${LXC_ROOTFS} - (cd ${LXC_ROOTFS} && tar xfz ${LXC_TARBALL} --strip-components=${LXC_STRIP_COMPONENTS}) + (cd ${LXC_ROOTFS} && tar xfz ${LXC_TARBALL} --strip-components=${LXC_STRIP_COMPONENTS} --xattrs --xattrs-include=*) if [ $? -ne 0 ]; then echo "Failed to extract rootfs" exit 1 From 9dd12bfcdfa593cd0e48e9fb84f2c7d7e8fad00a Mon Sep 17 00:00:00 2001 From: Cam Cope Date: Wed, 11 May 2016 16:53:31 -0700 Subject: [PATCH 2/2] update dependencies in the README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e8934ed..254a52e 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ to see it in action. * [Vagrant 1.5+](http://www.vagrantup.com/downloads.html) (tested with 1.7.2) * lxc 0.7.5+ +* tar 1.27 (the lxc-template script uses the --xattrs option) * `redir` (if you are planning to use port forwarding) * `brctl` (if you are planning to use private networks, on Ubuntu this means `apt-get install bridge-utils`) * A [kernel != 3.5.0-17.28](https://github.com/fgrehm/vagrant-lxc/wiki/Troubleshooting#wiki-im-unable-to-restart-containers)