ltsp-client-builder misses space in interface list

Bug #376933 reported by Kris Lowet
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ltsp (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I wanted to install a LTSP-server with the alternate CD of Ubuntu 9.04 64-bit.
The installer fails with a red screen "failed to build ltsp-chroot".

When I look into to the error via the command line, I get this:

------------------------------------------------------------------------------------------------------

May 15 13:04:27 in-target: Setting up linux-firmware (1.11) ...
May 15 13:04:27 in-target: Setting up linux-image-generic (2.6.28.11.15) ...
May 15 15:04:27 ltsp: # Creating dsa-hostkey for server
May 15 15:04:27 ltsp: # Creating rsa-hostkey for server
May 15 15:04:27 ltsp: # Creating dsa-hostkey for 192.168.1.7
May 15 15:04:27 ltsp: # Creating rsa-hostkey for 192.168.1.7
May 15 13:04:27 in-target: Updating /var/lib/tftpboot directories for chroot: /opt/ltsp/amd64
May 15 15:04:27 ltsp: # Creating dsa-hostkey for server
May 15 15:04:27 ltsp: # Creating rsa-hostkey for server
May 15 15:04:27 ltsp: # Creating dsa-hostkey for 192.168.1.7
May 15 15:04:27 ltsp: # Creating rsa-hostkey for 192.168.1.7
May 15 13:04:27 in-target: Warning: --skipimage set, not building squashfs image, run ltsp-update-image later
May 15 13:04:27 in-target: info: LTSP client installation completed successfully
May 15 13:04:27 kernel: [ 1046.846741] NET: Registered protocol family 5
May 15 13:04:27 main-menu[804]: (process:11843): /var/lib/dpkg/info/ltsp-client-builder.postinst:
May 15 13:04:27 main-menu[804]: (process:11843): line 78:
May 15 13:04:27 main-menu[804]: (process:11843): ifconfig: not found
May 15 13:04:27 main-menu[804]: (process:11843):
May 15 13:04:27 main-menu[804]: (process:11843): SIOCSIFADDR: No such device
May 15 13:04:27 main-menu[804]: (process:11843): eth1eth2: ERROR while getting interface flags: No such device
May 15 13:04:27 main-menu[804]: WARNING **: Configuring 'ltsp-client-builder' failed with error code 255
May 15 13:04:27 main-menu[804]: WARNING **: Menu item 'ltsp-client-builder' failed.

------------------------------------------------------------------------------------------------------

At the third last line, you can see "eth1eth2". It seems he takes two network interfaces together.
In this server, I have 3 nic's. In the first steps from the installer, I set eth0 as the default one and he gets a IP from the DHCP server afterwards.

Seems there is a problem with the interface detection?

Related branches

Revision history for this message
Oliver Grawert (ogra) wrote :

From ltsp-client-builder:

# exclude the interface with the default route, we only want unconfigured ones
IFACE_TMP=""
for iface in $IFACE_LIST;do
        if [ $iface != $DEFAULTROUTE_IFACE ]; then
                IFACE_TMP="${IFACE_TMP:+$IFACE_TMP}$iface"
        fi
done
IFACE_LIST=$IFACE_TMP

the line:
IFACE_TMP="${IFACE_TMP:+$IFACE_TMP}$iface"
needs to have a space before $iface...

affects: ubuntu → ltsp (Ubuntu)
Changed in ltsp (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
summary: - Failed to build ltsp-chroot: making "eth1eth2" with 3 nic's
+ ltsp-client-builder misses space in interface list
Revision history for this message
Oliver Grawert (ogra) wrote :

accordingly the
elif [ -z "$IFACE_LIST" ];then

a few lines below needs to be fixed to not match on whitespace

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Only one line needs to be changed:
IFACE_TMP="${IFACE_TMP:+$IFACE_TMP }$iface"

Notice the space before }
That ensures that if IFACE_LIST is empty, IFACE_TMP will be null, not space.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ltsp - 5.2.1-0ubuntu7

---------------
ltsp (5.2.1-0ubuntu7) lucid; urgency=low

  * Fix multi-NIC support in d-i plugin. (LP: #376933)
  * Fix wrong arch on non-i386 in dhcpd.conf (LP: #203954)
  * Add dependency on a plymouth theme so we have a splash.
 -- Stephane Graber <email address hidden> Sat, 10 Apr 2010 20:15:10 -0400

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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