]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: add VOLATILE_LOG_DIR variable
authorChen Qi <Qi.Chen@windriver.com>
Wed, 16 Aug 2017 11:57:15 +0000 (19:57 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Aug 2017 09:04:30 +0000 (10:04 +0100)
The default value is "yes" which results in the /var/log being a link
pointing to /var/volatile/log which is on tmpfs.

Setting valid boolean false value ('no', 'n', 'false', 'f', '0') would make
/var/log to be a directory on persistent storage.

[YOCTO #6132]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 3110b9c6edfd33f220d369e3ce18093bcf79c43f..334ba2361f42e0632ef4c537ea492f92e3d92a9c 100644 (file)
@@ -85,6 +85,10 @@ USRBINPATH_class-nativesdk = "/usr/bin"
 # Root home directory
 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"
+
 ##################################################################
 # Architecture-dependent build variables.
 ##################################################################