----- Original Message ----- From: Chris Monkiewicz To: [email protected] Sent: Thursday, June 18, 2009 5:08 AM Subject: Modules.dep Paths
> I'm having a problem with modprobe and modules.dep. Depmod on Ubuntu 9.04 generates > modules.dep with relative paths. This seems to be the new behavior of mod-init-tools. We're > using busybox 1.12.1 which expects modules.dep to have absolute paths. Do newer versions of > busybox expect absolute or relative paths? Short of writing a script to munge modules.dep is > there another solution? > > Chris > That's still absolute path. I haven't try to play with bb CONFIG_DEFAULT_MODULES_DIR="/lib/modules" Maybe that could help setting that to "/lib/modules/2.6.x/"? I haven't tried. There is other solutions first a depmod.pl script in examples directory that generate a modules.dep in case you compile from a different arch and can't run depmod. It has been recently updated post 1.14.1 but the patch does not appear in 1.14.1 patches list. http://git.busybox.net/busybox/commit/?h=1_14_stable&id=77508d70bfa9c50477479af176ff41e9443d4f67 I may have seen other issues mixing modules.dep generated by m-i-t depmod and using that on busybox initramfs. I don't remember exactly the case, probably using bb 1.13. There has been a lot of changes in bb modutils area and upgrading bb should be considered. I have solved my needs by using bb depmod to generate the file used by bb modprobe inside a chroot or outside chroot $(INITRAMFS_DIR) /bin/depmod -a $(KVER) $(INITRAMFS_DIR)/bin/depmod -a $(KVER) -b /$(INSTALLER_DIR)/mini-initramfs Gilles _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
