# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.152 2005/01/24 23:03:05 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.153 2005/01/25 22:54:00 wolf31o2 Exp $
+
+ 25 Jan 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/stage1/stage1-preclean2-chroot.sh:
+ Added code to clean up /var/db/pkg, while still keeping the CONTENTS,
+ COUNTER and ebuilds. This should keep a stage1 useable, while still keeping
+ its size small.
24 Jan 2005; Chris Gianelloni <wolf31o2@gentoo.org>
livecd/runscript-support/livecdfs-update.sh:
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1-preclean2-chroot.sh,v 1.5 2004/12/06 22:25:10 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1-preclean2-chroot.sh,v 1.6 2005/01/25 22:54:00 wolf31o2 Exp $
-#now, some finishing touches to initialize gcc-config....
+# now, some finishing touches to initialize gcc-config....
unset ROOT
if [ -e /usr/bin/gcc-config ]
gcc-config ${mythang}; /usr/sbin/env-update; source /etc/profile
fi
-#stage1 is not going to have anything in zoneinfo, so save our Factory timezone
+# stage1 is not going to have anything in zoneinfo, so save our Factory timezone
if [ -d /usr/share/zoneinfo ] ; then
rm -f /etc/localtime
cp /usr/share/zoneinfo/Factory /etc/localtime
else
echo UTC > /etc/TZ
fi
+
+# this cleans out /var/db, but leaves behind files portage needs for removal
+find /var/db/pkg -type f | grep -v '\(COUNTER\|CONTENTS\|ebuild\)' -exec rm -f '{}' \;