[oe] [meta-oe 3/3] systemd: enable logging to disk instead of tmpfs

Koen Kooi koen at dominion.thruhere.net
Mon Mar 5 21:32:59 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 05-03-12 21:55, Otavio Salvador schreef:
> On Mon, Mar 5, 2012 at 17:29, Koen Kooi <koen at dominion.thruhere.net>
> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Op 05-03-12 19:12, Otavio Salvador schreef:
>>> On Mon, Mar 5, 2012 at 14:37, Koen Kooi <koen at dominion.thruhere.net> 
>>> wrote:
>>>> +       # create dir for journal +       install -d 
>>>> ${D}${localstatedir}/log/journal
>>> 
>>> I'd prefer if journal could default to use a buffer or something
>>> similar instead of writting to disk as we ought to be careful about
>>> space in embedded devices, in general.
>> 
>> And that's why patch 1/3 enables xz compression :)
> 
> I understand however I think that write the log to the disk by default is
> wrong. We can do it by machine basis or other type of override by by
> default we ought to avoid writting to disk.

Right now it's logging to tmpfs, which takes up ram, which more scarce than
disk. You can easily remove /var/log/journal in ROOTFS_POSTPROCESS_CMD to
make it log to tmpfs again.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk9VMQgACgkQMkyGM64RGpErSwCfZpPPFTm/pOM6926bD7IYh3JV
TjEAoI6cWZX5RdaT/ArpIf14+/yqXif3
=CY6W
-----END PGP SIGNATURE-----





More information about the Openembedded-devel mailing list