Biosdevname not installed in the target after server install

Bug #1043936 reported by Brad Figg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
biosdevname (Ubuntu)
Fix Released
Critical
Colin Watson
Quantal
Fix Released
Critical
Colin Watson

Bug Description

I'm installing quantal from scratch on a Dell PowerEdge R310. When the system finishes installing ifconfig -a thinks the interface names are eth0 and eth1. The /etc/network/interfaces file thinks the name should be em1. Upon initial boot, post install the interface does not come up.

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto em1
iface em1 inet dhcp

root@rizzo:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr d4:ae:52:a3:6a:22
          inet addr:10.97.2.3 Bcast:10.97.2.255 Mask:255.255.255.0
          inet6 addr: fe80::d6ae:52ff:fea3:6a22/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:18191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4532 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20872409 (20.8 MB) TX bytes:663870 (663.8 KB)

eth1 Link encap:Ethernet HWaddr d4:ae:52:a3:6a:23
          BROADCAST MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1184 (1.1 KB) TX bytes:1184 (1.1 KB)

root@rizzo:~# biosdevname -i eth0
em1

Brad Figg (brad-figg)
affects: linux (Ubuntu) → ubiquity (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

From IRC, biosdevname was not present on the target system post-install and Brad had to install it manually. This means it's failing to be correctly included by d-i.

affects: ubiquity (Ubuntu) → debian-installer (Ubuntu)
summary: - Fresh install of quantal server gets the interface name wrong
+ Biosdevname not installed in the target after server install
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote :

I modified the preseed file that I'm using and added biosdevname to the pkgsel/include. Now the system boots up with em1 configured and up.

Steve Langasek (vorlon)
Changed in debian-installer (Ubuntu Quantal):
importance: Undecided → High
status: New → Triaged
importance: High → Critical
assignee: nobody → Colin Watson (cjwatson)
milestone: none → ubuntu-12.10-beta-1
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Was the network available during the first failed installation? (and usable?!)

Aug 30 16:07:55 in-target: The following extra packages will be installed:
Aug 30 16:07:55 in-target: libpci3
Aug 30 16:07:55 in-target: The following NEW packages will be installed:
Aug 30 16:07:55 in-target: biosdevname libpci3
Aug 30 16:07:55 in-target: 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Aug 30 16:07:55 in-target: Need to get 47.8 kB of archives.
Aug 30 16:07:55 in-target: After this operation, 213 kB of additional disk space will be used.
Aug 30 16:07:55 in-target: Err http://us.archive.ubuntu.com/ubuntu/ quantal/main libpci3 amd64 1:3.1.9-5ubuntu2
Aug 30 16:07:55 in-target: Temporary failure resolving 'us.archive.ubuntu.com'
Aug 30 16:07:55 in-target: Err http://us.archive.ubuntu.com/ubuntu/ quantal/main biosdevname amd64 0.4.1-0ubuntu1
Aug 30 16:07:55 in-target: Temporary failure resolving 'us.archive.ubuntu.com'
Aug 30 16:07:55 in-target: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/pciutils/libpci3_3.1.9-5ubuntu2_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Aug 30 16:07:55 in-target: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/b/biosdevname/biosdevname_0.4.1-0ubuntu1_amd64.deb Temporary failure resolving 'us.archive.ubuntu.com'
Aug 30 16:07:55 in-target: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Needs checking if biosdevname is available in the squashfs and installed by the default server tasks / always?!

Revision history for this message
Colin Watson (cjwatson) wrote :

We don't want to put it in the squashfs, because it's installed conditionally. In any case, this installation used debootstrap rather than a squashfs. Since it's a network install, the presumption that packages can be installed from the network is reasonable.

I suspect that the bug here is actually that network configuration is copied into /target too late to be used by the apt-install queue processing in base-installer.

affects: debian-installer (Ubuntu Quantal) → netcfg (Ubuntu Quantal)
Revision history for this message
Colin Watson (cjwatson) wrote :

Actually I think I see the problem; it isn't safe to use apt-install in a post-base-installer.d hook because that will try to do immediate installation without bind-mounting /run. A base-installer.d hook should work better here.

affects: netcfg (Ubuntu Quantal) → biosdevname (Ubuntu Quantal)
Changed in biosdevname (Ubuntu Quantal):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package biosdevname - 0.4.1-0ubuntu2

---------------
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 <email address hidden> Fri, 31 Aug 2012 01:20:38 +0100

Changed in biosdevname (Ubuntu Quantal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.