summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@reproducible-builds.org>2021-01-01 03:38:21 +0000
committerVagrant Cascadian <vagrant@debian.org>2021-01-03 02:14:57 -0800
commitf4cefcd9267b1ade387acc265277ff36e9b0f3cc (patch)
tree7de1e95401cc664f8b44dfd5e068e1e16696a805
parent1c345a066121a8fa8cbff0466a55b99ead77b75c (diff)
gfxboot: pass --reproducible and --owner to cpio. (Closes: #978946)
Apply fixes for reproducibilty, similar to: https://github.com/openSUSE/gfxboot/pull/35 See also: https://bugs.debian.org/978946 https://tests.reproducible-builds.org/debian/issues/unstable/users_and_groups_in_cpio_archive_issue.html
-rwxr-xr-xgfxboot4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfxboot b/gfxboot
index c809762..75cdba3 100755
--- a/gfxboot
+++ b/gfxboot
@@ -2616,7 +2616,7 @@ sub pack_archive
}
if(@pack_list) {
- open $f, "| ( cd $dir ; cpio --quiet -o ) >$file/$archive";
+ open $f, "| ( cd $dir ; cpio --quiet --reproducible --owner=+0:+0 -o ) >$file/$archive";
print $f join("\n", @pack_list);
close $f;
}
@@ -2625,7 +2625,7 @@ sub pack_archive
else {
$file = $gfxboot_tmp->file;
- $i = system "cd $dir ; find . | cpio --quiet -o >$file 2>/dev/null";
+ $i = system "cd $dir ; find . | cpio --quiet --reproducible --owner=+0:+0 -o >$file 2>/dev/null";
die "$file: failed to create archive\n" if $i;
}