tAppend some extra flags to cpio calls. - libdevuansdk - common library for devuan's simple distro kits (HTM) git clone https://git.parazyd.org/libdevuansdk (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit 05d82e0d05318962ea0c28e8c329d063bbd4407c (DIR) parent 8e7a779237a55bbedf4b28c0980ff0ca2464fc8a (HTM) Author: parazyd <parazyd@dyne.org> Date: Mon, 16 Nov 2020 11:19:40 +0100 Append some extra flags to cpio calls. Diffstat: M zlibs/bootstrap | 4 ++-- M zlibs/imaging | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- (DIR) diff --git a/zlibs/bootstrap b/zlibs/bootstrap t@@ -213,7 +213,7 @@ bootstrap_cpio_pack() -not -path "./dev/*" \ -a -not -path "./proc/*" \ -a -not -path "./sys/*" \ - | sudo cpio -o --format=newc \ + | sudo cpio -oa --reproducible --format=newc \ | gzip - > "$_bootstrap_cpio" || { zerr; return 1; } popd } t@@ -231,7 +231,7 @@ bootstrap_cpio_unpack() sudo rm -rf "${strapdir}"/* pushd "$strapdir" || { zerr; return 1; } - zcat "$_bootstrap_cpio" | sudo cpio -id || { zerr; return 1; } + zcat "$_bootstrap_cpio" | sudo cpio -idmn --format=newc || { zerr; return 1; } popd sudo mkdir -p "$strapdir"/{boot,dev,proc,sys} (DIR) diff --git a/zlibs/imaging b/zlibs/imaging t@@ -38,7 +38,7 @@ strapdir_to_image() -not -path "./dev/*" \ -a -not -path "./proc/*" \ -a -not -path "./sys/*" \ - | sudo cpio -p "$workdir/mnt" || { zerr; return 1; } + | sudo cpio -adm -p "$workdir/mnt" || { zerr; return 1; } popd }