Am 09.07.2015 um 12:21 schrieb Vincent Lefevre: > On 2015-07-09 10:46:06 +0100, Lisi Reisz wrote: >> On Thursday 09 July 2015 10:31:21 Vincent Lefevre wrote: >>> On 2015-07-09 09:29:26 +0100, Lisi Reisz wrote: >>>> On Wednesday 08 July 2015 23:40:55 Vincent Lefevre wrote: >>>>> So, I wonder why the default file contains "allow-hotplug eth0". >>>>> This seems to be incorrect: it doesn't make sense to put eth0 up >>>>> only because the network interface eth0 is present, which is always >>>>> the case in practice. The condition should be that an Ethernet cable >>>>> is plugged in. >>>> >>>> Which is why it has "allow-hotplug eth0" and not "auto eth0". >>> >>> No, "allow-hotplug eth0" has always meant "when the interface is present", >>> not "when an ethernet cable is plugged in". "auto" more or less means >>> "always". >> >> So what, in your opinion, should it put? Many of the rest of us >> would object if it didn't put an entry. > > Remove the "allow-hotplug eth0" line and have eth0 be brought up > automatically when there's an Ethernet signal? I haven't seen any > drawback yet. The drawback is, that you might have (broken) software which depends on $network. /etc/init.d/networking provides $network and blocks until interfaces marked auto (and interfaces marked allow-hotpug which exist at the time the script is run) have been brought up. If you bring up your interfaces via other means, /etc/init.d/networking will simply do nothing (but still provide $network), so the boot continues and software which requires $network will likely be started too early and probably fail/behave incorrectly since they have no network access. If you use a different mechanism then "auto", you should write a service which hooks into network-online.target and blocks until it has configured the interfaces. You'd have to write an equivalent to systemd-networkd-wait-online.service or NetworkManager-wait-online.service for ifupdown. See also http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature