This commit is contained in:
parent
15ca0301a6
commit
af51df7530
3 changed files with 6 additions and 4 deletions
|
@ -15,4 +15,5 @@
|
|||
|
||||
set -uex
|
||||
|
||||
exec unshare -nrm helpers/chroot-inner "$@"
|
||||
# exec unshare -nrm helpers/chroot-inner "$@"
|
||||
exec helpers/chroot-inner "$@"
|
||||
|
|
|
@ -36,7 +36,7 @@ rm -f "$DESTDIR/store/5-go-beyond-using-nix/ZilchOS-core.iso"
|
|||
# Inject ccache data, all stage5 ccache data we can find
|
||||
if [[ "${USE_CCACHE-}" = 1 ]]; then
|
||||
helpers/inject "$DESTDIR" pkgs/_2a0-ccache.pkg
|
||||
unshare -nr chroot "$DESTDIR" /store/_2a0-ccache/bin/ccache -z
|
||||
# unshare -nr chroot "$DESTDIR" /store/_2a0-ccache/bin/ccache -z
|
||||
if [[ -e tmp/ccache/5-go-beyond-using-nix.tar.zstd ]]; then
|
||||
tar -Izstd -xf tmp/ccache/5-go-beyond-using-nix.tar.zstd \
|
||||
-C "$DESTDIR/ccache"
|
||||
|
@ -74,7 +74,7 @@ tar -Izstd -cf "pkgs/custom-stage5.pkg" \
|
|||
|
||||
# Collect ccache back
|
||||
if [[ "${USE_CCACHE-}" = 1 ]]; then
|
||||
unshare -nr chroot "$DESTDIR" /store/_2a0-ccache/bin/ccache -sz
|
||||
# unshare -nr chroot "$DESTDIR" /store/_2a0-ccache/bin/ccache -sz
|
||||
tar -Izstd -cf "tmp/ccache/custom-stage5.tar.zstd" \
|
||||
-C "$DESTDIR/ccache" .
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue