* The kernel was being copied to kernel.old/kernel twice, once normally,
and once (after the new kernel was installed) by the module objcopy.
This left kernel.old/kernel as the new kernel instead of the old kernel.
* Fix by restricting the module copy to .ko files.
modules-install: kernel-installable
.if !defined(NO_MODULES_OLD)
. ifdef NO_KERNEL_OLD_STRIP
- set -- ${DESTDIR}${DESTKERNDIR}/*; \
+ set -- ${DESTDIR}${DESTKERNDIR}/*.ko; \
if [ -f "$$1" ]; then \
if [ -f ${DESTDIR}${DESTKERNDIR}.old ]; then \
rm -f ${DESTDIR}${DESTKERNDIR}.old; \
done; \
fi
. else
- set -- ${DESTDIR}${DESTKERNDIR}/*; \
+ set -- ${DESTDIR}${DESTKERNDIR}/*.ko; \
if [ -f "$$1" ]; then \
if [ -f ${DESTDIR}${DESTKERNDIR}.old ]; then \
rm -f ${DESTDIR}${DESTKERNDIR}.old; \