summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-07 11:10:36 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-08 08:06:16 +0000
commite8384ba2fa3dc2b32f8f8e17464950475549bd86 (patch)
tree0fae137d95eefd316e81d55597f6002d31fa8469 /meta/recipes-core
parent045eb5913083d34f0854c2e104d7dae3de7634a0 (diff)
downloadpoky-e8384ba2fa3dc2b32f8f8e17464950475549bd86.tar.gz
systemd: Check for directory before chmod'ing it
da9db878a15 systemd: fix dead link /var/log/README add -Dcreate-log-dirs=false which means journal dir will not be generated regardless of VOLATILE_LOG_DIR value if a distro decided to set VOLATILE_LOG_DIR=no this code path will be executes and the directory being operated upon wont exist ending in do_install errors chown: cannot access '/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/systemd/255.4/image/var/log/journal': No such file or directory (From OE-Core rev: e017f405bf6ae6c269a8c9c981878fd1ad8666b6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_255.4.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.4.bb
index d59ca30c12..bcef3e6b7a 100644
--- a/meta/recipes-core/systemd/systemd_255.4.bb
+++ b/meta/recipes-core/systemd/systemd_255.4.bb
@@ -306,7 +306,7 @@ do_install() {
306 # /var/log is typically a symbolic link to inside /var/volatile, 306 # /var/log is typically a symbolic link to inside /var/volatile,
307 # which is expected to be empty. 307 # which is expected to be empty.
308 rm -rf ${D}${localstatedir}/log 308 rm -rf ${D}${localstatedir}/log
309 else 309 elif [ -e ${D}${localstatedir}/log/journal ]; then
310 chown root:systemd-journal ${D}${localstatedir}/log/journal 310 chown root:systemd-journal ${D}${localstatedir}/log/journal
311 311
312 # journal-remote creates this at start 312 # journal-remote creates this at start