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