From: Chris Gianelloni Date: Tue, 25 Jan 2005 22:54:00 +0000 (+0000) Subject: Added code to clean up /var/db/pkg, while still keeping the CONTENTS, COUNTER and... X-Git-Tag: CATALYST_2_0_6_916~847 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e01716362da5be9f80313b921a9945512a14b7b9;p=catalyst.git 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. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@526 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 1a0a5985..d9248ea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ # 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 + 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 livecd/runscript-support/livecdfs-update.sh: diff --git a/targets/stage1/stage1-preclean2-chroot.sh b/targets/stage1/stage1-preclean2-chroot.sh index ae6018fc..469b642a 100755 --- a/targets/stage1/stage1-preclean2-chroot.sh +++ b/targets/stage1/stage1-preclean2-chroot.sh @@ -1,9 +1,9 @@ #!/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 ] @@ -12,10 +12,13 @@ then 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 '{}' \;