Skip to content

Commit

Permalink
[export] Sort files by names in tar archive (g5k bug 12240)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonglezb authored and npf committed Oct 8, 2020
1 parent 2816d14 commit 91431d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions steps/data/helpers/export_appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def tar_convert(disk, output, excludes, compression_level):
# raise subprocess.CalledProcessError(proc.returncode, cmd)

tar_options_str = ' '.join(tar_options + ['--exclude="%s"' % s for s in excludes])
# Necessary to have quick access to /etc (bug 12240) and also good for reproducibility
tar_options_str += ' --sort=name'
directory = dir_path = os.path.dirname(os.path.realpath(disk))
cmds = [
which("mkdir") + " %s/.mnt" % directory,
Expand Down

0 comments on commit 91431d5

Please sign in to comment.