Make sure we don't give genkernel a --kernel-config if it isn't set in the spec.
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 5 Mar 2008 21:44:28 +0000 (21:44 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 5 Mar 2008 21:44:28 +0000 (21:44 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1362 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/support/kmerge.sh

index 46882956e9385b8ccb9fb7021b69f555396654cb..c5d73a911815cd68c1660aff1332dc39c3967829 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  05 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/support/kmerge.sh:
+  Make sure we don't give genkernel a --kernel-config if it isn't set in the
+  spec.
+
   05 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
   modules/generic_stage_target.py, targets/support/kmerge.sh,
   targets/support/pre-kmerge.sh:
index d844d7e3757007427e65362d8e51e4d210871888..67a41a028051f26c8cd8b1e2ce8623627d22d4d3 100755 (executable)
@@ -14,7 +14,6 @@ setup_gk_args() {
                         --cachedir=/tmp/kerncache/${clst_kname}-genkernel_cache-${clst_version_stamp} \
                         --no-mountboot \
                         --kerneldir=/usr/src/linux \
-                        --kernel-config=/var/tmp/${clst_kname}.config \
                         --modulespackage=/tmp/kerncache/${clst_kname}-modules-${clst_version_stamp}.tar.bz2 \
                         --minkernpackage=/tmp/kerncache/${clst_kname}-kernel-initrd-${clst_version_stamp}.tar.bz2 all"
        # extra genkernel options that we have to test for
@@ -22,6 +21,10 @@ setup_gk_args() {
        then
                GK_ARGS="${GK_ARGS} --kerncache=/tmp/kerncache/${clst_kname}-kerncache-${clst_version_stamp}.tar.bz2"
        fi
+       if [ -e /var/tmp/${clst_kname}.config ]
+       then
+               GK_ARGS="${GK_ARGS} --kernel-config=/var/tmp/${clst_kname}.config"
+       fi
 
        if [ -n "${clst_splash_theme}" ]
        then