Bug 2486 - netbase includes init script
Summary: netbase includes init script
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: layers (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 1.4
Assignee: Constantin Musca
QA Contact:
URL:
Whiteboard: 4cb7c9a7ca3632c15414177e6e3ee399ad48ba08
Depends on:
Blocks:
 
Reported: 2012-05-23 12:33 UTC by Ross Burton
Modified: 2013-02-07 07:48 UTC (History)
5 users (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 Ross Burton 2012-05-23 12:33:27 UTC
The netbase package includes an init script that uses ifup/ifdown and /etc/network/interfacs to configure the networking.

However, my images are using connman, so none of that is required and is actually counter-productive because those scripts are bringing up interfaces without connman being involved.

IMHO, netbase should only include /etc/services /etc/protocol and so on, and the init scripts/configuration split out.

FWIW, this is exactly what just happened in Debian.  netbase is just /etc/rpc,protocols,services, and ifupdown is ifup/ifdown (busybox in Yocto), /etc/network/* and the networking init script.  For systems that are relying purely on network management via NM or CM, this package isn't required.
Comment 1 Darren Hart 2012-09-14 14:38:37 UTC
Ross, can this wait for 1.4? Seems like it might be a bit invasive for 1.3 M5. Thoughts?
Comment 2 Ross Burton 2012-09-15 08:25:19 UTC
Constantin was working on a patch yesterday, so if it hits the list we'll be able to see how invasive it is.  It's just a package split but the dependencies may need to be carefully checked.
Comment 3 Song Liu 2012-10-01 19:47:22 UTC
"If we split up netbase in netbase and init-ifupdown (which contains the configuration/init files) we need to use the following restriction in the init-ifupdown bb file: 
RCONFLICTS_${PN} = "netbase (< 5.0-r1)". The problem is that the netbase version is different in other layers and the RCONFLICTS  tag will not work." - Constantin.
Comment 4 Constantin Musca 2013-02-07 07:48:13 UTC
Patch merged (commit 4cb7c9a7ca3632c15414177e6e3ee399ad48ba08)

Cheers,
Constantin