]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock"
authorAlexander Kanavin <alex.kanavin@gmail.com>
Mon, 17 Jul 2023 20:33:49 +0000 (22:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Jul 2023 08:18:32 +0000 (09:18 +0100)
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.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/rootfs-postcommands.bbclass

index 53b241413e4f7c34e2c07837606f274678e966d8..4492c9c0aa7ead8b3f8e1556ce433bdc10cd06e3 100644 (file)
@@ -49,8 +49,6 @@ ROOTFS_POSTPROCESS_COMMAND += 'empty_var_volatile;'
 
 ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs_qa_check; overlayfs_postprocess;", "", d)}'
 
-ROOTFS_POSTPROCESS_COMMAND += 'remove_unused_dnf_log_lock;'
-
 inherit image-artifact-names
 
 # Sort the user and group entries in /etc by ID in order to make the content
@@ -363,11 +361,6 @@ empty_var_volatile () {
        fi
 }
 
-remove_unused_dnf_log_lock() {
-       if [ -e ${IMAGE_ROOTFS}/log_lock.pid ]; then
-               rm -rf ${IMAGE_ROOTFS}/log_lock.pid
-       fi
-}
 # Turn any symbolic /sbin/init link into a file
 remove_init_link () {
        if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then