* [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
@ 2011-11-11 21:53 William Hubbs
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: William Hubbs @ 2011-11-11 21:53 UTC (permalink / raw
To: gentoo development
[-- Attachment #1: Type: text/plain, Size: 966 bytes --]
Hi all,
http://bugs.gentoo.org/show_bug.cgi?id=389437
has prompted a discussion of whether or not we should use ifconfig in
openrc to configure networking on linux systems.
I'm not asking that we consider removing net-tools from systems, because
there are tools there that we still need. In my view though, two of
these tools (ifconfig and route), have been surpassed in functionality
by iproute2's ip tool. So, what I am considering doing is dropping the
ifconfig module from openrc and using iproute2 for all network
configuration on linux systems.
The other side of the discussion seems to be that openrc needs to work
on minimal installations, so we need to continue supporting using ifconfig.
I realize there would be a trade-off if I stop supporting linux's
ifconfig and route in openrc, but how much of a trade-off? Would the
benefits of iproute2 outweigh the down side of not supporting ifconfig
and route on linux?
What does everyone think?
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 21:53 [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux William Hubbs
@ 2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:10 ` Matt Thode
` (2 more replies)
2011-11-12 6:25 ` Joshua Saddler
2011-11-13 4:50 ` Mike Frysinger
2 siblings, 3 replies; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-11 22:01 UTC (permalink / raw
To: gentoo-dev
William Hubbs schrieb:
> I realize there would be a trade-off if I stop supporting linux's
> ifconfig and route in openrc, but how much of a trade-off? Would the
> benefits of iproute2 outweigh the down side of not supporting ifconfig
> and route on linux?
>
> What does everyone think?
+1
Do you need iproute2 at all? I think you could fall back to busybox if
iproute2 is not installed.
While you are at it, please also switch from wireless-tools to iw :)
https://bugs.gentoo.org/show_bug.cgi?id=261655
Best regards,
Chí-Thanh Christopher Nguyễn
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-11 22:10 ` Matt Thode
2011-11-11 22:16 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:26 ` William Hubbs
2011-11-11 22:11 ` William Hubbs
2011-11-13 4:50 ` Mike Frysinger
2 siblings, 2 replies; 20+ messages in thread
From: Matt Thode @ 2011-11-11 22:10 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
On Nov 11, 2011, at 4:01 PM, Chí-Thanh Christopher Nguyễn wrote:
> William Hubbs schrieb:
>> I realize there would be a trade-off if I stop supporting linux's
>> ifconfig and route in openrc, but how much of a trade-off? Would the
>> benefits of iproute2 outweigh the down side of not supporting ifconfig
>> and route on linux?
>>
>> What does everyone think?
>
> +1
> Do you need iproute2 at all? I think you could fall back to busybox if
> iproute2 is not installed.
>
> While you are at it, please also switch from wireless-tools to iw :)
> https://bugs.gentoo.org/show_bug.cgi?id=261655
>
>
> Best regards,
> Chí-Thanh Christopher Nguyễn
>
I think that we should be using the new tools by now, it's been in development for the last ten years. There would have to be some sort of migration path for people to use though.
-- Matthew Thode
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 881 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 22:10 ` Matt Thode
@ 2011-11-11 22:16 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:26 ` William Hubbs
1 sibling, 0 replies; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-11 22:16 UTC (permalink / raw
To: gentoo-dev
Matt Thode schrieb:
> I think that we should be using the new tools by now, it's been in development for the last ten years. There would have to be some sort of migration path for people to use though.
Those people can continue using the tools they like, what openrc calls
is not visible to the user.
Removing/replacing references to the old tools from Gentoo documentation
would be something worth considering though.
Best regards,
Chí-Thanh Christopher Nguyễn
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 22:10 ` Matt Thode
2011-11-11 22:16 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-11 22:26 ` William Hubbs
1 sibling, 0 replies; 20+ messages in thread
From: William Hubbs @ 2011-11-11 22:26 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 909 bytes --]
On Fri, Nov 11, 2011 at 04:10:50PM -0600, Matt Thode wrote:
> I think that we should be using the new tools by now, it's been in development for the last ten years. There would have to be some sort of migration path for people to use though.
If you have iproute2 installed, and you do not have a line like the
following in your /etc/conf.d/net file:
modules="!ifconfig"
or
modules_ifname="!ifconfig"
you are already using iproute2 to configure your routes and static
addresses, so the only thing that would need to change, and this doesn't
have to happen now, is that you would have to change over to using cidr
addresses,, for example:
config_ethx="x.x.x.x/24"
instead of
config_ifname="x.x.x.x netmask 255.255.255.0"
But, because of the way the network scripts are written, this is a
separate issue from dropping support for ifconfig, so it could be
handled with a migration path later.
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:10 ` Matt Thode
@ 2011-11-11 22:11 ` William Hubbs
2011-11-13 4:50 ` Mike Frysinger
2 siblings, 0 replies; 20+ messages in thread
From: William Hubbs @ 2011-11-11 22:11 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 907 bytes --]
On Fri, Nov 11, 2011 at 11:01:43PM +0100, Chí-Thanh Christopher Nguyễn wrote:
> William Hubbs schrieb:
> > I realize there would be a trade-off if I stop supporting linux's
> > ifconfig and route in openrc, but how much of a trade-off? Would the
> > benefits of iproute2 outweigh the down side of not supporting ifconfig
> > and route on linux?
> >
> > What does everyone think?
>
> +1
> Do you need iproute2 at all? I think you could fall back to busybox if
> iproute2 is not installed.
I haven't looked at busybox that much yet, but I know that ip is part
of it, so that may be a possibility.
> While you are at it, please also switch from wireless-tools to iw :)
> https://bugs.gentoo.org/show_bug.cgi?id=261655
Yeah I know about that bug. :-) I want to get 0.9.5 out the door and
make that a stable candidate, then after that, I will look into both of
these.
William
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:10 ` Matt Thode
2011-11-11 22:11 ` William Hubbs
@ 2011-11-13 4:50 ` Mike Frysinger
2 siblings, 0 replies; 20+ messages in thread
From: Mike Frysinger @ 2011-11-13 4:50 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 321 bytes --]
On Friday 11 November 2011 17:01:43 Chí-Thanh Christopher Nguyễn wrote:
> Do you need iproute2 at all? I think you could fall back to busybox if
> iproute2 is not installed.
that introduces an unnecessary level of instability for us to worry about imo.
if we want iproute, we should execute `ip` only.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 21:53 [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux William Hubbs
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-12 6:25 ` Joshua Saddler
2011-11-13 1:26 ` Chí-Thanh Christopher Nguyễn
2011-11-13 4:50 ` Mike Frysinger
2 siblings, 1 reply; 20+ messages in thread
From: Joshua Saddler @ 2011-11-12 6:25 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1827 bytes --]
On Fri, 11 Nov 2011 15:53:44 -0600
William Hubbs <williamh@gentoo.org> wrote:
> Hi all,
>
> http://bugs.gentoo.org/show_bug.cgi?id=389437
>
> has prompted a discussion of whether or not we should use ifconfig
> in openrc to configure networking on linux systems.
>
> I'm not asking that we consider removing net-tools from systems,
> because there are tools there that we still need. In my view
> though, two of these tools (ifconfig and route), have been
> surpassed in functionality by iproute2's ip tool. So, what I am
> considering doing is dropping the ifconfig module from openrc and
> using iproute2 for all network configuration on linux systems.
>
> The other side of the discussion seems to be that openrc needs to
> work on minimal installations, so we need to continue supporting
> using ifconfig.
>
> I realize there would be a trade-off if I stop supporting linux's
> ifconfig and route in openrc, but how much of a trade-off? Would the
> benefits of iproute2 outweigh the down side of not supporting
> ifconfig and route on linux?
>
> What does everyone think?
>
> William
>
i'm in favor of whatever doesn't force me and our users to install
Yet Another Tool besides what's in the system set, and whatever
doesn't result in a LOT of work for the GDP to update all of our
documentation. there are dozens of places in all the docs that refer
to ifconfig and the other utilities installed with
sys-apps/net-tools.
i'd really prefer it if i didn't have to learn a whole new set of
tools & syntax, and then had to rewrite all of our docs for them.
ifconfig and net-tools work as-is; i've yet to see a compelling case
for installing & learning iproute.
if net-tools isn't being dropped from the system set, don't force our
users to install redundant utilities.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-12 6:25 ` Joshua Saddler
@ 2011-11-13 1:26 ` Chí-Thanh Christopher Nguyễn
2011-11-13 4:47 ` Mike Frysinger
0 siblings, 1 reply; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-13 1:26 UTC (permalink / raw
To: gentoo-dev
Joshua Saddler schrieb:
> if net-tools isn't being dropped from the system set, don't force our
> users to install redundant utilities.
ip is not redundant. You need it for e.g. GRE tunnels.
net-tools uses the old /proc/net/dev interface, while iproute uses
netlink. This is very much like wireless extensions vs. cfg80211, where
the old interface is still around for legacy compatibility but won't
receive updates for new features. Eventually, you want to get rid of all
/proc/net/dev and wext stuff in order to have a legacy-free system.
I would be very much in favour of not installing net-tools by default as
soon as openrc switches to iproute. However I think this would make many
users unhappy so has to be carefully prepared and users educated first.
Debian has set this goal in 2007[1] and they have not reached it yet.
Best regards,
Chí-Thanh Christopher Nguyễn
[1] http://lists.debian.org/debian-user/2007/07/msg01113.html
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 1:26 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-13 4:47 ` Mike Frysinger
2011-11-13 15:16 ` Chí-Thanh Christopher Nguyễn
0 siblings, 1 reply; 20+ messages in thread
From: Mike Frysinger @ 2011-11-13 4:47 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1518 bytes --]
On Saturday 12 November 2011 20:26:54 Chí-Thanh Christopher Nguyễn wrote:
> Joshua Saddler schrieb:
> > if net-tools isn't being dropped from the system set, don't force our
> > users to install redundant utilities.
>
> ip is not redundant. You need it for e.g. GRE tunnels.
for basic setups, it is completely redundant. which is the only case we're
talking about here.
> net-tools uses the old /proc/net/dev interface, while iproute uses
> netlink. This is very much like wireless extensions vs. cfg80211, where
> the old interface is still around for legacy compatibility but won't
> receive updates for new features. Eventually, you want to get rid of all
> /proc/net/dev and wext stuff in order to have a legacy-free system.
considering the tools work fine for the use cases we're talking about, and
there are no plans i know of to ever have these interfaces go away, and there
are no significant (or any at all?) efforts to replace all of net-tools.
> I would be very much in favour of not installing net-tools by default as
> soon as openrc switches to iproute. However I think this would make many
> users unhappy so has to be carefully prepared and users educated first.
> Debian has set this goal in 2007[1] and they have not reached it yet.
you keep saying "net-tools" when you actually mean "ifconfig". the net-tools
package provides quite a bit more than the common ifconfig/route/iptunnel tools
which ip replaces and for which there are no replacements.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 4:47 ` Mike Frysinger
@ 2011-11-13 15:16 ` Chí-Thanh Christopher Nguyễn
2011-11-13 17:24 ` Mike Frysinger
0 siblings, 1 reply; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-13 15:16 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger schrieb:
> for basic setups, it is completely redundant. which is the only case we're
> talking about here.
[...]
> you keep saying "net-tools" when you actually mean "ifconfig". the net-tools
> package provides quite a bit more than the common ifconfig/route/iptunnel tools
> which ip replaces and for which there are no replacements.
If we talk about basic setups, then iproute2 provides everything too. If
for some reason the user prefers to use ifconfig over ip, or needs
functions not covered by iproute2 (are you referring to netstat?), then
he can install net-tools.
There is indeed no compelling reason to use ip over ifconfig presently,
however if the cf80211 vs. wext situation is an indicator (where things
like wireless regulatory support are only supported by iw and will never
be by iwconfig), then at some point the migration will be inevitable.
>> Do you need iproute2 at all? I think you could fall back to busybox if
>> iproute2 is not installed.
> that introduces an unnecessary level of instability for us to worry
about imo.
> if we want iproute, we should execute `ip` only.
It was only meant as a fallback, if the user needs to uninstall
iproute2. Having some potential instability may be preferable to not
working at all.
openrc can already use busybox udhcpc instead of dhcpcd, so there is a
precedent.
Best regards,
Chí-Thanh Christopher Nguyễn
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 15:16 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-13 17:24 ` Mike Frysinger
2011-11-13 18:04 ` Chí-Thanh Christopher Nguyễn
0 siblings, 1 reply; 20+ messages in thread
From: Mike Frysinger @ 2011-11-13 17:24 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 3105 bytes --]
On Sunday 13 November 2011 10:16:31 Chí-Thanh Christopher Nguyễn wrote:
> Mike Frysinger schrieb:
> > for basic setups, it is completely redundant. which is the only case
> > we're talking about here.
> [...]
> > you keep saying "net-tools" when you actually mean "ifconfig". the
> > net-tools package provides quite a bit more than the common
> > ifconfig/route/iptunnel tools which ip replaces and for which there are
> > no replacements.
>
> If we talk about basic setups, then iproute2 provides everything too.
no one said otherwise. i did however say requiring iproute2 for static
ip/route setups is redundant. i see you agree.
> for some reason the user prefers to use ifconfig over ip, or needs
> functions not covered by iproute2 (are you referring to netstat?), then
> he can install net-tools.
we aren't talking about removing net-tools from system. until we have
replacement for all of its tools, it's always going to be there. the
host/domain related tools are required by openrc to set/get the
hostname/etc... i don't think splitting it makes sense as we're talking about
a package here that takes up less than 2MiB in total.
netstat should be replaced by iproute2's ss tool.
i'd also suspect that many scripts (packages/users) execute ifconfig to get
network information. obviously hard to quantify, but that's what you get for
having a util that has existed for ~30 years, and for ~20 years more than
iproute2.
> There is indeed no compelling reason to use ip over ifconfig presently,
> however if the cf80211 vs. wext situation is an indicator (where things
> like wireless regulatory support are only supported by iw and will never
> be by iwconfig), then at some point the migration will be inevitable.
funny thing about this analogy:
- ifconfig/ip long existed before the wireless tree ... while the latter
has moved on, the former still exists
- the wireless tools did not have years of built up logic around ifconfig
> >> Do you need iproute2 at all? I think you could fall back to busybox if
> >> iproute2 is not installed.
> >
> > that introduces an unnecessary level of instability for us to worry
> > about imo. if we want iproute, we should execute `ip` only.
>
> It was only meant as a fallback, if the user needs to uninstall
> iproute2. Having some potential instability may be preferable to not
> working at all.
... which is why we have the ifconfig module
> openrc can already use busybox udhcpc instead of dhcpcd, so there is a
> precedent.
that's not the same thing at all. `udhcpc` is not intended to be a drop-in
replacement for `dhcpcd`. we have a dedicated module to work with udhcpc, and
we have another dedicated module to work with dhcpcd.
to be clear, my problem is with dropping the ifconfig module completely. i
don't have a problem with requiring iproute2 for more complicated things, or
even for making it part of the Linux system set. but these are orthogonal
issues imo to the question "should openrc contain support for ifconfig/route".
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 17:24 ` Mike Frysinger
@ 2011-11-13 18:04 ` Chí-Thanh Christopher Nguyễn
2011-11-13 18:33 ` Mike Frysinger
0 siblings, 1 reply; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-13 18:04 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger schrieb:
>> If we talk about basic setups, then iproute2 provides everything too.
>
> no one said otherwise. i did however say requiring iproute2 for static
> ip/route setups is redundant. i see you agree.
It is redundant as long as net-tools is in the system set.
>> for some reason the user prefers to use ifconfig over ip, or needs
>> functions not covered by iproute2 (are you referring to netstat?), then
>> he can install net-tools.
>
> we aren't talking about removing net-tools from system.
nightmorph first brought this up.
> until we have
> replacement for all of its tools, it's always going to be there.
After net-tools is no longer needed for basic setups (which I understand
will be still the case after the proposed changes), why should it remain
in the system set?
> i'd also suspect that many scripts (packages/users) execute ifconfig to get
> network information. obviously hard to quantify, but that's what you get for
> having a util that has existed for ~30 years, and for ~20 years more than
> iproute2.
That's ok. Packages which parse ifconfig output will then have to set a
dependency on it. Users who run scripts that assume presence of ifconfig
will need to install net-tools.
>> openrc can already use busybox udhcpc instead of dhcpcd, so there is a
>> precedent.
>
> that's not the same thing at all. `udhcpc` is not intended to be a drop-in
> replacement for `dhcpcd`. we have a dedicated module to work with udhcpc, and
> we have another dedicated module to work with dhcpcd.
So if someone creates a "busybox_ip" module (which would essentially be
a copy of the iproute2 module) then it will suddenly become the same thing?
> to be clear, my problem is with dropping the ifconfig module completely. i
> don't have a problem with requiring iproute2 for more complicated things, or
> even for making it part of the Linux system set. but these are orthogonal
> issues imo to the question "should openrc contain support for ifconfig/route".
Having the openrc ifconfig code around in case someone still wants/needs
it is something I fully agree with.
Best regards,
Chí-Thanh Christopher Nguyễn
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 18:04 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-13 18:33 ` Mike Frysinger
2011-11-13 18:50 ` Chí-Thanh Christopher Nguyễn
0 siblings, 1 reply; 20+ messages in thread
From: Mike Frysinger @ 2011-11-13 18:33 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1781 bytes --]
On Sunday 13 November 2011 13:04:57 Chí-Thanh Christopher Nguyễn wrote:
> Mike Frysinger schrieb:
> > until we have replacement for all of its tools, it's always going to be
> > there.
>
> After net-tools is no longer needed for basic setups (which I understand
> will be still the case after the proposed changes), why should it remain
> in the system set?
you snipped the following sentence where i explained why net-tools can't be
removed. iproute2 replaces *most* of net-tools, not *all*.
> >> openrc can already use busybox udhcpc instead of dhcpcd, so there is a
> >> precedent.
> >
> > that's not the same thing at all. `udhcpc` is not intended to be a
> > drop-in replacement for `dhcpcd`. we have a dedicated module to work
> > with udhcpc, and we have another dedicated module to work with dhcpcd.
>
> So if someone creates a "busybox_ip" module (which would essentially be
> a copy of the iproute2 module) then it will suddenly become the same thing?
no. i don't know why you're trying to force fit an analogy that makes no
sense. for busybox/embedded users, they'll have a system where `ip` is a
symlink to `busybox`, and so the existing iproute module will be used
unchanged. if there are problems, they can report. but that is a system
where we know up front is drastically different vs an otherwise "normal" Linux
system silently switching between the standard iproute2 and the simplified
busybox replacement.
the only way we could drop back to busybox's iproute2 is if we have the module
issue quite a bit of verbose warnings, but even then i'm not sure. if people
are creating network setups that need iproute2, and then then unmerge
iproute2, then i'm not terribly sympathetic to their plight.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 18:33 ` Mike Frysinger
@ 2011-11-13 18:50 ` Chí-Thanh Christopher Nguyễn
2011-11-14 0:23 ` Mike Frysinger
2011-12-06 20:07 ` Mike Frysinger
0 siblings, 2 replies; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-13 18:50 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger schrieb:
> On Sunday 13 November 2011 13:04:57 Chí-Thanh Christopher Nguyễn wrote:
>> Mike Frysinger schrieb:
>>> until we have replacement for all of its tools, it's always going to be
>>> there.
>>
>> After net-tools is no longer needed for basic setups (which I understand
>> will be still the case after the proposed changes), why should it remain
>> in the system set?
>
> you snipped the following sentence where i explained why net-tools can't be
> removed. iproute2 replaces *most* of net-tools, not *all*.
And do we need *all* of net-tools for basic setups? You said that
currently openrc uses the host and domain name tools, but iirc sysctl
can set hostname/domainname too (note that I do not to say that using
sysctl is preferable).
Best regards,
Chí-Thanh Christopher Nguyễn
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 18:50 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-14 0:23 ` Mike Frysinger
2011-11-14 0:57 ` Chí-Thanh Christopher Nguyễn
2011-12-06 20:07 ` Mike Frysinger
1 sibling, 1 reply; 20+ messages in thread
From: Mike Frysinger @ 2011-11-14 0:23 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1038 bytes --]
On Sunday 13 November 2011 13:50:25 Chí-Thanh Christopher Nguyễn wrote:
> Mike Frysinger schrieb:
> > On Sunday 13 November 2011 13:04:57 Chí-Thanh Christopher Nguyễn wrote:
> >> Mike Frysinger schrieb:
> >>> until we have replacement for all of its tools, it's always going to be
> >>> there.
> >>
> >> After net-tools is no longer needed for basic setups (which I understand
> >> will be still the case after the proposed changes), why should it remain
> >> in the system set?
> >
> > you snipped the following sentence where i explained why net-tools can't
> > be removed. iproute2 replaces *most* of net-tools, not *all*.
>
> And do we need *all* of net-tools for basic setups? You said that
> currently openrc uses the host and domain name tools, but iirc sysctl
> can set hostname/domainname too (note that I do not to say that using
> sysctl is preferable).
yes, host/domain names can be set through sysctl, but as you say, that isn't
exactly preferable, and brings its own set of troubles.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-14 0:23 ` Mike Frysinger
@ 2011-11-14 0:57 ` Chí-Thanh Christopher Nguyễn
2011-11-14 6:10 ` Mike Frysinger
0 siblings, 1 reply; 20+ messages in thread
From: Chí-Thanh Christopher Nguyễn @ 2011-11-14 0:57 UTC (permalink / raw
To: gentoo-dev
Mike Frysinger schrieb:
>>>>> until we have replacement for all of its tools, it's always going to be
>>>>> there.
>>>>
>>>> After net-tools is no longer needed for basic setups (which I understand
>>>> will be still the case after the proposed changes), why should it remain
>>>> in the system set?
>>>
>>> you snipped the following sentence where i explained why net-tools can't
>>> be removed. iproute2 replaces *most* of net-tools, not *all*.
>>
>> And do we need *all* of net-tools for basic setups? You said that
>> currently openrc uses the host and domain name tools, but iirc sysctl
>> can set hostname/domainname too (note that I do not to say that using
>> sysctl is preferable).
>
> yes, host/domain names can be set through sysctl, but as you say, that isn't
> exactly preferable, and brings its own set of troubles.
> -mike
Ok, and do you see any other parts of net-tools that are needed for
basic setups?
Best regards,
Chí-Thanh Christopher Nguyễn
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-14 0:57 ` Chí-Thanh Christopher Nguyễn
@ 2011-11-14 6:10 ` Mike Frysinger
0 siblings, 0 replies; 20+ messages in thread
From: Mike Frysinger @ 2011-11-14 6:10 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1078 bytes --]
On Sunday 13 November 2011 19:57:05 Chí-Thanh Christopher Nguyễn wrote:
> Mike Frysinger schrieb:
> >>>>> until we have replacement for all of its tools, it's always going to
> >>>>> be there.
> >>>>
> >>>> After net-tools is no longer needed for basic setups (which I
> >>>> understand will be still the case after the proposed changes), why
> >>>> should it remain in the system set?
> >>>
> >>> you snipped the following sentence where i explained why net-tools
> >>> can't be removed. iproute2 replaces *most* of net-tools, not *all*.
> >>
> >> And do we need *all* of net-tools for basic setups? You said that
> >> currently openrc uses the host and domain name tools, but iirc sysctl
> >> can set hostname/domainname too (note that I do not to say that using
> >> sysctl is preferable).
> >
> > yes, host/domain names can be set through sysctl, but as you say, that
> > isn't exactly preferable, and brings its own set of troubles.
>
> Ok, and do you see any other parts of net-tools that are needed for
> basic setups?
not really
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-13 18:50 ` Chí-Thanh Christopher Nguyễn
2011-11-14 0:23 ` Mike Frysinger
@ 2011-12-06 20:07 ` Mike Frysinger
1 sibling, 0 replies; 20+ messages in thread
From: Mike Frysinger @ 2011-12-06 20:07 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 1246 bytes --]
On Sunday 13 November 2011 13:50:25 Chí-Thanh Christopher Nguyễn wrote:
> Mike Frysinger schrieb:
> > On Sunday 13 November 2011 13:04:57 Chí-Thanh Christopher Nguyễn wrote:
> >> Mike Frysinger schrieb:
> >>> until we have replacement for all of its tools, it's always going to be
> >>> there.
> >>
> >> After net-tools is no longer needed for basic setups (which I understand
> >> will be still the case after the proposed changes), why should it remain
> >> in the system set?
> >
> > you snipped the following sentence where i explained why net-tools can't
> > be removed. iproute2 replaces *most* of net-tools, not *all*.
>
> And do we need *all* of net-tools for basic setups? You said that
> currently openrc uses the host and domain name tools, but iirc sysctl
> can set hostname/domainname too (note that I do not to say that using
> sysctl is preferable).
for Linux, we'll be transitioning the hostname init.d script to /etc/hostname
and having the rc binary reading that and calling sethostname() itself. i
think the init.d script will stick around for a while as `hostname` should be
a bit more portable than sethostname() ... at least, it'll be a safety net for
people to fallback onto.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux
2011-11-11 21:53 [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux William Hubbs
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
2011-11-12 6:25 ` Joshua Saddler
@ 2011-11-13 4:50 ` Mike Frysinger
2 siblings, 0 replies; 20+ messages in thread
From: Mike Frysinger @ 2011-11-13 4:50 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 607 bytes --]
On Friday 11 November 2011 16:53:44 William Hubbs wrote:
> has prompted a discussion of whether or not we should use ifconfig in
> openrc to configure networking on linux systems.
no, the discussion is whether we should continue to have ifconfig be an option
at all, not "always use ifconfig". as long as we need net-tools in the system,
openrc should support ifconfig as an option for basic configuration.
defaulting to iproute when it's available, and requiring it for more
complicated stuff is fine by me. but adding static ip addresses and static
routes is trivial to support.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2011-12-06 20:09 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-11 21:53 [gentoo-dev] rfc: openrc: use iproute2 for all network handling in linux William Hubbs
2011-11-11 22:01 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:10 ` Matt Thode
2011-11-11 22:16 ` Chí-Thanh Christopher Nguyễn
2011-11-11 22:26 ` William Hubbs
2011-11-11 22:11 ` William Hubbs
2011-11-13 4:50 ` Mike Frysinger
2011-11-12 6:25 ` Joshua Saddler
2011-11-13 1:26 ` Chí-Thanh Christopher Nguyễn
2011-11-13 4:47 ` Mike Frysinger
2011-11-13 15:16 ` Chí-Thanh Christopher Nguyễn
2011-11-13 17:24 ` Mike Frysinger
2011-11-13 18:04 ` Chí-Thanh Christopher Nguyễn
2011-11-13 18:33 ` Mike Frysinger
2011-11-13 18:50 ` Chí-Thanh Christopher Nguyễn
2011-11-14 0:23 ` Mike Frysinger
2011-11-14 0:57 ` Chí-Thanh Christopher Nguyễn
2011-11-14 6:10 ` Mike Frysinger
2011-12-06 20:07 ` Mike Frysinger
2011-11-13 4:50 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox