]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake.conf: add VOLATILE_LOG_DIR variable
authorChen Qi <Qi.Chen@windriver.com>
Tue, 22 Nov 2016 07:36:29 +0000 (15:36 +0800)
committerChen Qi <Qi.Chen@windriver.com>
Wed, 14 Dec 2016 09:04:13 +0000 (17:04 +0800)
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>
meta/conf/bitbake.conf

index 1472e8f847adbf17dba1595edb5209b003d89c0b..0e40c30e321ca9503720cb3b442fb7ab2f48695f 100644 (file)
@@ -83,6 +83,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.
 ##################################################################