summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-12-07 14:32:26 -0600
committerZach van Rijn <me@zv.io>2024-12-07 14:32:27 -0600
commit98dccc7cfbf56178ee76151a20cda59dfb6dad19 (patch)
treeffce4b2f5f5a82cefa847fcee8ffdee2950ad628
parent7db4fe46698f346549e43231c70e5e2098374c01 (diff)
downloadbootstrap-98dccc7cfbf56178ee76151a20cda59dfb6dad19.tar.gz
bootstrap-98dccc7cfbf56178ee76151a20cda59dfb6dad19.tar.bz2
bootstrap-98dccc7cfbf56178ee76151a20cda59dfb6dad19.tar.xz
bootstrap-98dccc7cfbf56178ee76151a20cda59dfb6dad19.zip
bootstrap: update mcmtools for newer QEMU.
Remove unnecessary files from the preimage rootfs. Currently this improves { 850 --> 300 } MB tarball size.
-rwxr-xr-xbootstrap9
1 files changed, 8 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 6a000ba..ad14dc8 100755
--- a/bootstrap
+++ b/bootstrap
@@ -410,7 +410,7 @@ if ! test -d "${MTOOLS}"/sys/emus/bin; then # FIXME: no hard code
test -d bootstrap \
|| git clone ${CHAINS}/bootstrap.git;
cd bootstrap;
- git checkout 1b2f37f939ed56278fcc2fc09d3bb2934a32443c;
+ git checkout 4a1313497953f31a9ecfd3a2f82b24e92b845789;
## seed rootfs
#
@@ -738,6 +738,13 @@ ${MTOOLS}/sys/emus/bin/proot \
#
cd "${BASE}";
if ! test -f rootfs-${TARGET}.tgz; then
+
+ find mcmtools-${TARGET}/sys \
+ -mindepth 1 -maxdepth 1 -type f -name '._*' -delete \
+ ;
+
+ rm -fr mcmtools-${TARGET}/sys/tc;
+
tar -C mcmtools-${TARGET}/sys \
-pczf rootfs-${TARGET}.tgz \
. \