<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 &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt; 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>
&gt; This variable is only respected when VOLATILE_LOG_DIR is &quot;no&quot;.<br>
&gt;<br>
&gt; The default value is &quot;&quot; which results in the /var/log being log directory.<br>
&gt;<br>
&gt; The user could override this value to a path e.g &quot;/home/root/log&quot; which<br>
&gt; results /var/log being a link pointing to /home/root/log directory on<br>
&gt; persistent storage.<br>
&gt;<br>
&gt; Signed-off-by: Ankur Tyagi &lt;<a href="mailto:ankur.tyagi85@gmail.com" target="_blank">ankur.tyagi85@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;   meta/conf/bitbake.conf | 2 ++<br>
&gt;   1 file changed, 2 insertions(+)<br>
&gt;<br>
&gt; diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf<br>
&gt; index e5dc1ac..9db22c8 100644<br>
&gt; --- a/meta/conf/bitbake.conf<br>
&gt; +++ b/meta/conf/bitbake.conf<br>
&gt; @@ -88,6 +88,8 @@ ROOT_HOME ??= &quot;/home/root&quot;<br>
&gt;   # If set to boolean true (&#39;yes&#39;, &#39;y&#39;, &#39;true&#39;, &#39;t&#39;, &#39;1&#39;), /var/log links to /var/volatile/log.<br>
&gt;   # If set to boolean false (&#39;no&#39;, &#39;n&#39;, &#39;false&#39;, &#39;f&#39;, &#39;0&#39;), /var/log is on persistent storage.<br>
&gt;   VOLATILE_LOG_DIR ?= &quot;yes&quot;<br>
&gt; +# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log links to PERSISTENT_LOG_DIR<br>
&gt; +PERSISTENT_LOG_DIR ??= &quot;&quot;<br>
&gt;   <br>
&gt;   ##################################################################<br>
&gt;   # Architecture-dependent build variables.<br>
<br>
<br>
</blockquote></div></div>