Hi,
I'm building an image using a kirkstone release for a banana pi m2
board. I've created wic file with 2 partitions one for rootfs and
second for storage. Storage partition if mounted to /opt/storage and
resized to then end of the SD card.
wks snippet:
part /opt/storage --source rootfs
--rootfs-dir=${IMAGE_ROOTFS}/opt/storage --ondisk mmcblk0
--fstype=ext4 --fsoptions="defaults,x-systemd.growfs" --align 2048
--fixed-size=10M
This works fine. I've also added custom systemd-conf file for
journal.conf which set logs to persistent like:
[Journal]
Storage=persistent
ForwardToSyslog=yes
RuntimeMaxUse=100M
In local.conf I've added: VOLATILE_LOG_DIR = "no" which makes /var/log
non volatile.
When image is build I've added following:
persist_logs() {
mkdir -p ${IMAGE_ROOTFS}/opt/storage/journal
mv ${IMAGE_ROOTFS}/var/log ${IMAGE_ROOTFS}/opt/storage/journal
ln -sf /opt//storage/journal ${IMAGE_ROOTFS}/var/log
}
# Create persistent logs
ROOTFS_POSTPROCESS_COMMAND += "persist_logs; "
But even after all those changes, the journal is saved in /run/var ...
Any ideas what I'm doing wrong?
Thanks and BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59863): https://lists.yoctoproject.org/g/yocto/message/59863
Mute This Topic: https://lists.yoctoproject.org/mt/98678435/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-