kmod & initrd

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

 



Hello,

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.

I don't understand how it is possible at all to autoload modules in
initrd scripts. Could anybody explain me if I understand something
wrong or missed something ?

-- 
Best regards,
Ed V. Bartosh
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux