Skip to contentSkip to conversation

Revert "rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock"

PATCH New Alexander Kanavin 1 participant 1 message Jul 17, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes-recipe/rootfs-postcommands.bbclass | 7 -------
 1 file changed, 7 deletions(-)
meta/classes-recipe/rootfs-postcommands.bbclass +0 -7
index 53b241413e4..4492c9c0aa7 100644
@@ -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
Signature · 1 line
2.30.2