fix bug in exec_in_chroot for stage1 target
authorEric Edgar <rocket@gentoo.org>
Tue, 9 Aug 2005 21:44:45 +0000 (21:44 +0000)
committerEric Edgar <rocket@gentoo.org>
Tue, 9 Aug 2005 21:44:45 +0000 (21:44 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@823 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py
targets/support/functions.sh

index bafbfc320cb83c0c95858688502219c6b603ee45..107ae58765d28980a8637161be1b9394d4ca4db6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.315 2005/08/09 19:25:08 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.316 2005/08/09 21:44:45 rocket Exp $
+
+  09 Aug 2005; Eric Edgar <rocket@gentoo.org>
+  modules/generic_stage_target.py, targets/support/functions.sh:
+  fix bug in exec_in_chroot for stage1 target
 
   09 Aug 2005; Eric Edgar <rocket@gentoo.org> modules/catalyst_support.py,
   modules/generic_stage_target.py:
index efc7a763a0e316e48bb8870e8d14234b8cb1de0d..bc876948bcd4db12cae4672f0135922821a8786c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.55 2005/08/09 19:25:08 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.56 2005/08/09 21:44:45 rocket Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -496,7 +496,7 @@ class generic_stage_target(generic_target):
                        self.mount_safety_check()
                        
                        if invalid_snapshot:
-                               print "InValid Resume point detected, cleaning up  ..."
+                               print "No Valid Resume point detected, cleaning up  ..."
                                #os.remove(self.settings["autoresume_path"]+"dir_setup")        
                                self.clear_autoresume()
                                self.clear_chroot()
index df57aa95a71033f9929481724c72348ea5c64acd..acbc937357a7d624658f7f84b7557f88a789b8bf 100755 (executable)
@@ -40,13 +40,13 @@ exec_in_chroot(){
                chroot_path=${clst_chroot_path}${subdir}
                copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh ${subdir}/tmp/
                echo "Running ${file_name} in chroot ${chroot_path}" 
-               ${clst_CHROOT} ${chroot_path} ${subdir}/tmp/${file_name} || exit 1
+               ${clst_CHROOT} ${chroot_path} /tmp/${file_name} || exit 1
        else
                copy_to_chroot ${1} tmp/
                chroot_path=${clst_chroot_path}
                copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh tmp/
                echo "Running ${file_name} in chroot ${chroot_path}" 
-               ${clst_CHROOT} ${chroot_path}/ tmp/${file_name} || exit 1
+               ${clst_CHROOT} ${chroot_path}/ /tmp/${file_name} || exit 1
        fi
 
        rm -f ${chroot_path}/tmp/${file_name}