LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Recompiling Kernel 2.6.32 : inittramfs-tools fail (https://www.linuxquestions.org/questions/debian-26/recompiling-kernel-2-6-32-inittramfs-tools-fail-908564/)

~ganga~ 10-17-2011 06:48 AM

Recompiling Kernel 2.6.32 : inittramfs-tools fail
 
Hi,

I am trying to recompile my kernel to include the TUN/TAP module to setup OpenVPN but in the dpkg -i the ouput tail is the following

Quote:

Setting up linux-image-2.6.32 (custom.001) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32 /boot/vmlinuz
update-initramfs: Generating /boot/initrd.img-2.6.32
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-2.6.32
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.3
dpkg: error processing linux-image-2.6.32 (--configure):
subprocess installed post-installation script
returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.32-custom
linux-image-2.6.32


my actual kernel is ( allocated on a VPS ) :

Quote:

root@danielpedraza:~/newkernel# uname -r
2.6.32-4-pve
Any suggestion about what could be the problem?

cynwulf 10-17-2011 08:46 AM

What distro and release are you running?

~ganga~ 10-17-2011 01:32 PM

I am running Debian 6 on a VPS
Code:

root@danielpedraza:~# cat /etc/issue
Debian GNU/Linux 6.0 \n \l


hen770 10-17-2011 01:45 PM

When in the proccess of the recompile you need the dpkg command ?

~ganga~ 10-18-2011 03:10 AM

This is the guidelines I follow to compile a kernel

http://www.debianadmin.com/step-by-s...5-0-lenny.html

cynwulf 10-18-2011 04:41 AM

Quote:

Originally Posted by hen770 (Post 4500742)
When in the proccess of the recompile you need the dpkg command ?

The OP has built a .deb for kernel installation. The install of the binary is failing, not the compile.

Something in the package post-installation script is failing, it may be having trouble adding a line into the bootloader script.

What is the output of

Code:

update-grub
Also after doing that try

Code:

dpkg --configure -a


All times are GMT -5. The time now is 08:06 PM.