Updated make_destpath so it writes out to make.conf as well as exporting ROOT to...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 5 Mar 2008 18:45:46 +0000 (18:45 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 5 Mar 2008 18:45:46 +0000 (18:45 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1358 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/stage1/stage1-chroot.sh
targets/support/chroot-functions.sh

index e4ae5a8f36c00a81fcaf57e1ffed6591ccb0177e..44f766e4d16d0f631bbbf7fda65586985d5506ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 # 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.
 
index 950659c6e05d0e8335c888204284f5bee86ba9ae..7ed142a07e6be6c778c04fa49beb59760b4f0484 100755 (executable)
@@ -20,6 +20,7 @@ fi
 
 ## START BUILD
 clst_root_path=/ setup_pkgmgr
+make_destpath /tmp/stage1root
 
 # First, we drop in a known-good baselayout
 [ -e /etc/make.conf ] && \
index b5b7e0ee1f04d5cfaadb51952c1d0aa518aa6175..38a7af8fbf5a6384eeb3ad4abbabd3a97b92363c 100755 (executable)
@@ -179,6 +179,7 @@ cleanup_icecream() {
 }
 
 cleanup_stages() {
+       make_destpath
        if [ -n "${clst_DISTCC}" ]
        then
                cleanup_distcc
@@ -213,16 +214,17 @@ die() {
 }
 
 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
 }