# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.136 2005/01/04 21:33:20 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.137 2005/01/04 23:54:59 zhen Exp $
+
+ 04 Jan 2005; John Davis <zhen@gentoo.org> modules/generic_stage_target.py,
+ modules/livecd_stage2_target.py:
+ fix for #76530
04 Jan 2005; Chris Gianelloni <wolf31o2@gentoo.org>
-livecd/cdtar/isolinux-2.08-cdtar.tar.bz2,
# Copyright 1999-2004 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.21 2005/01/04 21:13:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.22 2005/01/04 23:54:59 zhen Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
"Could not remove existing directory: "+self.settings["chroot_path"])
if not os.path.exists(self.settings["chroot_path"]+"/tmp"):
- os.makedirs(self.settings["chroot_path"]+"/tmp")
+ os.makedirs(self.settings["chroot_path"]+"/tmp",1777)
if not os.path.exists(self.settings["chroot_path"]):
- os.makedirs(self.settings["chroot_path"])
+ os.makedirs(self.settings["chroot_path"],0755)
if self.settings.has_key("PKGCACHE"):
if not os.path.exists(self.settings["pkgcache_path"]):
- os.makedirs(self.settings["pkgcache_path"])
+ os.makedirs(self.settings["pkgcache_path"],0755)
def unpack_and_bind(self):
for x in self.mounts:
if not os.path.exists(self.settings["chroot_path"]+x):
- os.makedirs(self.settings["chroot_path"]+x)
+ os.makedirs(self.settings["chroot_path"]+x,0755)
if not os.path.exists(self.mountmap[x]):
- os.makedirs(self.mountmap[x])
+ os.makedirs(self.mountmap[x],0755)
src=self.mountmap[x]
retval=os.system("mount --bind "+src+" "+self.settings["chroot_path"]+x)
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage2_target.py,v 1.27 2005/01/04 21:13:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage2_target.py,v 1.28 2005/01/04 23:54:59 zhen Exp $
"""
Builder class for a LiveCD stage2 build.
for x in self.mounts:
if not os.path.exists(self.settings["chroot_path"]+x):
- os.makedirs(self.settings["chroot_path"]+x)
+ os.makedirs(self.settings["chroot_path"]+x,0755)
if not os.path.exists(self.mountmap[x]):
- os.makedirs(self.mountmap[x])
+ os.makedirs(self.mountmap[x],0755)
src=self.mountmap[x]
retval=os.system("mount --bind "+src+" "+self.settings["chroot_path"]+x)
if retval!=0:
# the proper perms and ownership
mystat=os.stat(myemp)
shutil.rmtree(myemp)
- os.makedirs(myemp)
+ os.makedirs(myemp,0755)
os.chown(myemp,mystat[ST_UID],mystat[ST_GID])
os.chmod(myemp,mystat[ST_MODE])