From: "Brian C. Lane" <bcl(a)redhat.com>
sagarun(a)gmail.com tracked down the fact that tar actually can extract
the xattrs used by SELinux from a tarfile.
---
pyanaconda/packaging/livepayload.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/packaging/livepayload.py b/pyanaconda/packaging/livepayload.py
index ed3f073..0868c26 100644
--- a/pyanaconda/packaging/livepayload.py
+++ b/pyanaconda/packaging/livepayload.py
@@ -468,7 +468,7 @@ def install(self):
cmd = "tar"
# preserve: ACL's, xattrs, and SELinux context
- args = ["--selinux", "--acls", "--xattrs",
+ args = ["--selinux", "--acls", "--xattrs",
"--xattrs-include", "*",
"--exclude", "/dev/", "--exclude",
"/proc/",
"--exclude", "/sys/", "--exclude",
"/run/", "--exclude", "/boot/*rescue*",
"--exclude", "/etc/machine-id", "-xaf",
self.image_path, "-C", iutil.getSysroot()]
--
To view this commit on github, visit
https://github.com/rhinstaller/anaconda/commit/f91a00805bfe0c186858cc58c4...