[Lunar-commits] CVS: lunar-iso/scripts aaa_base,NONE,1.1
Auke Kok
sofar at lunar-linux.org
Tue Nov 30 10:32:56 UTC 2004
Update of /var/cvs/lunar/lunar-iso/scripts
In directory espresso.foo-projects.org:/tmp/cvs-serv7287
Added Files:
aaa_base
Log Message:
this script creates the base tarball with untracked files
--- NEW FILE: aaa_base ---
#!/bin/bash
umount $ISO_TARGET/proc
umount $ISO_TARGET/dev
. /etc/lunar/config
unset VERBOSE
optimize
echo "+ setting sane ccache limits"
rm -rf $ISO_TARGET/var/cache/ccache/*
chroot $ISO_TARGET ccache -C
chroot $ISO_TARGET ccache -M 256M
# store the list of stuff in /var/cache that needs to be resurrected:
echo "+ creating list of prepackaged modules"
> $ISO_TARGET/.packages
for mod in $(cat conf/base.list conf/extended.list) ; do
grep "^$mod:" $ISO_TARGET/var/state/lunar/packages >> $ISO_TARGET/.packages
done
# delete CVS dirs from templates
find $ISO_TARGET -type d -name "CVS" -exec rm -rf {} \;
echo "+ creating aaa_base.tar.bz2"
# gather present files
find $ISO_TARGET/{bin,boot,etc,home,lib,mnt,opt,root,sbin,srv,usr,var} | sort | uniq | sed "s:^$ISO_TARGET::g" | grep -v -e "^/var/cache/lunar/" -e "^/var/state/lunar/" -e "^/var/build/" -e "^/usr/share/doc" -e "^/usr/src/" -e "^/lib/modules/" -e "^/usr/include/" -e "^/usr/lib/perl" -e "^/var/lib/lunar" -e "^/etc/lunar" -e "^/var/spool" -e "^/var/log/" -e "^/var/tmp" -e "^/usr/share/" -e "^/var/lock/" -e "^/var/lib/" -e "^/var/run/" > $ISO_TARGET/.present
cat $ISO_TARGET/var/log/lunar/install/* | sort | uniq > $ISO_TARGET/.tracked
diff -Bad $ISO_TARGET/.present $ISO_TARGET/.tracked | grep -e "^< " | cut -c 3- > $ISO_TARGET/.aaa_base.list
# make the tarball
chroot $ISO_TARGET tar cjf /var/cache/lunar/aaa_base.tar.bz2 -T .aaa_base.list --no-recursion
ls -lh $ISO_TARGET/var/cache/lunar/aaa_base.tar.bz2
# clean up
rm $ISO_TARGET/.present $ISO_TARGET/.tracked $ISO_TARGET/.aaa_base.list
More information about the Lunar-commits
mailing list