commit 60f168677b163cfbbab1e8c0f97c5a8eafdef0fe
parent 453b5f0da9a9834197758774b9aa1039d3fb398f
Author: parazyd <parazyd@dyne.org>
Date: Tue, 11 Oct 2016 23:04:36 +0200
gain about 30M on bootstrap pack
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/zlibs/bootstrap b/zlibs/bootstrap
@@ -133,12 +133,13 @@ bootstrap_tar_pack() {
req=(bootstrap_tgz)
ckreq || return 1
- for i in $custmodules; do sed -i -e 's/$i//' $strapdir/etc/modules; done
+ for i in $custmodules;do sudo sed -i -e 's/$i//' $strapdir/etc/modules;done
cat <<EOF | sudo tee ${strapdir}/prepack
#!/bin/sh
apt-get --yes --force-yes purge ${extra_packages}
apt-get --yes --force-yes autoremove
+apt-get clean
EOF
sudo chmod +x $strapdir/prepack || zerr