* FILESEXTRAPATHS_prepend fails for systemd
@ 2015-10-02 15:58 Fred Ollinger
2015-10-02 16:37 ` Martin Jansa
2015-10-02 16:44 ` Christopher Larson
0 siblings, 2 replies; 9+ messages in thread
From: Fred Ollinger @ 2015-10-02 15:58 UTC (permalink / raw)
To: yocto@yoctoproject.org
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 15:58 FILESEXTRAPATHS_prepend fails for systemd Fred Ollinger
@ 2015-10-02 16:37 ` Martin Jansa
2015-10-02 16:44 ` Christopher Larson
1 sibling, 0 replies; 9+ messages in thread
From: Martin Jansa @ 2015-10-02 16:37 UTC (permalink / raw)
To: Fred Ollinger; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]
On Fri, Oct 02, 2015 at 03:58:04PM +0000, Fred Ollinger wrote:
> 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}:"
This works only for files listed in SRC_URI, that's not the case for
journald.conf which is included directly in systemd sources.
>
> 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
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 15:58 FILESEXTRAPATHS_prepend fails for systemd Fred Ollinger
2015-10-02 16:37 ` Martin Jansa
@ 2015-10-02 16:44 ` Christopher Larson
2015-10-02 17:26 ` Daniel.
1 sibling, 1 reply; 9+ messages in thread
From: Christopher Larson @ 2015-10-02 16:44 UTC (permalink / raw)
To: Fred Ollinger; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 374 bytes --]
On Fri, Oct 2, 2015 at 8:58 AM, Fred Ollinger <Fred.Ollinger@seescan.com>
wrote:
> I'm trying to change my /etc/systemd/journald.conf file.
>
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
[-- Attachment #2: Type: text/html, Size: 776 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 16:44 ` Christopher Larson
@ 2015-10-02 17:26 ` Daniel.
2015-10-02 18:11 ` Daniel.
0 siblings, 1 reply; 9+ messages in thread
From: Daniel. @ 2015-10-02 17:26 UTC (permalink / raw)
To: Christopher Larson; +Cc: yocto@yoctoproject.org
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 <clarson@kergoth.com>:
>
> On Fri, Oct 2, 2015 at 8:58 AM, Fred Ollinger <Fred.Ollinger@seescan.com>
> wrote:
>>
>> I'm trying to change my /etc/systemd/journald.conf file.
>
>
> 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
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
--
"Do or do not. There is no try"
Yoda Master
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 17:26 ` Daniel.
@ 2015-10-02 18:11 ` Daniel.
2015-10-02 18:21 ` Christopher Larson
0 siblings, 1 reply; 9+ messages in thread
From: Daniel. @ 2015-10-02 18:11 UTC (permalink / raw)
Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]
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. <danielhilst@gmail.com>:
> 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 <clarson@kergoth.com>:
> >
> > On Fri, Oct 2, 2015 at 8:58 AM, Fred Ollinger <Fred.Ollinger@seescan.com
> >
> > wrote:
> >>
> >> I'm trying to change my /etc/systemd/journald.conf file.
> >
> >
> > 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
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
>
>
>
> --
> "Do or do not. There is no try"
> Yoda Master
>
--
*"Do or do not. There is no try"*
*Yoda Master*
[-- Attachment #2: Type: text/html, Size: 2355 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 18:11 ` Daniel.
@ 2015-10-02 18:21 ` Christopher Larson
2015-10-02 18:22 ` Daniel.
0 siblings, 1 reply; 9+ messages in thread
From: Christopher Larson @ 2015-10-02 18:21 UTC (permalink / raw)
To: Daniel.; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 651 bytes --]
On Fri, Oct 2, 2015 at 11:11 AM, Daniel. <danielhilst@gmail.com> wrote:
> 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
[-- Attachment #2: Type: text/html, Size: 1003 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 18:21 ` Christopher Larson
@ 2015-10-02 18:22 ` Daniel.
2015-10-02 18:24 ` Christopher Larson
0 siblings, 1 reply; 9+ messages in thread
From: Daniel. @ 2015-10-02 18:22 UTC (permalink / raw)
To: Christopher Larson; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 888 bytes --]
Where can I find this recipetool!? It seems a nice tool to have :)
2015-10-02 15:21 GMT-03:00 Christopher Larson <clarson@kergoth.com>:
>
> On Fri, Oct 2, 2015 at 11:11 AM, Daniel. <danielhilst@gmail.com> wrote:
>
>> 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
>
--
*"Do or do not. There is no try"*
*Yoda Master*
[-- Attachment #2: Type: text/html, Size: 1650 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 18:22 ` Daniel.
@ 2015-10-02 18:24 ` Christopher Larson
2015-10-02 18:26 ` Daniel.
0 siblings, 1 reply; 9+ messages in thread
From: Christopher Larson @ 2015-10-02 18:24 UTC (permalink / raw)
To: Daniel.; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
On Fri, Oct 2, 2015 at 11:22 AM, Daniel. <danielhilst@gmail.com> wrote:
> 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
[-- Attachment #2: Type: text/html, Size: 793 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FILESEXTRAPATHS_prepend fails for systemd
2015-10-02 18:24 ` Christopher Larson
@ 2015-10-02 18:26 ` Daniel.
0 siblings, 0 replies; 9+ messages in thread
From: Daniel. @ 2015-10-02 18:26 UTC (permalink / raw)
To: Christopher Larson; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 669 bytes --]
Daisy doesn't have it :(
Thank you for this information :)
Cheers,
2015-10-02 15:24 GMT-03:00 Christopher Larson <clarson@kergoth.com>:
>
> On Fri, Oct 2, 2015 at 11:22 AM, Daniel. <danielhilst@gmail.com> wrote:
>
>> 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
>
--
*"Do or do not. There is no try"*
*Yoda Master*
[-- Attachment #2: Type: text/html, Size: 1480 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-10-02 18:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 15:58 FILESEXTRAPATHS_prepend fails for systemd Fred Ollinger
2015-10-02 16:37 ` Martin Jansa
2015-10-02 16:44 ` Christopher Larson
2015-10-02 17:26 ` Daniel.
2015-10-02 18:11 ` Daniel.
2015-10-02 18:21 ` Christopher Larson
2015-10-02 18:22 ` Daniel.
2015-10-02 18:24 ` Christopher Larson
2015-10-02 18:26 ` Daniel.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.