Skip to contentSkip to conversation

making /var/log persistent

DISCUSSION Jack Mitchell 2 participants 2 messages Aug 12, 2015

lore
Share & tools
lore
#0 lore raw

I'm trying to make /var/log persistent and I'm having trouble. I've made a bbappend to base_files which contains:

dirs755_append = " \
        /var/log \

"

volatiles = "tmp"

Looking in the resulting image, /var/log is indeed now a directory and not a symlink to volatile storage, however when the image is flashed to target and booted it is reverted back to being a symlink; I assume by some init script?

Can anyone shed any light on what more is required to get a persistent log directory.

Cheers,
Jack.

#1 lore raw
Quoted 6 lines · Jack Mitchell

I'm trying to make /var/log persistent and I'm having trouble. I've made a bbappend to base_files which contains:

dirs755_append = " \
        /var/log \

"

Quoted 8 lines

volatiles = "tmp"

Looking in the resulting image, /var/log is indeed now a directory and not a symlink to volatile storage, however when the image is flashed to target and booted it is reverted back to being a symlink; I assume by some init script?

Can anyone shed any light on what more is required to get a persistent log directory.

Cheers,
Jack.

I sent out a series of patches regarding this area.
The patch title is "[OE-core] [PATCH 0/4] Support persistent /var/log".

Regards,
Chen Qi