Attempt to fix bug 117253; chost is wrong on autoresume
authorEric Edgar <rocket@gentoo.org>
Sat, 31 Dec 2005 08:03:22 +0000 (08:03 +0000)
committerEric Edgar <rocket@gentoo.org>
Sat, 31 Dec 2005 08:03:22 +0000 (08:03 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1006 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py

index d4fed578889402dbf840d2b09e79cc65d78e2869..27e36198b071cb954e4eeeeb582099f56bb06213 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.493 2005/12/28 16:58:43 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.494 2005/12/31 08:03:22 rocket Exp $
+
+  31 Dec 2005; Eric Edgar <rocket@gentoo.org>
+  modules/generic_stage_target.py:
+  Attempt to fix bug 117253; chost is wrong on autoresume
 
   28 Dec 2005; Eric Edgar <rocket@gentoo.org> modules/embedded_target.py,
   modules/generic_stage_target.py, modules/netboot_target.py,
index a73827f8423d4be27055cb0d03b7d4653955932f..366f16f26d0073afbe38a51c6438caba030709b0 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.109 2005/12/28 16:58:43 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.110 2005/12/31 08:03:22 rocket Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -782,13 +782,18 @@ class generic_stage_target(generic_target):
                        raise CatalystError,"Couldn't umount one or more bind-mounts; aborting for safety."
 
        def chroot_setup(self):
+               self.makeconf=read_makeconf(self.settings["chroot_path"]+"/etc/make.conf")
+               self.override_chost()   
+               self.override_cflags()
+               self.override_cxxflags()        
+               self.override_ldflags() 
                if self.settings.has_key("AUTORESUME") \
                        and os.path.exists(self.settings["autoresume_path"]+"chroot_setup"):
                        print "Resume point detected, skipping chroot_setup operation..."
                else:
                        print "Setting up chroot..."
                        
-                       self.makeconf=read_makeconf(self.settings["chroot_path"]+"/etc/make.conf")
+                       #self.makeconf=read_makeconf(self.settings["chroot_path"]+"/etc/make.conf")
                        
                        cmd("cp /etc/resolv.conf "+self.settings["chroot_path"]+"/etc",\
                                "Could not copy resolv.conf into place.",env=self.env)
@@ -814,10 +819,10 @@ class generic_stage_target(generic_target):
                                cmd("mv "+self.settings["chroot_path"]+"/etc/hosts "+self.settings["chroot_path"]+\
                                        "/etc/hosts.bck", "Could not backup /etc/hosts",env=self.env)
                                cmd("cp /etc/hosts "+self.settings["chroot_path"]+"/etc/hosts", "Could not copy /etc/hosts",env=self.env)
-                       self.override_chost()   
-                       self.override_cflags()
-                       self.override_cxxflags()        
-                       self.override_ldflags() 
+                       #self.override_chost()  
+                       #self.override_cflags()
+                       #self.override_cxxflags()       
+                       #self.override_ldflags()        
                        # modify and write out make.conf (for the chroot)
                        cmd("rm -f "+self.settings["chroot_path"]+"/etc/make.conf","Could not remove "+self.settings["chroot_path"]+"/etc/make.conf",\
                                env=self.env)