A working workaround (tested) would be to check for the kernel existence, something like:
if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then # This can fail when dealing with a chroot see LP: #556653 if [ -e /boot/config-$CURRENT_KERNEL ]; then update-initramfs -u -k $CURRENT_KERNEL || true fi fi Ideally package should use KVERS and KVERSION within the environment wrt kernel modules. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/556653 Title: build fails in chrooted system -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs