Andreas Janssen wrote:
Hello Mart Frauenlob (<mart.frauenlob@chello.at>) wrote:What i'm trying to do: Install a custom kernel-image build with debian kernel-source and make-dpkg. I try to trimm down the kernel to hold only what is absolutely necessary. Also i try to compile directly into the kernel whatever i think of useful (performance). When i set in menuconfig to compile RAID and LVM support directly into the kernel, the 'dpkg -i' process ends with the following error message: [...] (2005.06.22.00.00) ... File descriptor 3 left open File descriptor 4 left open File descriptor 5 left open File descriptor 6 left open File descriptor 7 left open Finding all volume groups Finding volume group "vg0" /usr/sbin/mkinitrd: /dev/mapper/vg0-lv_swap: Kernel does not support LVM Failed to create initrd image.
It's a bug:#293508: initrd-tools refuses to make an initrd when lvm support is compiled in the kernel
When raid and lvm are compiled as loadable kernel modules, this does not happen.
Indeed it doesn't. Running the command mkinitrd from the command line doesn't solve it either.
My make-kpkg command is: make-kpkg --initrd --config=menuconfig --append-to-version -16-i386-smp-$(hostname) --revision $(date +'%Y.%m.%d.%H.%M') kernel_image
As Andreas suggested, if raid and lvm is compiled into the kernel and if those are the only reasons you want an initrd (because you've got raid & lvm on your systel), try it without then.
Regards, Benedict -- Benedict Verheyen Debian User http://www.heimdallitservices.be Public Key 0x712CBB8D