--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: mapping clause now useless; please remove
- From: EspeonEefi <espeoneefi@eep.dnsalias.org>
- Date: Sun, 14 May 2006 15:42:00 -0400
- Message-id: <20060514194200.31295.15628.reportbug@ceruleancity.mit.edu>
Package: netcfg
Severity: normal
A bit of history for reference can be found in bug #340935 .
If the interface set up should be brought up upon detection by a
hotplugging mechanism, netcfg inserts the following clause into the
generated /etc/network/interfaces file:
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping eth0
script grep
map eth0
(This is written by netcfg_write_common() in netcfg-common.c.)
Now, I believe this is cruft code left over from the old hotplugging
system. I believe that the way it used to work was that you would have
something like...
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
map eth2
Then, when the first network was hotplugged, hotplug would go
ifup eth0=hotplug
ifup would look through /etc/network/interfaces looking for the
definition of the logical interface hotplug. It would find the mapping
clause and would proceed to call the script named by the script
definition with the physical interface as the argument and it would send
the lines marked by map to its standard input. That is, it would see
hotplug was a mapping logical interface, it would call
grep eth0
and write to grep's standard input
eth0
eth2
At this point, grep would return the line
eth0
which ifup would use then as the logical interface to bring up the
physical eth0 as. (That is, ifup would transform ifup eth0=hotplug into
ifup eth0=eth0.)
Note that the same thing would be done for eth2.
Note however, that upon hotplugging the second network card, physical
interface eth1, ifup eth1=hotplug would get nothing back from grep. ifup
would take this as a sign that eth1 should not be brought up under the
current conditions.
(This is why the comment says that the mapping clause is there to
contain a list of hotpluggable interfaces.)
Unfortunately, all of this was lost in the fix to shift to allow-hotplug
to mark hotpluggable interfaces (see the bug referenced above). Now
we're left with netcfg putting a totally useless mapping clause with an
utterly confusing associated comment into the default installed
/etc/network/interfaces...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
--- End Message ---
--- Begin Message ---
Source: netcfg
Source-Version: 1.27
We believe that the bug you reported is fixed in the latest version of
netcfg, which is due to be installed in the Debian FTP archive:
netcfg-static_1.27_i386.udeb
to pool/main/n/netcfg/netcfg-static_1.27_i386.udeb
netcfg_1.27.dsc
to pool/main/n/netcfg/netcfg_1.27.dsc
netcfg_1.27.tar.gz
to pool/main/n/netcfg/netcfg_1.27.tar.gz
netcfg_1.27_i386.udeb
to pool/main/n/netcfg/netcfg_1.27_i386.udeb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 367264@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated netcfg package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Thu, 15 Jun 2006 19:21:13 -0400
Source: netcfg
Binary: netcfg-static netcfg
Architecture: source i386
Version: 1.27
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description:
netcfg - Configure the network (udeb)
netcfg-static - Configure a static network (udeb)
Closes: 367264
Changes:
netcfg (1.27) unstable; urgency=low
.
* Remove the now useless mapping clause from the interfaces file.
Closes: #367264
Files:
4a79e1432215aa8fbea183d551e2150a 948 debian-installer optional netcfg_1.27.dsc
d7d35e29771c095258c88e0675fb5c5a 316132 debian-installer optional netcfg_1.27.tar.gz
fd4c94a7bf1b2b09475d7c02bc29a247 258944 debian-installer optional netcfg_1.27_i386.udeb
e3f2afe33759757de2cb730ba271a6c3 199870 debian-installer optional netcfg-static_1.27_i386.udeb
Package-Type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEkevf2tp5zXiKP0wRAmYPAJ94CvNlqFoJx0DndQ6uobS9oCUXRwCfR5OX
a37oBq88vtbCoktBltuJ5XE=
=ddI2
-----END PGP SIGNATURE-----
--- End Message ---