# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.588 2006/03/22 19:11:24 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.589 2006/03/22 22:21:31 wolf31o2 Exp $
+
+ 22 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ modules/generic_stage_target.py:
+ Fix to ensure that we look inside the chroot for /etc/hosts.bck, not on our
+ live system. You can thank Andrew Gaffney for the fix.
22 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org>
targets/livecd-stage2/livecd-stage2-controller.sh:
# 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.129 2006/02/14 15:29:39 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.130 2006/03/22 22:21:32 wolf31o2 Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
"Could not copy envscript into place.",env=self.env)
# copy over /etc/hosts from the host in case there are any specialties in there
- if os.path.exists("/etc/hosts"):
+ if os.path.exists(self.settings["chroot_path"]+"/etc/hosts"):
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)