preserve xattrs

This commit is contained in:
Cam Cope 2016-05-11 14:10:04 -07:00
parent 544c061e65
commit 6dcf584b25

View file

@ -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