[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: More stuff the installer does which isn't done on upgrade



On Mon, 26 Mar 2007, Joey Hess wrote:
Nathanael Nerode wrote:
[...]
On old installs it looks like this:
------------
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
---------

While on new installs it looks like this:
----------
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping eth0
        script grep
        map eth0

We haven't used the "script grep" hack in quite some time, this
entire stanza is not present in new installs, though it might be present
on some oldish ones.

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

Yes, it writes "allow-hotplug" instead of "auto" if the interface seems
to be hotpluggable. (Most interfaces appear that way with udev.)

An old system that has "auto eth0" here will work fine though, unless
eth0 is in fact a hotpluggable interface, in which case hotplugging it
will not work. Is there a case where hotplugging would have worked in
sarge and won't in etch, with the old config? That would be one for the
release notes.

I did run into a case where it didn't work. When switching from cardctl to hotplug for PCMCIA, hotplug no longer configured the interfaces when I inserted my wireless card. I eventually discovered the allow-hotplug option and all was well. Almost. Another related issue was that I had two interchangeable wireless cards, until the upgrade. After the upgrade they would get different interface names.

This was a long time ago, so it may have been fixed by now. IIRC I was going to file a bug report but ran into something saying it wasn't a bug and was documented in the changelog or something.

Ivan



Reply to: