Re: [OE-core] [oe-core][rocko][sumo][master][PATCH 1/2] bitbake.conf: add PERSISTENT_LOG_DIR variable

2018-08-24 Thread Ankur Tyagi
Ping

Regards
Ankur

On Sat 18 Aug, 2018, 12:59 PM Ankur Tyagi,  wrote:

> This variable is only respected when VOLATILE_LOG_DIR is "no".
>
> The default value is "" which results in the /var/log being log directory.
>
> The user could override this value to a path e.g "/home/root/log" which
> results /var/log being a link pointing to /home/root/log directory on
> persistent storage.
>
> Signed-off-by: Ankur Tyagi 
> ---
>  meta/conf/bitbake.conf | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index e5dc1ac..9db22c8 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -88,6 +88,8 @@ ROOT_HOME ??= "/home/root"
>  # If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log links
> to /var/volatile/log.
>  # If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is on
> persistent storage.
>  VOLATILE_LOG_DIR ?= "yes"
> +# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log
> links to PERSISTENT_LOG_DIR
> +PERSISTENT_LOG_DIR ??= ""
>
>  ##
>  # Architecture-dependent build variables.
> --
> 2.7.4
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [oe-core][rocko][sumo][master][PATCH 1/2] bitbake.conf: add PERSISTENT_LOG_DIR variable

2018-08-22 Thread Ankur Tyagi
Ping

Regards
Ankur

On Mon 20 Aug, 2018, 9:12 PM Ankur Tyagi,  wrote:

> Initially I thought of doing that but then dropped it because it would
> create a dependency on syslog configuration file.
> If in future syslog configuration parameter (LOGFILE) gets renamed, then
> we need to make corresponding change as well.
>
> I think creating /var/log as a link is a less dependent change.
>
> Let me know your thoughts.
>
> Regards
> Ankur
>
> On Mon, Aug 20, 2018 at 1:49 PM ChenQi  wrote:
>
>> The requirement is to put logs into directories other than /var/log.
>> Could it be achieved by modifying the syslog daemon configuration file
>> (e.g. /etc/syslog.conf) to replace /var/log with the specified
>> directory. Maybe the corresponding logrotate configuration file also
>> needs to be modified.
>>
>> Best Regards,
>> Chen Qi
>>
>> On 08/18/2018 08:59 AM, Ankur Tyagi wrote:
>> > This variable is only respected when VOLATILE_LOG_DIR is "no".
>> >
>> > The default value is "" which results in the /var/log being log
>> directory.
>> >
>> > The user could override this value to a path e.g "/home/root/log" which
>> > results /var/log being a link pointing to /home/root/log directory on
>> > persistent storage.
>> >
>> > Signed-off-by: Ankur Tyagi 
>> > ---
>> >   meta/conf/bitbake.conf | 2 ++
>> >   1 file changed, 2 insertions(+)
>> >
>> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
>> > index e5dc1ac..9db22c8 100644
>> > --- a/meta/conf/bitbake.conf
>> > +++ b/meta/conf/bitbake.conf
>> > @@ -88,6 +88,8 @@ ROOT_HOME ??= "/home/root"
>> >   # If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log
>> links to /var/volatile/log.
>> >   # If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is
>> on persistent storage.
>> >   VOLATILE_LOG_DIR ?= "yes"
>> > +# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log
>> links to PERSISTENT_LOG_DIR
>> > +PERSISTENT_LOG_DIR ??= ""
>> >
>> >   ##
>> >   # Architecture-dependent build variables.
>>
>>
>>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [oe-core][rocko][sumo][master][PATCH 1/2] bitbake.conf: add PERSISTENT_LOG_DIR variable

2018-08-20 Thread Ankur Tyagi
Initially I thought of doing that but then dropped it because it would
create a dependency on syslog configuration file.
If in future syslog configuration parameter (LOGFILE) gets renamed, then we
need to make corresponding change as well.

I think creating /var/log as a link is a less dependent change.

Let me know your thoughts.

Regards
Ankur

On Mon, Aug 20, 2018 at 1:49 PM ChenQi  wrote:

> The requirement is to put logs into directories other than /var/log.
> Could it be achieved by modifying the syslog daemon configuration file
> (e.g. /etc/syslog.conf) to replace /var/log with the specified
> directory. Maybe the corresponding logrotate configuration file also
> needs to be modified.
>
> Best Regards,
> Chen Qi
>
> On 08/18/2018 08:59 AM, Ankur Tyagi wrote:
> > This variable is only respected when VOLATILE_LOG_DIR is "no".
> >
> > The default value is "" which results in the /var/log being log
> directory.
> >
> > The user could override this value to a path e.g "/home/root/log" which
> > results /var/log being a link pointing to /home/root/log directory on
> > persistent storage.
> >
> > Signed-off-by: Ankur Tyagi 
> > ---
> >   meta/conf/bitbake.conf | 2 ++
> >   1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index e5dc1ac..9db22c8 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -88,6 +88,8 @@ ROOT_HOME ??= "/home/root"
> >   # If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log
> links to /var/volatile/log.
> >   # If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is
> on persistent storage.
> >   VOLATILE_LOG_DIR ?= "yes"
> > +# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log
> links to PERSISTENT_LOG_DIR
> > +PERSISTENT_LOG_DIR ??= ""
> >
> >   ##
> >   # Architecture-dependent build variables.
>
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [oe-core][rocko][sumo][master][PATCH 1/2] bitbake.conf: add PERSISTENT_LOG_DIR variable

2018-08-19 Thread ChenQi

The requirement is to put logs into directories other than /var/log.
Could it be achieved by modifying the syslog daemon configuration file 
(e.g. /etc/syslog.conf) to replace /var/log with the specified 
directory. Maybe the corresponding logrotate configuration file also 
needs to be modified.


Best Regards,
Chen Qi

On 08/18/2018 08:59 AM, Ankur Tyagi wrote:

This variable is only respected when VOLATILE_LOG_DIR is "no".

The default value is "" which results in the /var/log being log directory.

The user could override this value to a path e.g "/home/root/log" which
results /var/log being a link pointing to /home/root/log directory on
persistent storage.

Signed-off-by: Ankur Tyagi 
---
  meta/conf/bitbake.conf | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e5dc1ac..9db22c8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -88,6 +88,8 @@ ROOT_HOME ??= "/home/root"
  # If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log links to 
/var/volatile/log.
  # If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is on 
persistent storage.
  VOLATILE_LOG_DIR ?= "yes"
+# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log links 
to PERSISTENT_LOG_DIR
+PERSISTENT_LOG_DIR ??= ""
  
  ##

  # Architecture-dependent build variables.



--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [oe-core][rocko][sumo][master][PATCH 1/2] bitbake.conf: add PERSISTENT_LOG_DIR variable

2018-08-17 Thread Ankur Tyagi
This variable is only respected when VOLATILE_LOG_DIR is "no".

The default value is "" which results in the /var/log being log directory.

The user could override this value to a path e.g "/home/root/log" which
results /var/log being a link pointing to /home/root/log directory on
persistent storage.

Signed-off-by: Ankur Tyagi 
---
 meta/conf/bitbake.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e5dc1ac..9db22c8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -88,6 +88,8 @@ ROOT_HOME ??= "/home/root"
 # If set to boolean true ('yes', 'y', 'true', 't', '1'), /var/log links to 
/var/volatile/log.
 # If set to boolean false ('no', 'n', 'false', 'f', '0'), /var/log is on 
persistent storage.
 VOLATILE_LOG_DIR ?= "yes"
+# If VOLATILE_LOG_DIR is false and PERSISTENT_LOG_DIR is set, /var/log links 
to PERSISTENT_LOG_DIR
+PERSISTENT_LOG_DIR ??= ""
 
 ##
 # Architecture-dependent build variables.
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core