Fixed lots of spacing issues, removed livecd/type from livecd-stage1, add splash...
authorChris Gianelloni <wolf31o2@gentoo.org>
Mon, 2 Oct 2006 20:25:25 +0000 (20:25 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Mon, 2 Oct 2006 20:25:25 +0000 (20:25 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1177 d1e1f19c-881f-0410-ab34-b69fee027534

14 files changed:
ChangeLog
README
modules/generic_stage_target.py
modules/livecd_stage1_target.py
modules/stage4_target.py
targets/embedded/embedded-chroot.sh
targets/embedded/embedded-controller.sh
targets/embedded/embedded-fs-runscript.sh
targets/embedded/embedded-preclean-chroot.sh
targets/livecd-stage2/livecd-stage2-controller.sh
targets/netboot2/netboot2-copyfile.sh
targets/stage4/stage4-controller.sh
targets/support/kmerge.sh
targets/support/pre-kmerge.sh

index 6ec663c32a444356fb47d32bb114b9cded99ad65..77dbd7dcd6a5af72d841a9144cd44ec3cbb225f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.661 2006/09/13 18:32:35 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.662 2006/10/02 20:25:25 wolf31o2 Exp $
+
+  02 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org> README,
+  modules/generic_stage_target.py, modules/livecd_stage1_target.py,
+  modules/stage4_target.py, targets/embedded/embedded-chroot.sh,
+  targets/embedded/embedded-controller.sh,
+  targets/embedded/embedded-fs-runscript.sh,
+  targets/embedded/embedded-preclean-chroot.sh,
+  targets/livecd-stage2/livecd-stage2-controller.sh,
+  targets/netboot2/netboot2-copyfile.sh,
+  targets/stage4/stage4-controller.sh, targets/support/kmerge.sh,
+  targets/support/pre-kmerge.sh:
+  Fixed lots of spacing issues, removed livecd/type from livecd-stage1, add
+  splash capabilities to stage4, change 'cp -a' to 'cp -pPR', add -q to emerge
+  calls in kmerge.sh, and updated README.
 
   13 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org>
   livecd/files/livecd-bashrc, targets/support/livecdfs-update.sh:
diff --git a/README b/README
index 2365cbe5d21af115fa2cae14cc51d255bb650873..15c09811c7c9dc63156a773be81a800d495c4dbf 100644 (file)
--- a/README
+++ b/README
@@ -1,26 +1,28 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/README,v 1.15 2005/12/21 16:56:01 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/README,v 1.16 2006/10/02 20:25:25 wolf31o2 Exp $
 
 Licensing
 ========================
 
-Catalyst is copyrighted by the Gentoo Foundation, and released
-under the terms of the GNU General Public License v.2.0 or later. For more
-information, please consult COPYING.
+Catalyst is copyrighted by the Gentoo Foundation, and is released under the
+terms of the GNU General Public License v.2.1. For more information, please
+consult COPYING.
 
 Disclaimer
 ========================
 
-Gentoo Linux extends no warranty or guarantee for catalyst. Use at
-your own risk.
+The Gentoo Foundation extends no warranty or guarantee for catalyst. This
+software is provided to the public to comply with the Gentoo social contract
+and to assist other distributors and integrators of Gentoo and Gentoo-based
+solutions. Use at your own risk.
 
 Requirements
 =======================
 
 - Python 2.4 or greater (may still work with 2.3)
 - A portage snapshot (or portage tree to make your own)
-- A Gentoo seed stage tarball
+- A Gentoo generic stage3 tarball
 - shash for digest support
 
 What is Catalyst?
@@ -28,20 +30,21 @@ What is Catalyst?
 
 Catalyst is the Gentoo Linux project's release building tool. With catalyst,
 you are able to completely customize your Gentoo install by customizing
-the very tools you install your system with.
+the very tools that are used to install a system. Official Gentoo Linux release
+media is built with catalyst.
 
 Catalyst is capable of:
 
-- Building installation stages for every architecture supported by Gentoo.
-- Building bootable LiveCDs for every architecture supported by Gentoo.
-- Building GRP (Gentoo Reference Platform) sets for every architecture supported by Gentoo.
-- Setting up a Tinderbox target for test building.
-- Building netboot images.
+- Building installation stages for every architecture supported by Gentoo
+- Building bootable LiveCDs for every architecture supported by Gentoo
+- Building GRP (Gentoo Reference Platform) sets for every architecture supported by Gentoo
+- Setting up a Tinderbox target for test building
+- Building netboot images
 
 Configuring catalyst
 ========================
 
-After emerging catalyst, the first thing (and probably only thing)
+After emerging/installing catalyst, the first (and probably only) thing
 that you will have to do is edit /etc/catalyst/catalyst.conf to your liking.
 
 Example catalyst.conf:
@@ -53,4 +56,4 @@ sharedir="/usr/lib/catalyst"
 There are many more options that can be set, but those defaults are good
 for out of the box operation. For more documentation on what you can do
 with catalyst, please check the man page or the online documentation at
-<http://www.gentoo.org/proj/en/releng/catalyst>.
+http://www.gentoo.org/proj/en/releng/catalyst.
index 55ac106c50d18b475bdd2dce94547ce9ab839cd5..38ae1f306b819677895539ed023e2d9ceb857762 100644 (file)
@@ -1,6 +1,6 @@
 # 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.138 2006/07/11 21:40:59 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.139 2006/10/02 20:25:25 wolf31o2 Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -26,8 +26,8 @@ class generic_stage_target(generic_target):
                self.set_valid_build_kernel_vars(addlargs)
                generic_target.__init__(self,myspec,addlargs)
                # map the mainarch we are running under to the mainarches we support for
-               # building stages and LiveCDs. (for example, on amd64, we can build stages for
-               # x86 or amd64.
+               # building stages and LiveCDs. (for example, on amd64, we can build
+               # stages for x86 or amd64.
                targetmap={     
                                "x86" : ["x86"],
                                "amd64" : ["x86","amd64"],
@@ -104,8 +104,8 @@ class generic_stage_target(generic_target):
                         sys.exit(2)
        
                print "Using target:",self.settings["target"]
-               # self.settings["mainarch"] should now be set by our arch constructor, so we print
-               # a nice informational message:
+               # self.settings["mainarch"] should now be set by our arch constructor,
+               # so we print a nice informational message:
                if self.settings["mainarch"]==self.settings["hostarch"]:
                        print "Building natively for",self.settings["hostarch"]
                
@@ -154,10 +154,11 @@ class generic_stage_target(generic_target):
                self.set_portage_overlay()      
                self.set_root_overlay() 
                
-               # this next line checks to make sure that the specified variables exist on disk.
+               # 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)
-               # if we are using portage_confdir, check that as well
+               # If we are using portage_confdir, check that as well.
                if self.settings.has_key("portage_confdir"):
                        file_locate(self.settings,["portage_confdir"],expand=0)
                
@@ -174,7 +175,8 @@ class generic_stage_target(generic_target):
 
                self.set_mounts()
 
-               # configure any user specified options (either in catalyst.conf or on the cmdline)
+               # Configure any user specified options (either in catalyst.conf or on
+               # the command line).
                if self.settings.has_key("PKGCACHE"):
                        self.set_pkgcache_path()
                        print "Location of the package cache is " + self.settings["pkgcache_path"]
@@ -386,6 +388,7 @@ class generic_stage_target(generic_target):
        
        def set_controller_file(self):
                self.settings["controller_file"]=normpath(self.settings["sharedir"]+"/targets/"+self.settings["target"]+"/"+self.settings["target"]+"-controller.sh")
+
        def set_iso_volume_id(self):
                 if self.settings.has_key(self.settings["spec_prefix"]+"/volid"):
                        self.settings["iso_volume_id"] = string.join(self.settings[self.settings["spec_prefix"]+"/volid"])
@@ -1025,10 +1028,12 @@ class generic_stage_target(generic_target):
                        raise CatalystError,"Stage build aborting due to error."
        
        def setup_environment(self):
-               # modify the current environment. This is an ugly hack that should be fixed. We need this
-               # to use the os.system() call since we can't specify our own environ:
+               # Modify the current environment. This is an ugly hack that should be
+               # fixed. We need this to use the os.system() call since we can't
+               # specify our own environ:
                for x in self.settings.keys():
-                       # "/" is replaced with "_", "-" is also replaced with "_", "." is also replace with "_"
+                       # "/" is replaced with "_", "-" is replaced with "_", and "." is
+                       # replaced with "_"
                        varname="clst_"+string.replace(x,"/","_")
                        varname=string.replace(varname,"-","_")
                        varname=string.replace(varname,".","_")
index 4276a21eeed4e2ae803c4f10380f79137fadc6e1..522972c724bfb545e1765e9c2f90f927a43edd60 100644 (file)
@@ -1,6 +1,6 @@
 # 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.27 2006/05/15 13:59:32 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.28 2006/10/02 20:25:25 wolf31o2 Exp $
 
 """
 Builder class for LiveCD stage1.
@@ -14,8 +14,7 @@ class livecd_stage1_target(generic_stage_target):
                self.required_values=["livecd/packages"]
                self.valid_values=self.required_values[:]
 
-               # Add optional livecd/type field for extra specific stuff 
-               self.valid_values.extend(["livecd/type","livecd/use"])
+               self.valid_values.extend(["livecd/use"])
                generic_stage_target.__init__(self,spec,addlargs)
 
        def set_action_sequence(self):
index 3208f97e164128f13acfd7785e770ce749b9ffc6..406141cae79c76f2b17469febf6ee42844ff891a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage4_target.py,v 1.19 2006/02/17 13:34:42 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage4_target.py,v 1.20 2006/10/02 20:25:25 wolf31o2 Exp $
 
 """
 Builder class for stage4.
@@ -11,10 +11,13 @@ from generic_stage_target import *
 
 class stage4_target(generic_stage_target):
        def __init__(self,spec,addlargs):
-               self.required_values=[]
+               self.required_values=["stage4/packages"]
                self.valid_values=self.required_values[:]
-               self.valid_values.extend(["stage4/use","stage4/packages","stage4/root_overlay", "stage4/fsscript", \
-                               "stage4/rcadd","stage4/rcdel","stage4/linuxrc","stage4/unmerge","stage4/rm","boot/kernel"])
+               self.valid_values.extend(["stage4/use","boot/kernel",\
+                               "stage4/root_overlay","stage4/fsscript",\
+                               "stage4/gk_mainargs","splash_theme","splash_type",\
+                               "portage_overlay","stage4/rcadd","stage4/rcdel",\
+                               "stage4/linuxrc","stage4/unmerge","stage4/rm","stage4/empty"])
                generic_stage_target.__init__(self,spec,addlargs)
 
        def set_cleanables(self):
@@ -24,7 +27,7 @@ class stage4_target(generic_stage_target):
                self.settings["action_sequence"]=["unpack","unpack_snapshot",\
                                        "config_profile_link","setup_confdir","portage_overlay",\
                                        "bind","chroot_setup","setup_environment","build_packages",\
-                                       "build_kernel","bootloader","root_overlay","fsscript",
+                                       "build_kernel","bootloader","root_overlay","fsscript",\
                                        "preclean","rcupdate","unmerge","unbind","remove","empty",\
                                        "clean","capture", "clear_autoresume"]
 
index 66d7545f02c7cf83f66c6d971d9d5f3a11292925..bab840cb1e1f3c56302efac25bce6961172c522b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/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/embedded/embedded-chroot.sh,v 1.20 2005/12/16 19:08:59 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.21 2006/10/02 20:25:25 wolf31o2 Exp $
 
 . /tmp/chroot-functions.sh
 
@@ -10,14 +10,12 @@ update_env_settings
 setup_myfeatures
 setup_myemergeopts
 
-
 # Setup the environment
 export FEATURES="${clst_myfeatures}"
 #export clst_myemergeopts="${clst_myemergeopts} -O"
 export USE="${clst_use}"
 export DESTROOT=${clst_root_path}
 export clst_root_path=/
-## START BUILD
 
 run_emerge "${clst_myemergeopts}" -o "${clst_embedded_packages}"
 
@@ -27,4 +25,5 @@ run_emerge "${clst_myemergeopts}" -o "${clst_embedded_packages}"
 export clst_root_path=${DESTROOT}
 export clst_myemergeopts="${clst_myemergeopts} -1 -O"
 export INSTALL_MASK="${clst_install_mask}" 
+
 run_emerge "${clst_embedded_packages}"
index 42c31eda48d21b5ff068b4f458e3c4445f4ee74e..9f85b65c680d330d8a91eaec6a3850ebbee207d5 100755 (executable)
@@ -1,18 +1,20 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-controller.sh,v 1.8 2005/12/16 19:08:59 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-controller.sh,v 1.9 2006/10/02 20:25:25 wolf31o2 Exp $
 
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
-case $1 in
+
+case ${1} in
        enter)
        ;;
 
        build_packages)
                shift
                export clst_packages="$*"
-               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               exec_in_chroot \
+                       ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
        ;;
 
        preclean)
