mkinitrd unification across distributions
 help / color / mirror / Atom feed
* What are the semantics of --mount option
@ 2012-04-25 21:50 Vivek Goyal
       [not found] ` <20120425215006.GA19485-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Vivek Goyal @ 2012-04-25 21:50 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, Dave Young, Cong Wang

Hi Harald,

What are the semantics of --mount option. If I call dracut with --mount
option, can I expect that resulting initramfs will mount that
filesystem (including network file system) by the time  pre-pivot hook of
a module is called?

Thanks
Vivek

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What are the semantics of --mount option
       [not found] ` <20120425215006.GA19485-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-04-26 10:01   ` Harald Hoyer
       [not found]     ` <4F991CEF.3020307-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Harald Hoyer @ 2012-04-26 10:01 UTC (permalink / raw)
  To: Vivek Goyal; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, Dave Young, Cong Wang

Am 25.04.2012 23:50, schrieb Vivek Goyal:
> Hi Harald,
> 
> What are the semantics of --mount option. If I call dracut with --mount
> option, can I expect that resulting initramfs will mount that
> filesystem (including network file system) by the time  pre-pivot hook of
> a module is called?

yes, but network setup has to be crafted on the kernel cmdline or in a
/etc/cmdline.d/*.conf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What are the semantics of --mount option
       [not found]     ` <4F991CEF.3020307-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-04-26 11:40       ` Vivek Goyal
       [not found]         ` <20120426114001.GC21447-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Vivek Goyal @ 2012-04-26 11:40 UTC (permalink / raw)
  To: Harald Hoyer; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, Dave Young, Cong Wang

On Thu, Apr 26, 2012 at 12:01:19PM +0200, Harald Hoyer wrote:
> Am 25.04.2012 23:50, schrieb Vivek Goyal:
> > Hi Harald,
> > 
> > What are the semantics of --mount option. If I call dracut with --mount
> > option, can I expect that resulting initramfs will mount that
> > filesystem (including network file system) by the time  pre-pivot hook of
> > a module is called?
> 
> yes, but network setup has to be crafted on the kernel cmdline or in a
> /etc/cmdline.d/*.conf

This is interesting. General theme of dracut seems to be that for
networking, iscsi etc, we will include relevant tools (binaries/config
files etc) but will not store the specific configuration of target and
expect the configuration either on command line (iscsiroot, netroot etc)
or in /etc/cmdline.d/*.conf.

I am confused why that's the case. I mean I can understand this for
generic initramfs. But for hostonly initramfs, don't we want to bring
up all the devices encountered in root path by default? Why a user is
supposed to specify specific iscsi, network configuration on the
command line again. dracut has access to alll this information while
traversing the device stack and should be able to store it in initramfs.

IOW, will it make sense that in hostonly mode, various modules also starting
saving associated configuration of device (as needed) and by default
try to bring up those devices on boot (in addition to honoring any
command line options passed)?

Thanks
Vivek

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What are the semantics of --mount option
       [not found]         ` <20120426114001.GC21447-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-04-26 11:54           ` Harald Hoyer
  0 siblings, 0 replies; 4+ messages in thread
From: Harald Hoyer @ 2012-04-26 11:54 UTC (permalink / raw)
  To: Vivek Goyal; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, Dave Young, Cong Wang

Am 26.04.2012 13:40, schrieb Vivek Goyal:
> On Thu, Apr 26, 2012 at 12:01:19PM +0200, Harald Hoyer wrote:
>> Am 25.04.2012 23:50, schrieb Vivek Goyal:
>>> Hi Harald,
>>>
>>> What are the semantics of --mount option. If I call dracut with --mount
>>> option, can I expect that resulting initramfs will mount that
>>> filesystem (including network file system) by the time  pre-pivot hook of
>>> a module is called?
>>
>> yes, but network setup has to be crafted on the kernel cmdline or in a
>> /etc/cmdline.d/*.conf
> 
> This is interesting. General theme of dracut seems to be that for
> networking, iscsi etc, we will include relevant tools (binaries/config
> files etc) but will not store the specific configuration of target and
> expect the configuration either on command line (iscsiroot, netroot etc)
> or in /etc/cmdline.d/*.conf.
> 
> I am confused why that's the case. I mean I can understand this for
> generic initramfs. But for hostonly initramfs, don't we want to bring
> up all the devices encountered in root path by default? Why a user is
> supposed to specify specific iscsi, network configuration on the
> command line again. dracut has access to alll this information while
> traversing the device stack and should be able to store it in initramfs.
> 
> IOW, will it make sense that in hostonly mode, various modules also starting
> saving associated configuration of device (as needed) and by default
> try to bring up those devices on boot (in addition to honoring any
> command line options passed)?
> 
> Thanks
> Vivek

Network setup and network devices have not yet been ported to host-only
self-configuration.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-26 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-25 21:50 What are the semantics of --mount option Vivek Goyal
     [not found] ` <20120425215006.GA19485-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-26 10:01   ` Harald Hoyer
     [not found]     ` <4F991CEF.3020307-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-26 11:40       ` Vivek Goyal
     [not found]         ` <20120426114001.GC21447-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-04-26 11:54           ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox