mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: nfs: install modprobe config file
Date: Wed, 11 Jul 2012 14:44:12 +0800	[thread overview]
Message-ID: <4FFD20BC.10208@redhat.com> (raw)
In-Reply-To: <jtj72b$g4h$1@dough.gmane.org>

On 07/11/2012 02:39 PM, Cong Wang wrote:

> On Wed, 11 Jul 2012 at 06:22 GMT, Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 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:


It's ok to install the /lib/modprobe.d/*.conf, but for nfs alias as I
said better to create the nfs.conf in case there's no such file..

> 
> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Thanks
Dave

  reply	other threads:[~2012-07-11  6:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11  5:08 nfs: install modprobe config file Dave Young
     [not found] ` <20120711050818.GA10940-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2012-07-11  6:22   ` Harald Hoyer
2012-07-11  6:39     ` Cong Wang
2012-07-11  6:44       ` Dave Young [this message]
     [not found]     ` <4FFD1B89.7060208-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-11  6:42       ` Dave Young
     [not found]         ` <4FFD205E.8050005-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-07-11  7:31           ` Harald Hoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFD20BC.10208@redhat.com \
    --to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox