From 9a9a312a634e60837bb9f1db2d086becaa885f2d Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Mon, 1 Aug 2005 13:21:26 +0000 Subject: [PATCH] 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 --- gen_package.sh | 11 +++++++++++ genkernel | 2 ++ 2 files changed, 13 insertions(+) diff --git a/gen_package.sh b/gen_package.sh index 5d1d4a8..f6391bd 100644 --- a/gen_package.sh +++ b/gen_package.sh @@ -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 diff --git a/genkernel b/genkernel index 6eda2bb..5687929 100755 --- 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 -- 2.26.2