<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Initially I thought of doing that but then dropped it because it would create a dependency on syslog configuration file.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If in future syslog configuration parameter (LOGFILE) gets renamed, then we need to make corresponding change as well.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I think creating /var/log as a link is a less dependent change.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Let me know your thoughts.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Ankur</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 20, 2018 at 1:49 PM ChenQi <<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The requirement is to put logs into directories other than /var/log.<br>
Could it be achieved by modifying the syslog daemon configuration file <br>
(e.g. /etc/syslog.conf) to replace /var/log with the specified <br>
directory. Maybe the corresponding logrotate configuration file also <br>
needs to be modified.<br>
<br>
Best Regards,<br>
Chen Qi<br>
<br>
On 08/18/2018 08:59 AM, Ankur Tyagi wrote:<br>
> This variable is only respected when VOLATILE_LOG_DIR is "no".<br>
><br>
> The default value is "" which results in the /var/log being log directory.<br>
><br>
> The user could override this value to a path e.g "/home/root/log" which<br>
> results /var/log being a link pointing to /home/root/log directory on<br>
> persistent storage.<br>
><br>
> Signed-off-by: Ankur Tyagi <<a href="mailto:ankur.tyagi85@gmail.com" target="_blank">ankur.tyagi85@gmail.com</a>><br>
> ---<br>
> meta/conf/bitbake.conf | 2 ++<br>
> 1 file changed, 2 insertions(+)<br>
><br>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf<br>
> index e5dc1ac..9db22c8 100644<br>
> --- a/meta/conf/bitbake.conf<br>
> +++ b/meta/conf/bitbake.conf<br>
> @@ -88,6 +88,8 @@ ROOT_HOME ??= "/home/root"<br>
> # If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log links to /var/volatile/log.<br>
> # If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is on persistent storage.<br>
> VOLATILE_LOG_DIR ?= "yes"<br>
> +# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log links to PERSISTENT_LOG_DIR<br>
> +PERSISTENT_LOG_DIR ??= ""<br>
> <br>
> ##################################################################<br>
> # Architecture-dependent build variables.<br>
<br>
<br>
</blockquote></div></div>