if self.settings["target"] in ["grp","tinderbox"]:
#grp creates a directory of packages and sources rather than a compressed tarball
self.settings["target_path"]=st+"/builds/"+self.settings["target_subpath"]
- #since we have a directory here, we need to create it
- if not os.path.exists(self.settings["target_path"]):
- os.makedirs(self.settings["target_path"])
+ elif self.settings["target"] == "livecd-stage2":
+ #we have a main directory and a tarball in this case
+ os.makedirs(st+"/builds/"+self.settings["target_subpath"])
+ self.settings["target_path"]=st+"/builds/"+self.settings["target_subpath"]+"/"+self.settings["target_subpath"]+".tar.bz2"
else:
self.settings["target_path"]=st+"/builds/"+self.settings["target_subpath"]+".tar.bz2"
self.settings["source_path"]=st+"/builds/"+self.settings["source_subpath"]+".tar.bz2"
if self.settings["target"]=="grp":
self.mounts.append("/tmp/grp")
self.mountmap["/tmp/grp"]=self.settings["target_path"]
+ if self.settings["target"]="livecd-stage2":
+ self.mounts.append("/tmp/binaries")
+ self.mountmap["/tmp/binaries"]=st+"/builds/"+self.settings["target_subpath"]+"/binaries"
def mount_safety_check(self):
mypath=self.settings["chroot_path"]
for x in self.mounts:
if not os.path.exists(self.settings["chroot_path"]+x):
os.makedirs(self.settings["chroot_path"]+x)
+ if not os.path.exists(self.mountmap[x]):
+ os.makedirs(self.mountmap[x])
src=self.mountmap[x]
retval=os.system("mount --bind "+src+" "+self.settings["chroot_path"]+x)
if retval!=0:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/Attic/livecd-stage2.sh,v 1.2 2003/12/24 19:28:08 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/Attic/livecd-stage2.sh,v 1.3 2004/01/07 17:45:57 drobbins Exp $
case $1 in
enter)
else
emerge --noreplace $clst_ksource || exit 1
fi
- genkernel --no-bootsplash --kerneldir=/usr/src/linux --kernel-config=/var/tmp/$clst_kname.config --kernelpackage=/var/tmp/$clst_kname.tar.gz all || exit 1
+ genkernel --no-bootsplash --kerneldir=/usr/src/linux --kernel-config=/var/tmp/$clst_kname.config --kernelpackage=/tmp/binaries/$clst_kname.tar.gz all || exit 1
emerge -C genkernel $clst_ksource
EOF
[ $? -ne 0 ] && exit 1