kerncache wasnt sending the config to /etc/kernels properly

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@296 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Eric Edgar 20 years ago
parent 98d2144285
commit 9a9a312a63

@ -106,6 +106,17 @@ gen_kerncache_extract_modules()
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

@ -242,8 +242,10 @@ fi
if [ "${KERNCACHE}" != "" -a "${KERNCACHE_IS_VALID}" != "0" ]
then
gen_kerncache_extract_modules
gen_kerncache_extract_config
fi
# Run callback
if [ "${CMD_CALLBACK}" != "" ]
then

Loading…
Cancel
Save