Remove nested quotes from TAROPTS
Per the bug report, these seem to be causing issues with maintaining file capabilities. They aren't necessary so let's just remove them. Change-Id: I06c90fdc85655986142b936cadbe04d75dd27427 Closes-Bug: 1714604
This commit is contained in:
parent
39d84d2059
commit
72d0d22cdf
@ -96,7 +96,7 @@ function extract_image() {
|
|||||||
if [ 0 == `sudo chroot $WORKING/mnt bin/tar --help | grep -c xattrs-exclude` ]; then
|
if [ 0 == `sudo chroot $WORKING/mnt bin/tar --help | grep -c xattrs-exclude` ]; then
|
||||||
TAROPTS="--no-xattrs"
|
TAROPTS="--no-xattrs"
|
||||||
else
|
else
|
||||||
TAROPTS="--xattrs --xattrs-include='*' --xattrs-exclude='security.selinux'"
|
TAROPTS="--xattrs --xattrs-include=* --xattrs-exclude=security.selinux"
|
||||||
fi
|
fi
|
||||||
# Chroot in so that we get the correct uid/gid
|
# Chroot in so that we get the correct uid/gid
|
||||||
sudo chroot $WORKING/mnt bin/tar $TAROPTS -cz . > $WORKING/tmp.tar
|
sudo chroot $WORKING/mnt bin/tar $TAROPTS -cz . > $WORKING/tmp.tar
|
||||||
|
Loading…
Reference in New Issue
Block a user