Re: nfs: install modprobe config file

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

 



On Wed, 11 Jul 2012 at 06:22 GMT, Harald Hoyer <harald@xxxxxxxxxx> wrote:
>
> Hmm... that modprobe.d conf file should have been already copied to the initramfs:
>
> modules.d/90kernel-modules/module-setup.sh:    dracut_install $(find -L
> /etc/modprobe.d/ -maxdepth 1 -type f -name '*.conf')
>
> Oh.. I see ... it's /lib/modprobe.d and not /etc/modprobe.d

Yeah, should consider /lib/modprobe.d as well:

diff --git a/modules.d/90kernel-modules/module-setup.sh
b/modules.d/90kernel-modules/module-setup.sh
index 8822fa7..a9b9637 100755
--- a/modules.d/90kernel-modules/module-setup.sh
+++ b/modules.d/90kernel-modules/module-setup.sh
@@ -78,6 +78,7 @@ install() {
     local _f i
     [ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
     dracut_install $(find -L /etc/modprobe.d/ -maxdepth 1 -type f -name '*.conf')
+    [ -d /lib/modprobe.d ] && dracut_install $(find -L /lib/modprobe.d/ -maxdepth 1 -type f -name '*.conf')
     inst_hook cmdline 01 "$moddir/parse-kernel.sh"
     inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
}
	   

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux