@ -68,6 +68,7 @@ gen_kerncache()
cd " ${ KERNEL_DIR } "
cd " ${ KERNEL_DIR } "
cp " ${ KERNEL_BINARY } " " ${ TEMP } /kerncache/kernel- ${ ARCH } - ${ KV } " || gen_die 'Could not the copy kernel for the kernel package!'
cp " ${ KERNEL_BINARY } " " ${ TEMP } /kerncache/kernel- ${ ARCH } - ${ KV } " || gen_die 'Could not the copy kernel for the kernel package!'
cp " ${ KERNEL_DIR } /.config " " ${ TEMP } /kerncache/config- ${ ARCH } - ${ KV } "
cp " ${ KERNEL_DIR } /.config " " ${ TEMP } /kerncache/config- ${ ARCH } - ${ KV } "
cp " ${ KERNEL_CONFIG } " " ${ TEMP } /kerncache/config- ${ ARCH } - ${ KV } "
cp " ${ KERNEL_DIR } /System.map " " ${ TEMP } /kerncache/System.map- ${ ARCH } - ${ KV } "
cp " ${ KERNEL_DIR } /System.map " " ${ TEMP } /kerncache/System.map- ${ ARCH } - ${ KV } "
if isTrue " ${ GENZIMAGE } "
if isTrue " ${ GENZIMAGE } "
then
then
@ -163,7 +164,12 @@ gen_kerncache_is_valid()
if [ -e ${ TEMP } /config-${ ARCH } -${ KV } -a -e ${ KERNEL_CONFIG } ]
if [ -e ${ TEMP } /config-${ ARCH } -${ KV } -a -e ${ KERNEL_CONFIG } ]
then
then
test1 = $( grep -v "^#" ${ TEMP } /config-${ ARCH } -${ KV } | md5sum | cut -d " " -f 1)
if [ -e ${ TEMP } /config-${ ARCH } -${ KV } .orig ]
then
test1 = $( grep -v "^#" ${ TEMP } /config-${ ARCH } -${ KV } .orig | md5sum | cut -d " " -f 1)
else
test1 = $( grep -v "^#" ${ TEMP } /config-${ ARCH } -${ KV } | md5sum | cut -d " " -f 1)
fi
test2 = $( grep -v "^#" ${ KERNEL_CONFIG } | md5sum | cut -d " " -f 1)
test2 = $( grep -v "^#" ${ KERNEL_CONFIG } | md5sum | cut -d " " -f 1)
if [ " ${ test1 } " = = " ${ test2 } " ]
if [ " ${ test1 } " = = " ${ test2 } " ]
then
then