From 0406f9ca021ff833bf4e6591871d683b4f04727c Mon Sep 17 00:00:00 2001 From: nl6720 Date: Tue, 27 Apr 2021 13:03:29 +0300 Subject: mkarchiso: create reproducible gzip archives Use the gzip option -n/--no-name to prevent saving the original file name and timestamp. Fixes #104. --- archiso/mkarchiso | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 410db80..939a7a3 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -413,10 +413,10 @@ _make_bootmode_bios.syslinux.mbr() { if [[ -e "${isofs_dir}/syslinux/hdt.c32" ]]; then install -d -m 0755 -- "${isofs_dir}/syslinux/hdt" if [[ -e "${airootfs_dir}/usr/share/hwdata/pci.ids" ]]; then - gzip -c -9 "${airootfs_dir}/usr/share/hwdata/pci.ids" > \ + gzip -cn9 "${airootfs_dir}/usr/share/hwdata/pci.ids" > \ "${isofs_dir}/syslinux/hdt/pciids.gz" fi - find "${airootfs_dir}/usr/lib/modules" -name 'modules.alias' -print -exec gzip -c -9 '{}' ';' -quit > \ + find "${airootfs_dir}/usr/lib/modules" -name 'modules.alias' -print -exec gzip -cn9 '{}' ';' -quit > \ "${isofs_dir}/syslinux/hdt/modalias.gz" fi -- cgit v1.2.3-70-g09d2