From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH 2/7] auto setup network without netroot
Date: Mon, 06 Feb 2012 15:51:02 +0800 [thread overview]
Message-ID: <4F2F8666.50907@redhat.com> (raw)
In-Reply-To: <1328510722.10153.13.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
On 02/06/2012 02:45 PM, David Dillow wrote:
> On Thu, 2012-02-02 at 15:59 +0800, Dave Young wrote:
>> Current dracut network only will be setup when netroot is used. But there are
>> some cases we need network even without netroot. For example kdump will need
>> copy vmcore to remote machine via scp or nfs mount. OTOH, if we use dracut as
>> a recovery system the network is helpful even root is not a network device.
>>
>> This implementation is based on the manually bring up method. Here add a kernel
>> cmdline argument rd.neednet. If rd.neednet is set dracut will bring up network
>> with ifup $INTERFACE -m. If netroot is used we still keep original behavior.
>
> I'm sorry to keep pitching comments over the fence and running off, but
> $DAYJOB is keeping me busy these days.
No problem, comments are always welcome.
>
> As one of the guys behind the netroot code -- though it's been a long
> while since I've been active on it -- I think you're trying to bandaid
> your needs on top of it, when restructuring is probably needed. We
> didn't really consider other modules needing network access before the
> root is mounted, so there is a bit of melding of the steps.
Seems only I think about using network in shell with rdbreak=cmdline,
>
> I think you'd have a much cleaner solution splitting out the
> configuration of the network from the network root handling.
I agree this is the better solution.
> Both
> netroot and kdump could then signal that they need network services, and
> you could handle it as it is now -- use ip= if available, fall back to
> dhcp. If no NIC is specified, we try all of them until we can talk to
> our {root,kdump} server. Cong Wang is correct, I seen no reason to add
> new command line arguments.
I think the key problem is the network setup code split. I would not
insist on this although I don't like that we must add ip= to have
network setup
>
> It's been years since I've really been involved, so I suspect the
> netroot code is due for a cleanup anyway.
--
Thanks
Dave
next prev parent reply other threads:[~2012-02-06 7:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 7:59 [PATCH 2/7] auto setup network without netroot Dave Young
[not found] ` <20120202075952.GA12412-4/PLUo9XfK+sDdueE5tM26fLeoKvNuZc@public.gmane.org>
2012-02-06 6:45 ` David Dillow
[not found] ` <1328510722.10153.13.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-02-06 7:51 ` Dave Young [this message]
[not found] ` <4F2F8666.50907-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-02-06 7:53 ` Cong Wang
[not found] ` <4F2F86F6.5010007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-02-06 8:43 ` Dave Young
[not found] ` <4F2F92CB.1000804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-02-06 13:21 ` David Dillow
[not found] ` <1328534517.10153.20.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2012-02-07 1:50 ` Dave Young
2012-02-07 11:15 ` 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=4F2F8666.50907@redhat.com \
--to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
--cc=harald-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