From 98dccc7cfbf56178ee76151a20cda59dfb6dad19 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Sat, 7 Dec 2024 14:32:26 -0600 Subject: bootstrap: update mcmtools for newer QEMU. Remove unnecessary files from the preimage rootfs. Currently this improves { 850 --> 300 } MB tarball size. --- bootstrap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 \ . \ -- cgit v1.2.3-70-g09d2