From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Subject: Re: [PATCH v2 2/2] network: add static route support Date: Wed, 04 Jun 2014 13:38:47 +0200 Message-ID: <538F0547.7060804@redhat.com> References: <1398678111-13601-1-git-send-email-bhe@redhat.com> <1398678111-13601-2-git-send-email-bhe@redhat.com> <20140505071214.GA24097@dhcp-16-116.nay.redhat.com> <20140522073359.GD1859@darkstar.nay.redhat.com> <20140527062512.GA1951@dhcp-16-116.nay.redhat.com> <20140529062059.GH2068@darkstar.nay.redhat.com> <20140604062516.GE2194@darkstar.nay.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140604062516.GE2194-4/PLUo9XfK+sDdueE5tM26fLeoKvNuZc@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Dave Young , Baoquan He Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, mmilgram-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org On 04.06.2014 08:25, Dave Young wrote: > On 05/29/14 at 02:20pm, Dave Young wrote: >> On 05/27/14 at 02:25pm, Baoquan He wrote: >>> On 05/22/14 at 03:33pm, Dave Young wrote: >>>> On 05/05/14 at 03:12pm, Baoquan He wrote: >>> >>>> Hi, Baoquan >>>> >>>> The route-$netif is supposed in 1st kernel filesystem. Can we passing the >>>> detail ip/netmask/gw for specific nic in kernel cmdline instead of copy >>>> the route file in initramfs? In that way we can avoid this dracut fix. >>>> >>>> I'm not sure if it works for the complicate route setup though. >>> >>> I am not sure, it had better handle the route during setup net. I want >>> to hear what Harald will say. He is more familiar with this. >> >> Ok, the route table item must be a line like "192.168.100.1 via 127.0.0.1 dev lo metric 203" >> >> If passing them via cmdline we need quote it with some special character and append >> it to the ip= cmdline param >> >> The other way is copy the route file to /etc/ in initramfs like you are doing. >> But we did need the functions to handle the static route. >> >> So leave to Harald about the interface. > > Harald, what do you prefer to passing static route item to initramfs? > Do you have beeter idea in mind? > > Thanks > Dave > Actually, I would like to parse systemd-networkd like config files. As we will integrate systemd-networkd as a replacement for our shell script mess in the future, I think it might make more sense not to introduce another format, which will be obsoleted. http://www.freedesktop.org/software/systemd/man/systemd.network.html What do you think?