[PATCH 1/1] Extract xattrs from tar payload (#1195462)

bcl installerbot-noreply at redhat.com
Thu Feb 26 00:49:24 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

sagarun at 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/f91a00805bfe0c186858cc58c4e8188901d6a0a6


More information about the anaconda-patches mailing list