When I run 'make install' to install kernel, it fails with the following error: # make install make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h Kernel: arch/i386/boot/bzImage is ready sh /usr/src/linux-2.6.8.1-virtuozzo/arch/i386/boot/install.sh 2.6.8-022test023-up arch/i386/boot/bzImage System.map "/boot" /sbin/installkernel: line 60: mkboot: command not found make[1]: *** [install] Error 127 make: *** [install] Error 2 The problem is I used 'sudo -s' to become root, thus my $PATH does not contain /sbin and /usr/sbin entries, and mkboot in installed to /usr/sbin: Thus, I believe, it is needed to patch /sbin/installkernel in order for it to call mkboot with the full path, e.g. the last line of /sbin/installkernel should look like this: /usr/sbin/mkboot -i ${dir}/${img}-${ver}
Alternative (and much less appealing to me) way to fix it is to add PATH=$PATH:/sbin:/usr/sbin somewhere at the beginning of /sbin/installkernel script (the same way as /usr/sbin/mkboot does).
since we dont patch debianutils but take it directly from Debian this should be e-mailed to their bug tracker