Skip to content

Commit

Permalink
Merge pull request rhinstaller#3138 from rvykydal/fix-tar-payload-ext…
Browse files Browse the repository at this point in the history
…ract-excludes

Fix exclude arguments of tar payload extracting.
  • Loading branch information
rvykydal authored Feb 4, 2021
2 parents 118776d + dfd387c commit 7791820
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def run(self):
cmd = "tar"
# preserve: ACL's, xattrs, and SELinux context
args = ["--numeric-owner", "--selinux", "--acls", "--xattrs", "--xattrs-include", "*",
"--exclude", "dev/*", "--exclude", "proc/*", "--exclude", "tmp/*",
"--exclude", "sys/*", "--exclude", "run/*", "--exclude", "boot/*rescue*",
"--exclude", "boot/loader", "--exclude", "boot/efi/loader",
"--exclude", "etc/machine-id", "-xaf", self._tarfile_path, "-C", self._dest_path]
"--exclude", "./dev/*", "--exclude", "./proc/*", "--exclude", "./tmp/*",
"--exclude", "./sys/*", "--exclude", "./run/*", "--exclude", "./boot/*rescue*",
"--exclude", "./boot/loader", "--exclude", "./boot/efi/loader",
"--exclude", "./etc/machine-id", "-xaf", self._tarfile_path, "-C", self._dest_path]
try:
rc = execWithRedirect(cmd, args)
except (OSError, RuntimeError) as e:
Expand Down
8 changes: 4 additions & 4 deletions pyanaconda/payload/live/payload_liveimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ def install(self):
cmd = "tar"
# preserve: ACL's, xattrs, and SELinux context
args = ["--numeric-owner", "--selinux", "--acls", "--xattrs", "--xattrs-include", "*",
"--exclude", "dev/*", "--exclude", "proc/*", "--exclude", "tmp/*",
"--exclude", "sys/*", "--exclude", "run/*", "--exclude", "boot/*rescue*",
"--exclude", "boot/loader", "--exclude", "boot/efi/loader",
"--exclude", "etc/machine-id", "-xaf", self.image_path, "-C", conf.target.system_root]
"--exclude", "./dev/*", "--exclude", "./proc/*", "--exclude", "./tmp/*",
"--exclude", "./sys/*", "--exclude", "./run/*", "--exclude", "./boot/*rescue*",
"--exclude", "./boot/loader", "--exclude", "./boot/efi/loader",
"--exclude", "./etc/machine-id", "-xaf", self.image_path, "-C", conf.target.system_root]
try:
rc = util.execWithRedirect(cmd, args)
except (OSError, RuntimeError) as e:
Expand Down

0 comments on commit 7791820

Please sign in to comment.