# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.384 2005/11/17 22:27:13 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.385 2005/11/18 02:25:44 rocket Exp $
+
+ 18 Nov 2005; Eric Edgar <rocket@gentoo.org>
+ modules/generic_stage_target.py, modules/livecd_stage1_target.py,
+ targets/support/bootloader-setup.sh:
+ fix the bootloader script for isolinux so that it actually makes a cfg file,
+ remove extra unneeded catalyst aborting print statement, reorganize rm code
+ to make sure is splits properly and is an array even from the cmdline
17 Nov 2005; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/livecdfs-update.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.77 2005/11/17 22:04:26 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.78 2005/11/18 02:25:44 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
print "Choose one of the following:",
for x in self.subarchmap:
print x,
- print
- print
- print "Catalyst aborting...."
+ print
sys.exit(2)
print "Using target:",self.settings["target"]
self.set_fsops()
self.set_iso()
self.set_packages()
-
+ self.set_rm()
+
# this next line checks to make sure that the specified variables exist on disk.
#pdb.set_trace()
file_locate(self.settings,["source_path","snapshot_path","distdir"],expand=0)
"setup_environment","run_local","preclean","unbind","clean","capture","clear_autoresume"]
def set_use(self):
- if self.settings.has_key("use"):
+ if self.settings.has_key(self.settings["spec_prefix"]+"/use"):
self.settings["use"]=self.settings[self.settings["spec_prefix"]+"/use"]
del self.settings[self.settings["spec_prefix"]+"/use"]
+ if self.settings.has_key("use"):
+ if type(self.settings["use"])==types.StringType:
+ self.settings["use"]=self.settings["use"].split()
def set_stage_path(self):
self.settings["stage_path"]=normpath(self.settings["chroot_path"])
def set_packages(self):
pass
+ def set_rm(self):
+ if self.settings.has_key(self.settings["spec_prefix"]+"/rm"):
+ if type(self.settings[self.settings["spec_prefix"]+"/rm"])==types.StringType:
+ self.settings[self.settings["spec_prefix"]+"/rm"]=self.settings[self.settings["spec_prefix"]+"/rm"].split()
+
def set_root_path(self):
# ROOT= variable for emerges
self.settings["root_path"]="/"
print "Resume point detected, skipping remove operation..."
else:
if self.settings.has_key(self.settings["spec_prefix"]+"/rm"):
- if type(self.settings[self.settings["spec_prefix"]+"/rm"])==types.StringType:
- self.settings[self.settings["spec_prefix"]+"/rm"]=self.settings[self.settings["spec_prefix"]+"/rm"].split()
for x in self.settings[self.settings["spec_prefix"]+"/rm"]:
# we're going to shell out for all these cleaning operations,
# so we get easy glob handling
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.17 2005/11/02 21:54:29 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.18 2005/11/18 02:25:44 rocket Exp $
"""
Builder class for LiveCD stage1.
def set_packages(self):
generic_stage_target.set_packages(self)
if self.settings.has_key(self.settings["spec_prefix"]+"/packages"):
+ if type(self.settings[self.settings["spec_prefix"]+"/packages"]) == types.StringType:
+ self.settings[self.settings["spec_prefix"]+"/packages"] = \
+ self.settings[self.settings["spec_prefix"]+"/packages"].split()
self.settings[self.settings["spec_prefix"]+"/packages"].append("livecd-tools")
def set_pkgcache_path(self):
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/bootloader-setup.sh,v 1.14 2005/10/17 17:11:33 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/bootloader-setup.sh,v 1.15 2005/11/18 02:25:44 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
mv $1/boot/${x}{,.igz} $1/boot/efi/boot
;;
x86|amd64)
- if [ -e $1/boot/isolinux.bin ]
+ if [ -e $1/isolinux/isolinux.bin ]
then
+ mv $1/boot/* $1/isolinux
+ rmdir $1/boot
# the rest of this function sets up the config file for isolinux
- icfg=$1/boot/isolinux.cfg
- kmsg=$1/boot/kernels.msg
+ icfg=$1/isolinux/isolinux.cfg
+ kmsg=$1/isolinux/kernels.msg
echo "default ${first}" > ${icfg}
echo "timeout 150" >> ${icfg}
echo "prompt 1" >> ${icfg}
echo " ${x}-nofb" >> ${kmsg}
done
- if [ -f $1/boot/memtest86 ]
+ if [ -f $1/isolinux/memtest86 ]
then
echo >> $icfg
echo " memtest86" >> $kmsg