# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 05 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/stage1/stage1-chroot.sh, targets/support/chroot-functions.sh:
+ Updated make_destpath so it writes out to make.conf as well as exporting
+ ROOT to the environment, added a make_destpath call to cleanup_stages, and
+ adding make_destpath /tmp/stage1root to stage1.
+
05 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> README, catalyst:
Updated README a bit and rolling 2.0.6_pre12 for testing.
## START BUILD
clst_root_path=/ setup_pkgmgr
+make_destpath /tmp/stage1root
# First, we drop in a known-good baselayout
[ -e /etc/make.conf ] && \
}
cleanup_stages() {
+ make_destpath
if [ -n "${clst_DISTCC}" ]
then
cleanup_distcc
}
make_destpath() {
- if [ "${1}" = "" ]
+ # ROOT is / by default, so remove any ROOT= settings from make.conf
+ sed -i '/ROOT=/d' /etc/make.conf
+ export ROOT=/
+ if [ "${1}" != "/" -a -n "${1}" ]
then
- # ROOT is / by default, so remove any ROOT= settings from make.conf
- sed -i '/ROOT=/d' /etc/make.conf
- else
echo "ROOT=\"${1}\"" >> /etc/make.conf
- if [ ! -d ${ROOT} ]
- then
- install -d ${ROOT}
- fi
+ export ROOT=${1}
+ fi
+ if [ ! -d ${ROOT} ]
+ then
+ install -d ${ROOT}
fi
}