Discussion:
[Gumstix-users] yocto dizzy. how to make /var/log permanent ?
kris duff
2016-12-09 21:29:27 UTC
Permalink
Hello,
I am using yocto dizzy with the gumstix layer.
I have customized the gumstix-console-image for my needs.
I have seen that the directory /var/log is a link to /var/volatile
How can I change that ?  I want to keep my logs
Thank you very much !
Kris
Akram Hameed
2016-12-12 02:39:16 UTC
Permalink
Hi Kris,

I personally just reconfigure my syslogger to point someplace else, but if
you want to actually create /var/log on permanent storage, there's
different things to do depending on if you use sysvinit or systemd
unfortunately. Yocto has a few little magicks regarding volatile
directories, but you might take a look at this if you use systemd:
https://github.com/gumstix/yocto-manifest/issues/62

For me, on sysvinit, I tweaked the initscripts package. Systemd the above
link might help you out.

Cheers,

Akram
Post by kris duff
Hello,
I am using yocto dizzy with the gumstix layer.
I have customized the gumstix-console-image for my needs.
I have seen that the directory /var/log is a link to /var/volatile
How can I change that ? I want to keep my logs
Thank you very much !
Kris
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
gumstix-users mailing list
https://lists.sourceforge.net/lists/listinfo/gumstix-users
kris duff
2016-12-13 16:06:25 UTC
Permalink
Hi Akram,
Thank you a lot for your answer, I also think that the best way to do it is to place it somewhere else.
Thank you for the links!
Kris

On Sunday, December 11, 2016 9:39 PM, Akram Hameed <***@aq1systems.com> wrote:


Hi Kris,
I personally just reconfigure my syslogger to point someplace else, but if you want to actually create /var/log on permanent storage, there's different things to do depending on if you use sysvinit or systemd unfortunately. Yocto has a few little magicks regarding volatile directories, but you might take a look at this if you use systemd: https://github.com/gumstix/yocto-manifest/issues/62
For me, on sysvinit, I tweaked the initscripts package. Systemd the above link might help you out.
Cheers,
Akram
On Sat, Dec 10, 2016 at 8:29 AM, kris duff <***@yahoo.ca> wrote:

Hello,
I am using yocto dizzy with the gumstix layer.
I have customized the gumstix-console-image for my needs.
I have seen that the directory /var/log is a link to /var/volatile
How can I change that ?  I want to keep my logs
Thank you very much !
Kris
------------------------------ ------------------------------ ------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
______________________________ _________________
gumstix-users mailing list
gumstix-***@lists. sourceforge.net
https://lists.sourceforge.net/ lists/listinfo/gumstix-users

Loading...