debian/0000775000000000000000000000000012301112734007162 5ustar debian/README.Debian0000664000000000000000000000013712301112427011223 0ustar When necessary remove /etc/udev/rules.d/z25_persistent-net.rules after installing the package. debian/dirs0000664000000000000000000000006112301112427010042 0ustar sbin lib/udev etc/udev usr/share/doc/biosdevname debian/initramfs.hook0000775000000000000000000000066212301112564012050 0ustar #!/bin/sh -e PREREQS="udev" prereqs() { echo "$PREREQS"; } case "$1" in prereqs) prereqs exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions copy_exec /sbin/biosdevname RULES=71-biosdevname.rules if [ -e /etc/udev/rules.d/$RULES ]; then cp -p /etc/udev/rules.d/$RUlES $DESTDIR/lib/udev/rules.d/ elif [ -e /lib/udev/rules.d/$RULES ]; then cp -p /lib/udev/rules.d/$RULES $DESTDIR/lib/udev/rules.d/ fi debian/source/0000775000000000000000000000000012301112733010461 5ustar debian/source/format0000664000000000000000000000001412301112427011667 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000120612301112427011113 0ustar This package was debianized by Rudy Gevaert on Wed, 16 May 2007 09:25:13 +0200. It was downloaded from http://linux.dell.com/biosdevname/ Upstream Author: Matt Domsch Copyright: 2006 Dell, Inc You are free to distribute this software under the terms of the GNU General Public License either version 2 of the License. On Debian systems, the complete text of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL-2'. The Debian packaging is (C) 2007, Rudy Gevaert and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/biosdevname.install0000664000000000000000000000014212301112427013042 0ustar lib/udev/rules.d/71-biosdevname.rules usr/share/man/man1/biosdevname.1 usr/sbin/biosdevname sbin/ debian/changelog0000664000000000000000000001300212301112564011031 0ustar biosdevname (0.4.1-0ubuntu6) trusty; urgency=medium * Create initramfs hook that copies the rule and the binary to the initramfs image. (LP: #1277436) -- Margarita Manterola Fri, 07 Feb 2014 12:40:26 +0100 biosdevname (0.4.1-0ubuntu5) raring; urgency=low * Fix logic for disabling biosdevname installation when using biosdevname=0 (LP: #1134227). -- Colin Watson Wed, 27 Feb 2013 11:18:42 +0000 biosdevname (0.4.1-0ubuntu4) raring; urgency=low * Use dh-autoreconf. -- Colin Watson Sun, 16 Dec 2012 17:46:24 +0000 biosdevname (0.4.1-0ubuntu3) quantal; urgency=low [ Daniel Jared Dominguez ] * Do not fall back on PIRQ tables on systems where SMBIOS 2.6 is not implemented (LP: #1046480). -- Colin Watson Thu, 06 Sep 2012 09:41:51 +0100 biosdevname (0.4.1-0ubuntu2) quantal; urgency=low * Move post-base-installer.d hook to a base-installer.d hook so that apt-install may safely be used (LP: #1043936). -- Colin Watson Fri, 31 Aug 2012 01:20:38 +0100 biosdevname (0.4.1-0ubuntu1) quantal; urgency=low * New upstream release (LP: #1040805) -- Mario Limonciello Thu, 23 Aug 2012 14:07:37 -0500 biosdevname (0.4.0-0ubuntu2) quantal; urgency=low * Enable biosdevname by default in the installer (LP: #891258). Use the biosdevname=0 boot parameter if you need to disable it. -- Colin Watson Mon, 20 Aug 2012 15:11:20 +0100 biosdevname (0.4.0-0ubuntu1) quantal; urgency=low * New upstream release (LP: #1006565). -- Paolo Rotolo Thu, 5 Jun 2012 21:07:02 +0100 biosdevname (0.3.11-0ubuntu1) precise; urgency=low * New upstream release (LP: #926926). -- Colin Watson Mon, 06 Feb 2012 09:44:04 +0000 biosdevname (0.3.8-0ubuntu2) oneiric; urgency=low * Move biosdevname to /sbin, in support of separate /usr partitions. -- Evan Dandrea Tue, 20 Sep 2011 16:04:10 +0100 biosdevname (0.3.8-0ubuntu1) oneiric; urgency=low * New upstream version. -- Mario Limonciello Thu, 07 Jul 2011 15:02:48 -0500 biosdevname (0.3.7-0ubuntu1) natty; urgency=low * Repackage with debhelper 7 and the 3.0 (quilt) source format. * Cut down build-dependencies to what we actually need. * Add biosdevname-udeb package for use in the installer. * Disable biosdevname by default in the installer, for now. Use the biosdevname=1 boot parameter to enable it, which will also cause it to be installed in the target system. -- Colin Watson Wed, 23 Feb 2011 17:58:36 +0000 biosdevname (0.3.7) unstable; urgency=low * drop dump_pirq, suggest use biosdecode instead * don't use '#' in names, use 'p' instead, by popular demand * properly look for SMBIOS, then $PIR, then recurse * Add kernel command line parameter "biosdevname={0|1}" to turn off/on biosdevname * Fix segfault when BIOS advertises zero sized PIRQ Routing Table * Add 'bonding' and 'openvswitch' to the virtual devices list * Typo fixes * fail PIRQ lookups if device domain is not 0 * Don't suggest names if running in a virtual machine (Xen, KVM, VMware tested, but should work on others) -- Matt Domsch Thu, 17 Feb 2011 09:48:00 -0600 biosdevname (0.3.6) unstable; urgency=low * drop biosdevnameS, it's unused and fails to build on F15 -- Matt Domsch Tue, 25 Jan 2011 14:48:00 -0600 biosdevname (0.3.5) unstable; urgency=low * install dump_pirq into /usr/sbin * fix udev rule, skip running if NAME is already set * move udev rule to /lib/udev/rules.d -- Matt Domsch Tue, 25 Jan 2011 12:17:00 -0600 biosdevname (0.3.4) unstable; urgency=low * drop unnecessary explicit version requirement on udev * bugfix: start indices at 1 not 0, to match Dell and HP server port designations * bugfix: don't assign names to unknown devices * bugfix: don't assign duplicate names -- Matt Domsch Thu, 16 Dec 2010 10:45:00 -0600 biosdevname (0.3.3) unstable; urgency=low * add back in use of PCI IRQ Routing Table, if info is not provided by sysfs or SMBIOS -- Matt Domsch Thu, 09 Nov 2010 15:31:00 -0600 * fix for multi-port cards with bridges * removal of code for seriously obsolete systems -- Matt Domsch Thu, 02 Dec 2010 22:03:00 -0600 biosdevname (0.3.1) unstable; urgency=low * remove all policies except 'physical' and 'all_ethN' * handle SR-IOV devices properly -- Matt Domsch Mon, 28 Nov 2010 22:05:00 -0600 biosdevname (0.3.0) unstable; urgency=low * add --policy=loms, use it by default. * read index and labels from sysfs if available -- Matt Domsch Wed, 10 Nov 2010 22:44:23 -0600 biosdevname (0.2.4-1) unstable; urgency=low * eliminate libsysfs usage, libbiosdevname * coordinate udev rules usage with udev maintainer * fix crashes in pcmcia search, in_ethernet(), and incorrect command line parsing. -- Matt Domsch Sat, 21 Sep 2007 10:30:13 -0500 biosdevname (0.2.3-1) unstable; urgency=low * Initial working release -- Matt Domsch Sat, 08 Sep 2007 14:30:13 -0500 biosdevname (0.1-1) unstable; urgency=low * Initial release. * bios_dev_name-0.1-usage-and-virtual-device-fix.patch is applied -- Rudy Gevaert Wed, 16 May 2007 09:25:13 +0200 debian/control0000664000000000000000000000206112301112427010563 0ustar Source: biosdevname Section: misc Priority: optional Maintainer: Colin Watson XS-Original-Maintainer: Rudy Gevaert Build-Depends: debhelper (>= 7.0.50~), dh-autoreconf, libpci-dev (>= 1:3.1.7-4ubuntu11) Standards-Version: 3.7.3 Package: biosdevname Architecture: i386 amd64 ia64 Depends: ${shlibs:Depends}, ${misc:Depends}, udev Description: apply BIOS-given names to network devices biosdevname in its simplest form takes a kernel device name as an argument, and returns the BIOS-given name it "should" be. . This is necessary on systems where the BIOS name for a given device (e.g. the label on the chassis is "Gb1") doesn't map directly and obviously to the kernel name (e.g. eth0). . This also works as a straight udev rule, which is provided. . Home Page: http://linux.dell.com/biosdevname/ Package: biosdevname-udeb XC-Package-Type: udeb Section: debian-installer Architecture: i386 amd64 ia64 Depends: ${shlibs:Depends}, ${misc:Depends}, udev-udeb Description: apply BIOS-given names to network devices debian/rules0000775000000000000000000000031412301112564010241 0ustar #! /usr/bin/make -f %: dh $@ --with autoreconf override_dh_auto_install: dh_auto_install install -D --mode=755 debian/initramfs.hook \ debian/biosdevname/usr/share/initramfs-tools/hooks/biosdevname debian/biosdevname.postinst0000664000000000000000000000041112301112564013260 0ustar #!/bin/sh set -e case "$1" in configure) update-initramfs -u ;; abort-upgrade|abort-deconfigure|abort-remove) ;; *) echo "$0 called with unknown argument \`$1'" 1>&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/biosdevname-udeb.install0000664000000000000000000000014112301112427013756 0ustar lib/udev/rules.d/71-biosdevname.rules usr/sbin/biosdevname sbin/ debian/base-installer.d usr/lib debian/base-installer.d/0000775000000000000000000000000012301112733012310 5ustar debian/base-installer.d/10biosdevname0000775000000000000000000000033212301112427014671 0ustar #! /bin/sh set -e want_biosdevname=: for i in $(cat /proc/cmdline); do case $i in biosdevname=0) want_biosdevname=false ;; esac done if $want_biosdevname; then apt-install biosdevname || true fi exit 0 debian/patches/0000775000000000000000000000000012301112733010610 5ustar debian/patches/series0000664000000000000000000000002712301112427012024 0ustar smbios-2.6-check.patch debian/patches/smbios-2.6-check.patch0000664000000000000000000000217612301112427014511 0ustar Description: Do not fall back on PIRQ tables on systems without SMBIOS 2.6 With the default PROGRAM= line in biosdevname.rules.in, for systems with no SMBIOS 2.6 implemented, biosdevname might not find the type 41 tables and might fall back on PIRQ tables. PIRQ tables might be buggy and cause incorrect names. . The PROGRAM= line is modified in RHEL's and SLES' rules file to have the --smbios 2.6 and –nopirq checks. Author: Daniel Jared Dominguez Reviewed-by: Colin Watson Bug-Ubuntu: https://bugs.launchpad.net/bugs/1046480 Last-Update: 2012-09-06 Index: b/biosdevname.rules.in =================================================================== --- a/biosdevname.rules.in +++ b/biosdevname.rules.in @@ -18,6 +18,6 @@ # using NAME= instead of setting INTERFACE_NAME, so that persistent # names aren't generated for these devices, they are "named" on each boot. -PROGRAM="/sbin/biosdevname --policy physical -i %k", NAME="%c", OPTIONS+="string_escape=replace" +PROGRAM="/sbin/biosdevname --smbios 2.6 --nopirq --policy physical -i %k", NAME="%c", OPTIONS+="string_escape=replace" LABEL="netdevicename_end" debian/docs0000664000000000000000000000001412301112427010027 0ustar README TODO debian/compat0000664000000000000000000000000212301112427010357 0ustar 7