summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2017-08-16 19:57:18 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-18 10:40:26 +0100
commit3920d199edc071122a217e6a393a2914fcbc1e22 (patch)
treefea1cf7e5f96d133c315a887f4f8bd9fba98879a /meta/classes/package.bbclass
parent8c69b6ab8573ff5308c93691599f13810d338755 (diff)
downloadpoky-3920d199edc071122a217e6a393a2914fcbc1e22.tar.gz
package.bbclass: support persistent /var/log
Add a new file, fs-perms-persistent-log.txt, which treats /var/log as a directory instead of a link. Modify package.bbclass to use this file if VOLATILE_LOG_DIR is set to boolean false value. [YOCTO #6132] (From OE-Core rev: 6b22e247bf91f112401cad822cd7fe0b5621ffe0) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 2fe30dac0c..a051617ee1 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -739,7 +739,7 @@ python fixup_perms () {
739 bbpath = d.getVar('BBPATH') 739 bbpath = d.getVar('BBPATH')
740 fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES') 740 fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES')
741 if not fs_perms_tables: 741 if not fs_perms_tables:
742 fs_perms_tables = 'files/fs-perms.txt' 742 fs_perms_tables = 'files/fs-perms.txt' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR', True)) else 'files/fs-perms-persistent-log.txt'
743 for conf_file in fs_perms_tables.split(): 743 for conf_file in fs_perms_tables.split():
744 str += " %s" % bb.utils.which(bbpath, conf_file) 744 str += " %s" % bb.utils.which(bbpath, conf_file)
745 return str 745 return str