From 8b5f88e80bb9f419e728c9a30cf23901d8c2891b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 15 May 2015 11:12:02 +0200 Subject: [PATCH] syslog: Do not re-create the symbolic link In SYS#659 we wanted that "file" will always log to a persistent /var/log. After I changed the /etc/default/volatiles/00_core for the IDU and made journald persistent we still ended up having the symlink. It appears to be caused by this script. * When "buffer" is used we don't need to care about /var/log as it is not being used at all. * When "file" is set we make sure that /var/log is not a symlink. In case of the IDU the journald should now be persistent. Related: SYS#659 --- recipes-core/busybox/busybox-systemd/busybox-syslog.default | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/recipes-core/busybox/busybox-systemd/busybox-syslog.default b/recipes-core/busybox/busybox-systemd/busybox-syslog.default index 7af2953..3524da8 100644 --- a/recipes-core/busybox/busybox-systemd/busybox-syslog.default +++ b/recipes-core/busybox/busybox-systemd/busybox-syslog.default @@ -2,11 +2,7 @@ . /etc/syslog-startup.conf # check if we want permanent log files and prepare /var/log -if [ "${DESTINATION}" = "buffer" -a ! -h /var/log ]; then - rm -rf /var/log - cd /var - ln -s volatile/log log -elif [ "${DESTINATION}" = "file" -a -h "/var/log" ]; then +if [ "${DESTINATION}" = "file" -a -h "/var/log" ]; then rm -rf /var/log mkdir /var/log fi