Skip to contentSkip to conversation

how to change system files

DISCUSSION Jaap de Jong 3 participants 7 messages Jun 28, 2011 – Jun 30, 2011

lore
Share & tools
lore
#0 lore raw

Hi All,

annoying question here...

What is the best way to change files like /etc/network/interfaces?
I have about 5 files or so that already are supplied by (default) packages; they are not in 1 package. I would like to have them in one package that I own so that I can easily update them, but this is not necessary. Is overlays the way to go?

Thanks!
Jaap

#1 lore raw
Quoted 6 lines · Jaap de Jong

What is the best way to change files like /etc/network/interfaces? I have about 5 files or so that already are supplied by (default) packages; they are not in 1 package.
I would like to have them in one package that I own so that I can easily update them, but this is not necessary.
Is overlays the way to go?

I'm handling this by using .bbappend's in a local layer.
This won't give you one package, rather the ability to replace/add files (e.g. /etc/network/interfaces) in the standard packages.

Regards,
Anders

#2 lore raw
Quoted 11 lines · Anders Darander
Quoted 6 lines · Jaap de Jong

What is the best way to change files like /etc/network/interfaces? I have about 5 files or so that already are supplied by (default) packages; they are not in 1 package.
I would like to have them in one package that I own so that I can easily update them, but this is not necessary.
Is overlays the way to go?

I'm handling this by using .bbappend's in a local layer.
This won't give you one package, rather the ability to replace/add files (e.g. /etc/network/interfaces) in the standard packages.

Yeah, but what if I decide at a certain point in time to change the /etc/network/interfaces file? Normally I would increment PR in the bb file and then build it.
And finally at the target I would do opkg upgrade.

Jaap

#3 lore raw
Quoted 4 lines · Jaap de Jong

Yeah, but what if I decide at a certain point in time to change the /etc/network/interfaces file?
Normally I would increment PR in the bb file and then build it. And finally at the target I would do opkg upgrade.

Just the same. Increment PR in your .bbappend, rebuild, opkg upgrade.

p.

#4 lore raw
In reply to Jaap de Jong
Quoted 5 lines · Jaap de Jong

On 06/28/2011 11:23 AM, Anders Darander wrote:
Yeah, but what if I decide at a certain point in time to change the /etc/network/interfaces file?
Normally I would increment PR in the bb file and then build it. And finally at the target I would do opkg upgrade.

Just as Phil said, you increment PR in your .bbappend-file.

I'm oftend appending to the PR in my .bbappend-files.

Regards,
Anders

#5 lore raw
Quoted 9 lines · Anders Darander
Quoted 5 lines · Jaap de Jong

On 06/28/2011 11:23 AM, Anders Darander wrote:
Yeah, but what if I decide at a certain point in time to change the /etc/network/interfaces file?
Normally I would increment PR in the bb file and then build it. And finally at the target I would do opkg upgrade.

Just as Phil said, you increment PR in your .bbappend-file.

I'm oftend appending to the PR in my .bbappend-files.

Thanks! I will try it.

#6 lore raw
In reply to Anders Darander
Quoted 10 lines · Anders Darander
Quoted 5 lines · Jaap de Jong

On 06/28/2011 11:23 AM, Anders Darander wrote:
Yeah, but what if I decide at a certain point in time to change the /etc/network/interfaces file?
Normally I would increment PR in the bb file and then build it. And finally at the target I would do opkg upgrade.

Just as Phil said, you increment PR in your .bbappend-file.

I'm oftend appending to the PR in my .bbappend-files.

I'm having some trouble with it...

If I want to use .bbappend do I need to add bblayers as well?

If I don't I get this error message:

ERROR: /home/jdj/oe/mystuff/recipes/netbase/netbase_4.21.bbappend is not a BitBake file while parsing /home/jdj/oe/mystuff/recipes/netbase/netbase_4.21.bbappend

Where /home/jdj/oe/mystuff/recipes/netbase/netbase_4.21.bbappend is:

   FILESEXTRAPATHS := "${THISDIR}/${PN}-${PV}"
   PRINC = "1"

If I do use bblayers, I'm not sure about my local.conf. It contains some

BBFILES, BBFILE_COLLECTIONS, BBFILE_PATTERN_xxx and BBFILE_PRIORITY_xxx lines

If I remove these lines then it looks like bitbake can't find any recipe.

Jaap