* Q: How to add more modules when -H is specified?
@ 2011-07-29 8:57 WANG Cong
2011-07-29 9:24 ` Harald Hoyer
0 siblings, 1 reply; 3+ messages in thread
From: WANG Cong @ 2011-07-29 8:57 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Hi, dracut people,
I am not sure about the expected behaviour when I specify both
-H and --add foo (where module foo is not automatially added
by -H). It looks like with -H specified, --add foo will not
take any effect?
At least `-H --add nfs` doesn't work if my rootfs is not nfs,
I see the following check in modules.d/95nfs/module-setup.sh,
[ $hostonly ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && return 1
So, is this expected? I mean as long as I specify -H, there is
no way to add more modules? Or just the nfs check code is wrong?
Also, I am looking for a way to add all needed modules for
devices mounted in current system, as -H only adds modules
needed by rootfs.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Q: How to add more modules when -H is specified?
2011-07-29 8:57 Q: How to add more modules when -H is specified? WANG Cong
@ 2011-07-29 9:24 ` Harald Hoyer
[not found] ` <4E327C58.1000406-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Harald Hoyer @ 2011-07-29 9:24 UTC (permalink / raw)
To: WANG Cong; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On 29.07.2011 10:57, WANG Cong wrote:
>
> Hi, dracut people,
>
> I am not sure about the expected behaviour when I specify both
> -H and --add foo (where module foo is not automatially added
> by -H). It looks like with -H specified, --add foo will not
> take any effect?
>
> At least `-H --add nfs` doesn't work if my rootfs is not nfs,
> I see the following check in modules.d/95nfs/module-setup.sh,
>
> [ $hostonly ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && return 1
>
> So, is this expected? I mean as long as I specify -H, there is
> no way to add more modules? Or just the nfs check code is wrong?
Hmm, yes, currently all "add" modules also have the hostonly check.
Sometimes you want that behaviour, sometimes not..
We might want s.th. like "--force-add" for that use case.
>
> Also, I am looking for a way to add all needed modules for
> devices mounted in current system, as -H only adds modules
> needed by rootfs.
>
> Thanks!
>
Not (yet) implemented. I accept patches :-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Q: How to add more modules when -H is specified?
[not found] ` <4E327C58.1000406-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2011-07-29 9:44 ` Américo Wang
0 siblings, 0 replies; 3+ messages in thread
From: Américo Wang @ 2011-07-29 9:44 UTC (permalink / raw)
To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On Fri, Jul 29, 2011 at 5:24 PM, Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> On 29.07.2011 10:57, WANG Cong wrote:
>>
>> Hi, dracut people,
>>
>> I am not sure about the expected behaviour when I specify both
>> -H and --add foo (where module foo is not automatially added
>> by -H). It looks like with -H specified, --add foo will not
>> take any effect?
>>
>> At least `-H --add nfs` doesn't work if my rootfs is not nfs,
>> I see the following check in modules.d/95nfs/module-setup.sh,
>>
>> [ $hostonly ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && return 1
>>
>> So, is this expected? I mean as long as I specify -H, there is
>> no way to add more modules? Or just the nfs check code is wrong?
>
> Hmm, yes, currently all "add" modules also have the hostonly check.
> Sometimes you want that behaviour, sometimes not..
>
> We might want s.th. like "--force-add" for that use case.
This is exactly what comes into my mind. :-D
>
>>
>> Also, I am looking for a way to add all needed modules for
>> devices mounted in current system, as -H only adds modules
>> needed by rootfs.
>>
>> Thanks!
>>
>
> Not (yet) implemented. I accept patches :-)
>
How about add a new option, e.g. '--all-mounted'?
Anyway, I will try to make some patches.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-29 9:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29 8:57 Q: How to add more modules when -H is specified? WANG Cong
2011-07-29 9:24 ` Harald Hoyer
[not found] ` <4E327C58.1000406-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-07-29 9:44 ` Américo Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.