@@ -42,7 +44,7 @@ case $1 in
 
        kernel)
                shift
-               export clst_kname="$1"
+               export clst_kname="${1}"
                # if we have our own linuxrc, copy it in
                if [ -n "${clst_linuxrc}" ]
                then
@@ -54,7 +56,7 @@ case $1 in
 
        target_image_setup)
                shift
-               ${clst_sharedir}/targets/support/target_image_setup.sh $1
+               ${clst_sharedir}/targets/support/target_image_setup.sh ${1}
 
        ;;
        livecd-update)
@@ -65,14 +67,14 @@ case $1 in
        bootloader)
                shift
                # Here is where we poke in our identifier
-               touch $1/livecd
+               touch ${1}/livecd
 
-               ${clst_sharedir}/targets/support/bootloader-setup.sh $1
+               ${clst_sharedir}/targets/support/bootloader-setup.sh ${1}
        ;;
        
        iso)
                shift
-               ${clst_sharedir}/targets/support/create-iso.sh $1
+               ${clst_sharedir}/targets/support/create-iso.sh ${1}
        ;;
 
        clean)
index 11628b3d9e5ca35042aa4836e794900a398d7d94..a25048c41750c2c62f2ba6c178dbb08350afd175 100644 (file)
@@ -3,7 +3,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 die() {
-       echo "$1"
+       echo "${1}"
        exit 1
 }
 
@@ -14,7 +14,7 @@ fs_check() {
        fi
 }
 
-case $1 in
+case ${1} in
        jffs)
                fs_check /usr/sbin/mkfs.jffs jffs sys-fs/mtd
                mkfs.jffs -d ${root_fs_path} -o ${clst_image_path}/root.img \
@@ -39,6 +39,8 @@ case $1 in
                        ${clst_embedded_fs_ops} || \
                        die "Could not create a squashfs filesystem"
        ;;
+
        *)
        ;;
 esac
+exit $?
index b40a26ee277c148c6962baeb52eccd6f9491b53e..b8921dcefcf1a0f7be9d3e34d2f57aa491a15671 100755 (executable)
@@ -1,8 +1,9 @@
 #!/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/embedded/embedded-preclean-chroot.sh,v 1.8 2006/01/17 19:30:45 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-preclean-chroot.sh,v 1.9 2006/10/02 20:25:25 wolf31o2 Exp $
 
 . /tmp/chroot-functions.sh
 update_env_settings
+
 cleanup_distcc
index 0b00f5979b079268dd2bdb960a0fac2f252c6298..00bc0fffb02011be9e99863f52943eab5240112e 100755 (executable)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.22 2006/08/22 16:45:47 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.23 2006/10/02 20:25:25 wolf31o2 Exp $
 
 . ${clst_sharedir}/targets/support/functions.sh
 . ${clst_sharedir}/targets/support/filesystem-functions.sh
@@ -84,9 +84,8 @@ case $1 in
                ;;
        livecd-update)
                # Now, finalize and tweak the livecd fs (inside of the chroot)
-               exec_in_chroot  ${clst_sharedir}/targets/support/livecdfs-update.sh
-               
-               
+               exec_in_chroot ${clst_sharedir}/targets/support/livecdfs-update.sh
+
                # Move over the xinitrc (if applicable)
                # This is moved here, so we can override any default xinitrc
                if [ -n "${clst_livecd_xinitrc}" ]
@@ -96,7 +95,7 @@ case $1 in
                fi
                ;;
        rc-update)
-               exec_in_chroot  ${clst_sharedir}/targets/support/rc-update.sh
+               exec_in_chroot ${clst_sharedir}/targets/support/rc-update.sh
                ;;
        fsscript)
                exec_in_chroot ${clst_fsscript}
index a2a9c197e4f9b7582291b41255770c8a3b9bf707..9c5c479045c544965de5d3f337cd4432e0dad509 100644 (file)
@@ -1,7 +1,7 @@
 #!/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/netboot2/netboot2-copyfile.sh,v 1.2 2006/06/21 22:11:54 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot2/netboot2-copyfile.sh,v 1.3 2006/10/02 20:25:25 wolf31o2 Exp $
 
 . /tmp/chroot-functions.sh
 
@@ -12,7 +12,7 @@ echo ">>> Copying initramfs files to ${clst_merge_path} (in chroot) ..."
 for f in ${clst_files}
 do 
        # copy it to the merge path
-       cp -af --parents ${f} ${clst_merge_path}
+       cp -pPRf --parents ${f} ${clst_merge_path}
 
        # if the file is an ELF binary, strip unneeded stuff from it
        if [ -x "${f}" ] && [ ! -L "${f}" ]; then
index f7a6ad5ab5f1be69b51019255d2a5b8e0a6cf13b..ba6dc16451a819372ed3998f613fe5aa4f111137 100755 (executable)
@@ -1,7 +1,7 @@
 #!/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/stage4/stage4-controller.sh,v 1.12 2005/12/19 15:36:02 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.13 2006/10/02 20:25:25 wolf31o2 Exp $
 
 . ${clst_sharedir}/targets/support/functions.sh
 
@@ -25,12 +25,13 @@ case $1 in
                # If we have our own linuxrc, copy it in
                if [ -n "${clst_linuxrc}" ]
                then
-                       cp -a ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
+                       cp -pPR ${clst_linuxrc} ${clst_chroot_path}/tmp/linuxrc
                fi
                exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
                delete_from_chroot tmp/linuxrc
                extract_modules ${clst_chroot_path} ${clst_kname}
-               extract_kernel ${clst_chroot_path}/boot ${clst_kname}
+               # Do we need this one?
+#              extract_kernel ${clst_chroot_path}/boot ${clst_kname}
        ;;
        build_packages)
                shift
@@ -41,21 +42,28 @@ case $1 in
                exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-preclean-chroot.sh ${clst_root_path}
        ;;
        rc-update)
-               exec_in_chroot  ${clst_sharedir}/targets/support/rc-update.sh
+               exec_in_chroot ${clst_sharedir}/targets/support/rc-update.sh
        ;;
        fsscript)
                exec_in_chroot ${clst_fsscript}
        ;;
        livecd-update)
                # Now, finalize and tweak the livecd fs (inside of the chroot)
