[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#518412: initramfs-tools: must support relative paths in modules.dep



thanks for quick feedback.

On Thu, Mar 19, 2009 at 05:15:06PM +0100, Frans Pop wrote:
> 
> You have to build a kernel from source while having the new m-i-t installed.
> And then install that kernel *without* running depmod (which is currently
> also not done by i-t).

well linux-2.6 images postinst and even k-p do this,
so this quite arguiably a bug in make deb-pkg.

> If you do run an extra depmod manually before calling i-t the problem will
> have fixed itself because depmod is then called differently than during the
> kernel build.
> 
> I saw this issue after installing a kernel built from upstream source using
> 'fakeroot make deb-pkg' (i.e. without using kernel-package or anything).
> With the stable version of m-i-t kernels built that way install perfectly
> (using custom hook scripts to create the initrd and update grub etc.).
> 
> You can probably also reproduce it by running the following sequence of
> commands, which should emulate the way the upstream kernel Makefile calls
> depmod (using any kernel version you have installed for <kvers>):
> # kvers=<kvers>
> # mkdir -p /tmp/lib/modules
> # cp -r /lib/modules/$kvers /tmp/lib/modules/
> # rm /tmp/lib/modules/$kvers/modules.*
> # depmod -ae -F /boot/System.map-$kvers -b /tmp/ -r $kvers
> 
> The file /tmp/lib/modules/<kvers>/modules.dep should then show the problem.

copied over that file and saw still no sign of a trouble:
mkinitramfs -v -o /tmp/foo | head -n 12
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/usb/host/ehci-hcd.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/usb/host/ohci-hcd.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/usb/host/uhci-hcd.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/usbhid/usbhid.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-a4tech.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-apple.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-belkin.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-cherry.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-chicony.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-cypress.ko
Adding module /lib/modules/2.6.29-rc8-amd64/kernel/drivers/hid/hid-ezkey.ko

testbooted fine in qemu.



Reply to: