Comment 3 for bug 1037607

Juha Erkkilä (juha-erkkila) wrote :

I can also reproduce the problem. The problem is that /proc mounts and unmounts before the kernel is installed, and the kernel package assumes /proc is mounted. Here's some log actions:

2012-10-19 15:39:55,701 DEBUG : ['chroot', '/virtualtmp/tmpPq2rS0', 'mount', '-t', 'proc', 'proc', '/proc']
2012-10-19 15:40:09,171 DEBUG : ['umount', '/virtualtmp/tmpPq2rS0/proc']
2012-10-19 15:40:19,965 DEBUG : Unpacking linux-image-3.5.0-17-generic (from .../linux-image-3.5.0-17-generic_3.5.0-17.28_i386.deb) ...

Attached is a patch that worked for me. One can also work around the issue by explicitly installing linux-image-generic at an earlier stage by providing "--addpkg linux-image-generic" option to vmbuilder.