diff --git a/gen_package.sh b/gen_package.sh index fc77f9c..0dae3c0 100755 --- a/gen_package.sh +++ b/gen_package.sh @@ -144,7 +144,7 @@ gen_kerncache_extract_modules() gen_kerncache_extract_config() { - if [ -e "${KERNCACHE}" ] + if [ -e "${KERNCACHE}" -a "${SAVE_CONFIG}" = '1' ] then print_info 1 'Extracting kerncache config to /etc/kernels' mkdir -p /etc/kernels