> Problem is: I can't use kernel module loader in linuxrc script under > initrd > environment. When I try, for example mount xfs partition I have an > error "kmod: failed to exec /sbin/modprobe -s -k xfs, errno = 2". > > I looked into sources (kernel/kmod.c/exec_usermodehelper) and > realized that kmod thread switched fs context to the init fs context > before exec modprobe (use_init_fs_context()). I think there is no > modprobe and /lib/modules/... in this context (ramdisk ?). That's why > error is occured. The shell that goes on initrd is nash (this is on RedHat systems, I don't know about others). modprobe is a symblic link to nash. The man page of nash states that if it is invoked as 'modprobe' it will just return success. So this can't be your problem. Not sure what else can cause the message. Ravi. __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/