From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Burgess Date: Sat, 21 Jan 2012 20:21:58 +0000 Subject: Re: index_mm_open: No such file or directory Message-Id: <1327177318.1776.14.camel@kyoto.localdomain> List-Id: References: <1327176371.1776.7.camel@kyoto.localdomain> In-Reply-To: <1327176371.1776.7.camel@kyoto.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sat, 2012-01-21 at 18:09 -0200, Lucas De Marchi wrote: > Hi Matt, >=20 > On Sat, Jan 21, 2012 at 5:55 PM, Matt Burgess > wrote: > > Hi all, > > > > When running the following command... > > > > for NIC in /sys/class/net/* ; do > > INTERFACE=3D${NIC##*/} udevadm test --action=ADd $NIC > > done > > > > ... I see the following output: > > > > run_command: calling: test > > adm_test: version 178 > > builtin_kmod_init: load module index > > index_mm_open: No such file or directory >=20 > You are missing a ".bin" file at /lib/modules/$(uname -r)/. Do you > have all these 3 files below? >=20 > modules.alias.bin > modules.dep.bin > modules.symbols.bin Ah, that explains it perfectly, thanks! The exact scenario here is that I'm building udev/kmod in a chroot environment from a Fedora 16 host. Fedora is running a kernel with a module directory of /lib/modules/3.1.9-1.fc16.x86_64 but my chroot environment contains /lib/modules/3.2.1. So, while both the host and my chroot environment contain all 3 .bin files in their respective modules directories, because those directories are between the 2 environments, I see the message above. As it doesn't appear to have any impact on the functionality I'm after here, I'm happy enough to leave it as-is. I'm guessing though, that a symlink with the same name as the host's module directory to the chroot environment directory would work around the issue. Regards, Matt.