required_config_file_values=["storedir","sharedir","distdir","portdir"]
valid_config_file_values=required_config_file_values[:]
-valid_config_file_values.append("CCACHE")
-valid_config_file_values.append("PKGCACHE")
valid_config_file_values.append("options")
+verbosity=1
+
class CatalystError(Exception):
def __init__(self, message):
if message:
if retval != 0:
raise CatalystError,myexc
+def msg(mymsg,verblevel=1):
+ if verbosity>=verblevel:
+ print mymsg
+
def ismount(path):
"enhanced to handle bind mounts"
if os.path.ismount(path):
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.5 2003/11/03 02:43:55 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.6 2003/11/06 02:31:20 drobbins Exp $
case $1 in
enter)
EOF
[ $? -ne 0 ] && exit 1
;;
-clean)
- # we need to have catalyst un-bind-mount things before
- # we clean up.
+preclean)
+ #preclean runs with bind-mounts active
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
env-update
source /etc/profile
EOF
[ $? -ne 0 ] && exit 1
;;
-preclean)
+clean)
exit 0
;;
*)