Package: qemubuilder Version: 0.39 Severity: normal Tags: patch Hi,
qemubuilder --create does not work here for the ARM platform (following the wiki for getting kernels). For some undetermined reason, the kernel reports the NIC as eth0 but ifconfig -a shows it to be eth2. The following hack does not really attempt to fix the problem, but displays a bit more information through ifconfig -a before attempting to up the interfaces and makes use of the first "ethX" interface to call dhcpdclient, therefore allowing --create to work for me on ARM. Tested for create on ARM and MIPS. diff --git a/qemubuilder.c b/qemubuilder.c index 629acc9..09b9a74 100755 --- a/qemubuilder.c +++ b/qemubuilder.c @@ -742,7 +742,9 @@ int cpbuilder_create(const struct pbuilderconfig* pc) "echo deb %s %s main contrib non-free > /etc/apt/sources.list \n" //TODO: copy hook scripts "mount -n /proc /proc -t proc\n" - "dhclient eth0\n" + "ifconfig -a\n" + "export IFNAME=`/sbin/ifconfig -a | grep eth | head -n1 | awk '{print $1}'`\n" + "dhclient $IFNAME\n" "cp $PBUILDER_MOUNTPOINT/hosts /etc/hosts\n" "cp $PBUILDER_MOUNTPOINT/resolv.conf /etc/resolv.conf\n" "cp $PBUILDER_MOUNTPOINT/hostname /etc/hostname\n" -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.22.1 (PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages qemubuilder depends on: ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries ii pbuilder 0.171 personal package builder for Debia ii qemu 0.9.0-2 fast processor emulator qemubuilder recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]