# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.449 2005/12/09 22:38:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.450 2005/12/11 20:34:41 rocket Exp $
+
+ 11 Dec 2005; Eric Edgar <rocket@gentoo.org>
+ modules/generic_stage_target.py, targets/support/bootloader-setup.sh:
+ Add support for bootloader softlevel=; have rsync delete the extra files out
+ of the overlay so that the overlay always matches the source dir
09 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org> catalyst:
Swapped -v/-V since I had gotten them wrong here.
# 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.96 2005/12/09 20:47:05 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.97 2005/12/11 20:34:42 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
self.valid_values.append("boot/kernel/"+x+"/gk_kernargs")
self.valid_values.append("boot/kernel/"+x+"/gk_action")
self.valid_values.append("boot/kernel/"+x+"/initramfs_overlay")
+ self.valid_values.append("boot/kernel/"+x+"/softlevel")
if self.settings.has_key("boot/kernel/"+x+"/postconf"):
print "boot/kernel/"+x+"/postconf is deprecated"
print "\tInternally moving these ebuilds to boot/kernel/"+x+"/packages"
if os.path.exists(x):
print "Copying overlay dir " +x
cmd("mkdir -p "+self.settings["chroot_path"]+x,"Could not make portage_overlay dir",env=self.env)
- cmd("cp -R "+x+"/* "+self.settings["chroot_path"]+x,"Could not copy portage_overlay",env=self.env)
+ cmd("rsync -a --delete "+x+"/* "+self.settings["chroot_path"]+x,\
+ "Could not copy portage_overlay",env=self.env)
+ #cmd("cp -R "+x+"/* "+self.settings["chroot_path"]+x,"Could not copy portage_overlay",env=self.env)
def root_overlay(self):
# copy over the root_overlay
#!/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.20 2005/11/30 21:34:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/bootloader-setup.sh,v 1.21 2005/12/11 20:34:42 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
check_bootargs
check_filesystem_type
+eval "clst_kernel_softlevel=\$clst_boot_kernel_${clst_kname}_softlevel"
+
default_append_line="root=/dev/ram0 init=/linuxrc ${cmdline_opts} ${custom_kopts} cdroot"
+if ${clst_kernel_softlevel}
+then
+ default_append_line="${default_append_line} softlevel=${clst_kernel_softlevel}"
+fi
+
case ${clst_mainarch} in
alpha)
acfg=$1/etc/aboot.conf