diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-07-17 22:33:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-18 09:18:34 +0100 |
commit | 810ccdd99f6caef41b44dbd438364bfa49d02cfe (patch) | |
tree | 9074b4aef896fbf2954e7118785c270aa2d4a693 /meta | |
parent | c94fd2737e7e341188c8c41d911f1c60240088a2 (diff) | |
download | poky-810ccdd99f6caef41b44dbd438364bfa49d02cfe.tar.gz |
Revert "rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock"
This was not well researched or explained, and obscures a problem elsewhere:
if dnf leaves lock files around, the problem should be fixed at the source,
and not in an after-the-fact function.
(From OE-Core rev: 49bad18012a4079f0dbfe6c541a46ec508940f28)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes-recipe/rootfs-postcommands.bbclass | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/meta/classes-recipe/rootfs-postcommands.bbclass b/meta/classes-recipe/rootfs-postcommands.bbclass index 53b241413e..4492c9c0aa 100644 --- a/meta/classes-recipe/rootfs-postcommands.bbclass +++ b/meta/classes-recipe/rootfs-postcommands.bbclass | |||
@@ -49,8 +49,6 @@ ROOTFS_POSTPROCESS_COMMAND += 'empty_var_volatile;' | |||
49 | 49 | ||
50 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs_qa_check; overlayfs_postprocess;", "", d)}' | 50 | ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs_qa_check; overlayfs_postprocess;", "", d)}' |
51 | 51 | ||
52 | ROOTFS_POSTPROCESS_COMMAND += 'remove_unused_dnf_log_lock;' | ||
53 | |||
54 | inherit image-artifact-names | 52 | inherit image-artifact-names |
55 | 53 | ||
56 | # Sort the user and group entries in /etc by ID in order to make the content | 54 | # Sort the user and group entries in /etc by ID in order to make the content |
@@ -363,11 +361,6 @@ empty_var_volatile () { | |||
363 | fi | 361 | fi |
364 | } | 362 | } |
365 | 363 | ||
366 | remove_unused_dnf_log_lock() { | ||
367 | if [ -e ${IMAGE_ROOTFS}/log_lock.pid ]; then | ||
368 | rm -rf ${IMAGE_ROOTFS}/log_lock.pid | ||
369 | fi | ||
370 | } | ||
371 | # Turn any symbolic /sbin/init link into a file | 364 | # Turn any symbolic /sbin/init link into a file |
372 | remove_init_link () { | 365 | remove_init_link () { |
373 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then | 366 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then |