Fixes for initramfs overlay support.
authorEric Edgar <rocket@gentoo.org>
Fri, 15 Apr 2005 16:49:45 +0000 (16:49 +0000)
committerEric Edgar <rocket@gentoo.org>
Fri, 15 Apr 2005 16:49:45 +0000 (16:49 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@606 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py
targets/support/kmerge.sh

index 1b752c6aed1d472b1592884a51899e091d8e2315..3957a6ae5171c0990ab9ce620e510b3f7bac56d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # 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,
index 7b943555155bf9905e1cd9f9f7d5ea7e0369ec81..5c1c23a980798f714ab21db3828cd2b775ec344d 100644 (file)
@@ -1,6 +1,6 @@
 # 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
@@ -873,8 +873,10 @@ class generic_stage_target(generic_target):
                                        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"])
@@ -886,8 +888,7 @@ class generic_stage_target(generic_target):
                                        
                                        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")
                        
index dd8abf5480492d09e3c5cb0a4821ab8e703d43e7..1fb19d30edb84b58ac87cbc59125be123ee7293c 100755 (executable)
@@ -33,7 +33,7 @@ setup_gk_args() {
 
        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
@@ -47,11 +47,15 @@ setup_gk_args() {
 }
 
 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}" ]