# ChangeLog for gentoo/src/catalyst
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.221 2005/04/15 04:43:17 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.222 2005/04/15 16:49:45 rocket Exp $
+
+ 15 Apr 2005; Eric Edgar <rocket@gentoo.org>
+ modules/generic_stage_target.py, targets/support/kmerge.sh:
+ Fixes for initramfs overlay support.
15 Apr 2005; Eric Edgar <rocket@gentoo.org>
modules/generic_stage_target.py, targets/support/kmerge.sh,
# 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.31 2005/04/15 04:40:24 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.32 2005/04/15 16:49:45 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
if self.settings.has_key("boot/kernel/"+kname+"/initramfs_overlay"):
if os.path.exists(self.settings["boot/kernel/"+kname+"/initramfs_overlay"]):
print "Copying initramfs_overlay dir " +self.settings["boot/kernel/"+kname+"/initramfs_overlay"]
+
cmd("mkdir -p "+self.settings["chroot_path"]+"/tmp/initramfs_overlay/" + \
self.settings["boot/kernel/"+kname+"/initramfs_overlay"])
+
cmd("cp -R "+self.settings["boot/kernel/"+kname+"/initramfs_overlay"]+"/* " + \
self.settings["chroot_path"] + "/tmp/initramfs_overlay/" + \
self.settings["boot/kernel/"+kname+"/initramfs_overlay"])
if self.settings.has_key("boot/kernel/"+kname+"/initramfs_overlay"):
print "Cleaning up temporary overlay dir"
- cmd("rm -R"+self.settings["chroot_path"]+"/tmp/initramfs_overlay/" + \
- self.settings["boot/kernel/"+kname+"/initramfs_overlay"])
+ cmd("rm -R "+self.settings["chroot_path"]+"/tmp/initramfs_overlay/")
touch(self.settings["autoresume_path"]+"build_kernel")
if [ -n "${clst_initramfs_overlay}" ]
then
- GK_ARGS="${GK_ARGS} --initramfs_overlay=/tmp/initramfs_overlay/${clst_initramfs_overlay}"
+ GK_ARGS="${GK_ARGS} --initramfs-overlay=/tmp/initramfs_overlay/${clst_initramfs_overlay}"
fi
if [ -n "${clst_CCACHE}" ]
then
}
genkernel_compile(){
-
- setup_gk_args
+ eval "clst_initramfs_overlay=\$clst_boot_kernel_${clst_kname}_initramfs_overlay"
eval "clst_kernel_merge=\$clst_boot_kernel_${clst_kname}_packages"
+
+ setup_gk_args
+ #echo "The GK_ARGS are"
+ #echo ${GK_ARGS}
export clst_kernel_merge
+ export clst_initramfs_overlay
# build with genkernel using the set options
# callback is put here to avoid escaping issues
if [ -n "${clst_KERNCACHE}" ]