mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
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>
This commit is contained in:
@@ -739,7 +739,7 @@ python fixup_perms () {
|
||||
bbpath = d.getVar('BBPATH')
|
||||
fs_perms_tables = d.getVar('FILESYSTEM_PERMS_TABLES')
|
||||
if not fs_perms_tables:
|
||||
fs_perms_tables = 'files/fs-perms.txt'
|
||||
fs_perms_tables = 'files/fs-perms.txt' if oe.types.boolean(d.getVar('VOLATILE_LOG_DIR', True)) else 'files/fs-perms-persistent-log.txt'
|
||||
for conf_file in fs_perms_tables.split():
|
||||
str += " %s" % bb.utils.which(bbpath, conf_file)
|
||||
return str
|
||||
|
||||
Reference in New Issue
Block a user