FILESEXTRAPATHS_prepend fails for systemd
I'm trying to change my /etc/systemd/journald.conf file.
I have created a file in:
our_system/recipe-core/systemd_%.bbappend
With the contents:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
I created a directory in the same path called "systemd" and placed our new version of journald.conf in it.
Then I did:
bitbake -c cleanall systemd && bitbake systemd bitbake -c cleanall our_image && bitbake our_image
Then I checked and the old journald.conf is still installed.
What am I doing wrong?
Frederick
Quoted 6 lines · Fred Ollinger
I'm trying to change my
/etc/systemd/journald.conffile.I have created a file in:
Quoted 7 lines
our_system/recipe-core/systemd_%.bbappend
With the contents:
FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"
This works only for files listed in SRC_URI, that's not the case for journald.conf which is included directly in systemd sources.
Quoted 19 lines
I created a directory in the same path called "systemd" and placed our new version of journald.conf in it.
Then I did:
bitbake -c cleanall systemd && bitbake systemd bitbake -c cleanall
our_image&& bitbakeour_imageThen I checked and the old journald.conf is still installed.
What am I doing wrong?
Frederick
Signature · 4 lines
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 2 lines · Fred Ollinger
I'm trying to change my
/etc/systemd/journald.conffile.
recipetool appendfile sounds like exactly what you want here.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
You can solve this by editing the original journal.conf, creating a patch with modifications and adding it to your .bbappend
2015-10-02 13:44 GMT-03:00 Christopher Larson <[email protected]>:
Quoted 21 lines
Quoted 2 lines · Fred Ollinger
I'm trying to change my
/etc/systemd/journald.conffile.recipetool appendfile sounds like exactly what you want here. --
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib
Senior Software Engineer, Mentor Graphics--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 2 lines
"Do or do not. There is no try" Yoda Master
But this will only work if journald.conf are the same in all systemd versions (since you use a _%.bbappend). A better solution would be append install task with a copy from your custom journald.conf to install folder, something like:
do_install_append() {
cp ${S}/myjournald.conf ${D}/propper/path/to/journald.conf
}Cheers,
2015-10-02 14:26 GMT-03:00 Daniel. <[email protected]>:
Quoted 33 lines
You can solve this by editing the original journal.conf, creating a patch with modifications and adding it to your .bbappend
2015-10-02 13:44 GMT-03:00 Christopher Larson <[email protected]>:
Quoted 16 lines
On Fri, Oct 2, 2015 at 8:58 AM, Fred Ollinger <[email protected]
Quoted 2 lines · wrote:
I'm trying to change my
/etc/systemd/journald.conffile.recipetool appendfile sounds like exactly what you want here. --
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib
Senior Software Engineer, Mentor GraphicsQuoted 6 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
"Do or do not. There is no try"
Yoda Master
Signature · 2 lines
*"Do or do not. There is no try"* *Yoda Master*
Quoted 8 lines · Daniel.
But this will only work if journald.conf are the same in all systemd versions (since you use a _%.bbappend). A better solution would be append install task with a copy from your custom journald.conf to install folder, something like:
do_install_append() { cp ${S}/myjournald.conf ${D}/propper/path/to/journald.conf }
Which is precisely what recipetool appendfile will do for you :)
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Where can I find this recipetool!? It seems a nice tool to have :)
2015-10-02 15:21 GMT-03:00 Christopher Larson <[email protected]>:
Quoted 21 lines · Daniel.
Quoted 9 lines
But this will only work if journald.conf are the same in all systemd versions (since you use a _%.bbappend). A better solution would be append install task with a copy from your custom journald.conf to install folder, something like:
do_install_append() { cp ${S}/myjournald.conf ${D}/propper/path/to/journald.conf }Which is precisely what recipetool appendfile will do for you :) --
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
Signature · 2 lines
*"Do or do not. There is no try"* *Yoda Master*
Quoted 2 lines · Daniel.
Where can I find this recipetool!? It seems a nice tool to have :)
It's in oe-core/scripts or poky/scripts in any recent release. It'll be in the PATH after sourcing the setup scripts.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
Daisy doesn't have it :(
Thank you for this information :)
Cheers,
2015-10-02 15:24 GMT-03:00 Christopher Larson <[email protected]>:
Quoted 15 lines · Daniel.
Quoted 3 lines
Where can I find this recipetool!? It seems a nice tool to have :)
It's in oe-core/scripts or poky/scripts in any recent release. It'll be in the PATH after sourcing the setup scripts.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
Signature · 2 lines
*"Do or do not. There is no try"* *Yoda Master*