Bug 3843 - Build Appliance has no network - connman doesn't manage eth interfaces on qemu machines
Summary: Build Appliance has no network - connman doesn't manage eth interfaces on qem...
Status: VERIFIED FIXED
Alias: None
Product: Runtime
Classification: Build System, Metadata & Runtime
Component: build-appliance (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4 M4
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on: 3227
Blocks:
  Show dependency tree
 
Reported: 2013-02-05 13:43 UTC by Stefan Stanacar
Modified: 2013-03-21 14:09 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Stanacar 2013-02-05 13:43:35 UTC
Steps:
 - bitbake and boot build-appliance-image (using 1.4M3.rc1 or rc2 release)

Expected results:
  - VM should have access to the network

The VM doesn't have network because connman doesn't manage ethX interfaces anymore. This was tricky to notice at first because a minimal build works in Hob (it has sources pre-fetched).

Commit 7048fbdc05c1f2d9acaf1052550dec792c1f18da introduces connman-conf recipe for all qemu machines, which installs a config for connman, blacklisting all eth* interfaces. Blacklisting eth interfaces affects build appliance image too (because it's built as qemux86-64 machine usually).




Ugly fix (tested):

diff --git a/meta/recipes-core/images/build-appliance-image.bb b/meta/recipes-core/images/build-appliance-image.bb
index 2359eca..b8255ac 100644
--- a/meta/recipes-core/images/build-appliance-image.bb
+++ b/meta/recipes-core/images/build-appliance-image.bb
@@ -64,6 +64,8 @@ fakeroot do_populate_poky_src () {
        # Use Clearlooks GTK+ theme
        mkdir -p ${IMAGE_ROOTFS}/etc/gtk-2.0
        echo 'gtk-theme-name = "Clearlooks"' > ${IMAGE_ROOTFS}/etc/gtk-2.0/gtkrc
+        
+        rm -f ${IMAGE_ROOTFS}/etc/connman/main.conf
 }
 
 IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src; "
Comment 1 Cristian Iorga 2013-03-01 16:55:17 UTC
In connman 1.12, Ethernet provisioning is introduced.
Connman no longer is set up to ignore Ethernet interfaces for Build Appliance.
Comment 3 Stefan Stanacar 2013-03-21 14:09:35 UTC
Marked as Verified (1.4M5.rc1)