mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
initscripts: support persistent /var/log
Respect VOLATILE_VAR_LOG variable so that if it's set to any valid boolean false value, we could have persistent /var/log on the final image. [YOCTO #6132] (From OE-Core rev: 50914c4a84e0fb6b9bf6bb1864a2d653218753ce) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -102,6 +102,9 @@ do_install () {
|
||||
install -m 0755 ${WORKDIR}/read-only-rootfs-hook.sh ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/save-rtc.sh ${D}${sysconfdir}/init.d
|
||||
install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/00_core
|
||||
if [ ${@ oe.types.boolean('${VOLATILE_LOG_DIR}') } = True ]; then
|
||||
echo "l root root 0755 /var/log /var/volatile/log" >> ${D}${sysconfdir}/default/volatiles/00_core
|
||||
fi
|
||||
install -m 0755 ${WORKDIR}/dmesg.sh ${D}${sysconfdir}/init.d
|
||||
install -m 0644 ${WORKDIR}/logrotate-dmesg.conf ${D}${sysconfdir}/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user