livemedia-creator: Add --no-recursion to mktar (#1144140)

tar recurses into directories by default, but find is feeding it all the
files and directories so the tar it produces is considerably larger than
it needs to be due to duplicate files. Add --no-recursion flag so that
tar will only add the specific files and directories piped to it by find.

Related: rhbz#1144140
(cherry picked from commit a8681aca4e)
This commit is contained in:
Brian C. Lane 2014-08-27 16:49:47 -07:00
parent 7e66ceb9b6
commit 018c9911a1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def mkcpio(rootdir, outfile, compression="xz", compressargs=None):
def mktar(rootdir, outfile, compression="xz", compressargs=None):
compressargs = compressargs or ["-9"]
return compress(["tar", "--selinux", "--acls", "--xattrs", "-cf-", "--null", "-T-"],
return compress(["tar", "--no-recursion", "--selinux", "--acls", "--xattrs", "-cf-", "--null", "-T-"],
rootdir, outfile, compression, compressargs)
def mksquashfs(rootdir, outfile, compression="default", compressargs=None):