commit 05d82e0d05318962ea0c28e8c329d063bbd4407c
parent 8e7a779237a55bbedf4b28c0980ff0ca2464fc8a
Author: parazyd <parazyd@dyne.org>
Date: Mon, 16 Nov 2020 11:19:40 +0100
Append some extra flags to cpio calls.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/zlibs/bootstrap b/zlibs/bootstrap
@@ -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
}
@@ -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}
diff --git a/zlibs/imaging b/zlibs/imaging
@@ -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
}