git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@296
67a159dc-881f-0410-a524-
ba9dfbe2cb84
fi
}
+gen_kerncache_extract_config()
+{
+ if [ -e "${KERNCACHE}" ]
+ then
+ print_info 1 'Extracting kerncache config to /etc/kernels'
+ mkdir -p /etc/kernels
+ /bin/tar -xjf ${KERNCACHE} -C /etc/kernels config-${ARCH}-${KV}
+ mv /etc/kernels/config-${ARCH}-${KV} /etc/kernels/kernel-config-${ARCH}-${KV}
+ fi
+}
+
gen_kerncache_is_valid()
{
KERNCACHE_IS_VALID=0
if [ "${KERNCACHE}" != "" -a "${KERNCACHE_IS_VALID}" != "0" ]
then
gen_kerncache_extract_modules
+ gen_kerncache_extract_config
fi
+
# Run callback
if [ "${CMD_CALLBACK}" != "" ]
then