Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-16 Thread Alexander Kanavin
On Fri, 15 Mar 2024 at 02:43, Changqing Li wrote: > This issue only happened when dnf log rotate is happened. maybe install > "a lot" packages can trigger reproduce this issue more quickly. Maybe logrotate threshold can as well be adjusted to happen on small, easily reproducible installations?

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-14 Thread Changqing Li
On 3/7/24 19:42, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, 7 Mar 2024 at 11:21, Chen Qi via lists.openembedded.org wrote: You can see

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Peter Kjellerstedt
bedded.org > Subject: Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit > > On Thu, 7 Mar 2024 at 11:21, Chen Qi via lists.openembedded.org > wrote: > > You can see dnf's solution is: https://github.com/rpm-software- > management/dnf/blob/master/etc/tmpfiles.d

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Alexander Kanavin
On Thu, 7 Mar 2024 at 11:21, Chen Qi via lists.openembedded.org wrote: > You can see dnf's solution is: > https://github.com/rpm-software-management/dnf/blob/master/etc/tmpfiles.d/dnf.conf > > I don't think dnf community will look into this issue. And I would expect it > to be a complicated

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Chen Qi via lists.openembedded.org
-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit On Thu, 7 Mar 2024 at 10:19, Changqing Li wrote: > ++for arg in args: > ++if arg.startswith("--installroot="): > ++ro

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Alexander Kanavin
On Thu, 7 Mar 2024 at 10:19, Changqing Li wrote: > ++for arg in args: > ++if arg.startswith("--installroot="): > ++root=arg.split("=")[1] > ++if os.path.exists(os.path.join(root, "log_lock.pid")): > ++

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Alexander Kanavin
On Thu, 7 Mar 2024 at 10:19, Changqing Li wrote: > +Upstream-Status: Inappropriate [oe specific workaround] You *just* said you will send this upstream as requested. Why is it suddenly Inappropriate? Alex -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply

[OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Changqing Li
From: Changqing Li dnf has a bug, refer [1], it causes that log_lock.pid may not removed after dnf exit. And for native dnf, since we change the lock file path to /, it will never be removed, and make the rootfs not clean,refer [2][3]. This patch is a workaround to fix above issue. [1]