kerncache wasnt sending the config to /etc/kernels properly
authorEric Edgar <rocket@gentoo.org>
Mon, 1 Aug 2005 13:21:26 +0000 (13:21 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 1 Aug 2005 13:21:26 +0000 (13:21 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@296 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_package.sh
genkernel

index 5d1d4a819ad64899b238442e8f9850548520de64..f6391bde4bb33bbc883fda7e6d2ba611caf31621 100644 (file)
@@ -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
index 6eda2bbe7b0f5fd014541b59c5af4a0db46ba0e1..5687929aafd10c983682fb85bfff81039f24e013 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -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