From 6dcf584b25a9548bc3bc681c31b3c56bfb7245bc Mon Sep 17 00:00:00 2001 From: Cam Cope Date: Wed, 11 May 2016 14:10:04 -0700 Subject: [PATCH] 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