-               exec_in_chroot  ${clst_sharedir}/targets/support/livecdfs-update.sh
+               exec_in_chroot ${clst_sharedir}/targets/support/livecdfs-update.sh
+
+               # Move over the xinitrc (if applicable)
+               # This is moved here, so we can override any default xinitrc
+               if [ -n "${clst_livecd_xinitrc}" ]
+               then
+                       cp -f ${clst_livecd_xinitrc} \
+                               ${clst_chroot_path}/etc/X11/xinit/xinitrc
+               fi
        ;;
        bootloader)
                exit 0
        ;;
        target_image_setup)
                shift
-               #${clst_sharedir}/targets/livecd-stage2/livecd-stage2-cdfs.sh
                ${clst_sharedir}/targets/support/target_image_setup.sh $1
        ;;
        unmerge)
index b2fef2d83fdbf437c5c254114e72c881def462c1..22636eea2c05863862e2402b67a55b1c392c82f3 100755 (executable)
@@ -74,7 +74,7 @@ genkernel_compile(){
        then
                if [ "$clst_kernel_merge" != "" ]
                then
-                       genkernel --callback="PKGDIR=${PKGDIR} emerge -kb \
+                       genkernel --callback="PKGDIR=${PKGDIR} emerge -kqb \
                                ${clst_kernel_merge}" ${GK_ARGS} || exit 1
                else
                        genkernel ${GK_ARGS} || exit 1
@@ -82,7 +82,7 @@ genkernel_compile(){
        else
                if [ "$clst_kernel_merge" != "" ]
                then
-                       genkernel --callback="emerge ${clst_kernel_merge}" \
+                       genkernel --callback="emerge -q ${clst_kernel_merge}" \
                                ${GK_ARGS} || exit 1
                else
                        genkernel ${GK_ARGS} || exit 1
@@ -178,7 +178,7 @@ mkdir -p /tmp/kerncache/${clst_kname}
        
 if [ -n "${clst_KERNCACHE}" ]
 then
-       ROOT=/tmp/kerncache/${clst_kname} PKGDIR=${PKGDIR} USE="${USE} symlink build" emerge --nodeps -ukb  "${clst_ksource}" || exit 1
+       ROOT=/tmp/kerncache/${clst_kname} PKGDIR=${PKGDIR} USE="${USE} symlink build" emerge --nodeps -uqkb  "${clst_ksource}" || exit 1
        KERNELVERSION=`/usr/lib/portage/bin/portageq best_visible / "${clst_ksource}"`
        if [ ! -e /etc/portage/profile/package.provided ]
        then
index 94012f1ed22b79c456000e5a7df5872488c62fd1..53c88ce7b2541dce65a6009823ccd452ecb51344 100755 (executable)
@@ -29,14 +29,16 @@ case ${clst_target} in
                run_emerge --oneshot genkernel
                install -d /tmp/kerncache
 
-               # Set the netboot builddate/hostname in linuxrc & copy to proper arch directory in genkernel
+               # Set the netboot builddate/hostname in linuxrc and copy to proper arch
+               # directory in genkernel
                sed -e "s/@@MYDATE@@/${clst_netboot2_builddate}/g" \
                    -e "s/@@RELVER@@/${clst_version_stamp}/g" \
                        ${clst_root_path}usr/share/genkernel/netboot/linuxrc.x \
                                > ${clst_root_path}usr/share/genkernel/${clst_mainarch}/linuxrc
 
                echo ">>> Copying support files to ${clst_root_path} ..."
-               cp -af ${clst_root_path}usr/share/genkernel/netboot/misc/* ${clst_merge_path}
+               cp -pPRf ${clst_root_path}usr/share/genkernel/netboot/misc/* \
+                       ${clst_merge_path}
 
                echo ">>> Copying busybox config ..."
                cp -f ${clst_root_path}usr/share/genkernel/${clst_mainarch}/nb-busybox.cf \