From: Chris Gianelloni Date: Thu, 21 Jun 2007 19:41:58 +0000 (+0000) Subject: Added a patch from Andrew Gaffney from bug #174188 to fix a... X-Git-Tag: v3.4.10.902~240 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50bd523a884bf9e811d70bad454043f46e7e127b;p=genkernel.git Added a patch from Andrew Gaffney from bug #174188 to fix a problem with the System.map file copying that was previously introduced. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@512 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/ChangeLog b/ChangeLog index 0d44830..13ab949 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 21 Jun 2007; Chris Gianelloni gen_package.sh: + Added a patch from Andrew Gaffney from bug #174188 to + fix a problem with the System.map file copying that was previously + introduced. + 21 Jun 2007; Chris Gianelloni genkernel.8: Added patch from Nelson Batalha from bug #172766 to add documentation for genkernel's LUKS features. diff --git a/gen_package.sh b/gen_package.sh index b2cec34..323bb7c 100644 --- a/gen_package.sh +++ b/gen_package.sh @@ -34,7 +34,12 @@ gen_minkernpackage() fi fi - cp "${TMPDIR}/System.map-${KV}" "${TEMP}/minkernpackage/System.map-${ARCH}-${KV}" || gen_die 'Could not copy System.map for the kernel package!'; + if [ "${CMD_KERNCACHE}" != "" ] + then + /bin/tar -xj -C ${TEMP}/minkernpackage -f ${CMD_KERNCACHE} System.map-${ARCH}-${KV} + else + cp "${KERNEL_DIR}/System.map" "${TEMP}/minkernpackage/System.map-${ARCH}-${KV}" || gen_die 'Could not copy System.map for the kernel package!'; + fi cd "${TEMP}/minkernpackage" /bin/tar -jcpf ${MINKERNPACKAGE} * || gen_die 'Could not compress the kernel package!'