]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
dnf: only write the log lock to root for native dnf
authorChangqing Li <changqing.li@windriver.com>
Fri, 30 Jun 2023 09:14:50 +0000 (17:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jul 2023 10:36:06 +0000 (11:36 +0100)
commit7610f81586bd475f28fd3d89a7350771720c3264
tree555aa74c26cd65ad56b22bfbb3aee6b68899c6be
parentb9f1d1ec162531e0ce59ea829ae570ca907b3448
dnf: only write the log lock to root for native dnf

From commit 742a1b7124, log_lock.pid is writen to root, but following
file is not changed, which will make it never deleted, and an unexpected
file exist in root dir after boot target.

$ tail  -n 1 etc/tmpfiles.d/dnf.conf
r /var/log/log_lock.pid

Besides, root dir may be read-only, so it is better still
keep the log_lock.pid under /var/log, only write the log lock to root
for native dnf for fixing issue mentioned in 742a1b7124

(From OE-Core rev: 5f1471158dfcd9a85fe910e49c5df25cb96ffe69)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dnf/dnf_4.16.1.bb