Skip to contentSkip to conversation

Removing netbase from an image

DISCUSSION Jack Mitchell 4 participants 4 messages Oct 30, 2012

lore
Share & tools
lore
#0 lore raw

I am attempting to remove netbase from a custom image. I would like to replace it with connman. I have added connman through EXTRA_IMAGE_INSTALL, however netbase is brought in via packagegroup-core-boot.bb which funnily enough has some very important features and I would like to keep.

What would be the best way to make this replacement. Should I copy packagegroup-core-boot.bb and keep a local copy, while keeping it in sync manually? Alternatively, I notice quite a few packages in packagegroup-core-boot have a VIRTUAL-RUNTIME_* define. Would it be worth having a VIRTUAL-RUNTIME_network ?= "netbase" which could be overridden?

Thoughts?

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#1 lore raw
Quoted 10 lines · Jack Mitchell

I am attempting to remove netbase from a custom image. I would like to replace it with connman. I have added connman through EXTRA_IMAGE_INSTALL, however netbase is brought in via packagegroup-core-boot.bb which funnily enough has some very important features and I would like to keep.

What would be the best way to make this replacement. Should I copy packagegroup-core-boot.bb and keep a local copy, while keeping it in sync manually? Alternatively, I notice quite a few packages in packagegroup-core-boot have a VIRTUAL-RUNTIME_* define. Would it be worth having a VIRTUAL-RUNTIME_network ?= "netbase" which could be overridden?

You don't want to remove netbase, you just want to remove the /etc/network/interfaces file. The rest of netbase is very important to have.

Dig on the list and you'll find patches to split that file out but they didn't get into 1.3. Unless you're working against master and willing to help get those patches tested and merged, the easy solution is to use a .bbappend and ship an empty interfaces file (meta-guacamayo does this if you want prior art).

Ross

#2 lore raw
Quoted 3 lines · Ross

You don't want to remove netbase, you just want to remove the /etc/network/interfaces file. The rest of netbase is very important to have.

Well, FSVO "very important". There's very little in there which is actually indispensible; /etc/hosts is probably the only file that I'd consider to be all that important, and arguably it's a libc bug that this one is necessary. I don't use netbase itself in any of my own images.

p.

#3 lore raw
In reply to Jack Mitchell
Quoted 5 lines · Jack Mitchell

I am attempting to remove netbase from a custom image. I would like to replace it with connman. I have added connman through EXTRA_IMAGE_INSTALL, however netbase is brought in via packagegroup-core-boot.bb which funnily enough has some very important features and I would like to keep.

Quoted 7 lines

What would be the best way to make this replacement. Should I copy packagegroup-core-boot.bb and keep a local copy, while keeping it in sync manually? Alternatively, I notice quite a few packages in packagegroup-core-boot have a VIRTUAL-RUNTIME_* define. Would it be worth having a VIRTUAL-RUNTIME_network ?= "netbase" which could be overridden?

Thoughts?

Even though I agree with Ross that you most probably want to override the interfaces file I think it is nice to be able to override it and the VIRTUAL-RUNTIME_network-base would be a good addition for it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br