From 050d1831e11fbe15cdbd7817b9b66f42ed7430af Mon Sep 17 00:00:00 2001 From: Brian C. Lane Date: Feb 26 2015 16:33:34 +0000 Subject: Extract xattrs from tar payload (#1195462) sagarun@gmail.com tracked down the fact that tar actually can extract the xattrs used by SELinux from a tarfile. --- 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 @@ class LiveImageKSPayload(LiveImagePayload): 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()]