Hi,
On Thursday 01 March 2007 15:12:34 Juergen Fiedler wrote:
> > I'll sort out my working copy modifications and post the diff here.
> >
> > The good news is that you do not need to rebuild the whole build, as this
> > filtering code is just in the code path squashing the resulting FS image.
> > So you just would need to re-run the Build-Target which would not rebuild
> > anything but resquash the image to get the smaller CD.
>
> I'm looking forward to that. I'm planning to add a bunch of packages
> to 'my' version of the CD once I really figure out what I'm doing, so
> staying within the size limit of a business card CD will probably not
> work out well, but keeping the size down is always nice.
>
> Thanks,
> --j
>
> (With just one more question for now - but that one might be better
> off in yet another new thread...)
So, back with the changes. It toook a bit longer because I accidently run
an "svn revert" in the wrong dir but luckly had the changse from an
"svn diff" run in the terminal scroll back. Just that I had to sort the cut'n
paste recovery :-)
Here are the only parts that are not yet commited, do not apply to trunk
anymore and need a cleaner implementation. The bottom part just
wiping some files and copies some tiny versions over can be trivially
be pushed into trunk by defining a new post image hook. The filtering
is a bit more tricky to get pretty:
Index: build_image.sh
===================================================================
--- build_image.sh (revision 22679)
+++ build_image.sh (working copy)
@@ -23,11 +23,17 @@
echo "Creating root file-system file lists ..."
-pkg_skip=" ccache distcc "
+# completely skip
+pkg_skip=" ccache distcc binutils bison flex m4 autoconf automake libtool
groff make cmake scons grep sed perl python pkgconfig grub expat
perl-xml-parser perl-xml-simple perl-uri intltool "
+pkg_libs=" gcc libtiff libpng libungif libxml libxslt libjpeg " # imlib2 evas
+
for pkg in `grep '^X ' $base/config/$config/packages | cut -d ' ' -f 5`; do
# include the package?
- if [ "${pkg_skip/ $pkg /}" == "$pkg_skip" ] ; then
- cut -d ' ' -f 2 $build_root/var/adm/flists/$pkg || true
+ if [ "${pkg_libs/ $pkg /}" != "$pkg_libs" ]; then
+ echo $pkg just libs 1>&2
+ cut -d ' ' -f 2- $build_root/var/adm/flists/$pkg | grep -E
'/lib[^/]*/lib'
+ elif [ "${pkg_skip/ $pkg /}" == "$pkg_skip" ]; then
+ cut -d ' ' -f 2- $build_root/var/adm/flists/$pkg || true
fi
done | (
# quick and dirty filter
@@ -46,7 +52,27 @@
echo "TOOLCHAIN
proc/*
dev/*
-*/share/doc/*
+# for testing
+*.a
+*.la
+*.o
+*/include/
+*/man/
+*/info/
+*/doc/
+*/aclocal*/
+*/autoconf*/
+*/automake*/
+*/pkgconfig/
+*/gtk-doc/
+/gtk-demo
+*/gtk-2.0/demo
+*/games/
+*.gch*
+*.pc
+lib*/python2.5*/test/
+# all for now
+var/adm
var/adm/olist
var/adm/logs
var/adm/dep-debug
@@ -65,10 +91,27 @@
for initrd in $isofsdir/boot/initrd*; do
zcat $initrd | cpio -i --list | grep '.ko$' |
while read f; do
+ echo "Removing duplicate: $f"
rm -f ./$f > /dev/null
done
done
+# move space efficents tools over
+mv -f usr/embutils/{sed,chvt} bin/
+mv -f usr/bin/ugrep bin/grep ; rm usr/bin/uegrep ; ln -sf grep bin/egrep
+
+# remove some stray "junk"
+rm -rf etc/{SDE-CONFIG,inittab,initscript,init.d,rc.d,issue.ansi}
+rm -rf bin/{compile_et,dlist_test,mk_cmds,ncurses*-config}
+rm -rf sbin/{init.d}
+rm -rf boot/System* boot/grub/*
+rm -rf usr/src
+rm -rf usr/bin/{curl-config,diet,libusb-config,lua-config}
+ln -sf dbclient usr/bin/ssh
+rm -rf usr/sbin/{update-pciids}
+rm -rf opt/e17/bin/imlib* opt/e17/share/imlib2
+sed -i '/^#/d ; s/#.*// ; /1024/d' etc/services
+
echo "Overlaying root file-system with target defined files ..."
copy_and_parse_from_source $base/target/share/livecd/rootfs $imagelocation
copy_and_parse_from_source $base/target/$target/rootfs $imagelocation
Yours,
--
René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
http://exactcode.de | http://t2-project.org | http://rene.rebe.name
+49 (0)30 / 255 897 45
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of: unsubscribe t2