File dnf-4.6.0-Use-usr-lib-sysimage-for-the-persistent-state-dir.patch of Package dnf

From 3f7d94b879a95c1ca53edda5e025daa2f1da5ef0 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13@gmail.com>
Date: Sat, 13 Feb 2021 12:16:10 -0500
Subject: [PATCH] Use /usr/lib/sysimage for the persistent state directory

This aligns us with the location where the RPM database is stored.
---
 dnf/const.py.in  | 2 +-
 doc/conf_ref.rst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dnf/const.py.in b/dnf/const.py.in
index 4ef2613e..1535ef81 100644
--- a/dnf/const.py.in
+++ b/dnf/const.py.in
@@ -38,7 +38,7 @@ LOG_LIBREPO='dnf.librepo.log'
 LOG_MARKER='--- logging initialized ---'
 LOG_RPM='dnf.rpm.log'
 NAME='DNF'
-PERSISTDIR='/var/lib/dnf' # :api
+PERSISTDIR='/usr/lib/sysimage/dnf' # :api
 PID_FILENAME = '/var/run/dnf.pid'
 RUNDIR='/run'
 USER_RUNDIR='/run/user'
diff --git a/doc/conf_ref.rst b/doc/conf_ref.rst
index 9c0c3911..4196361e 100644
--- a/doc/conf_ref.rst
+++ b/doc/conf_ref.rst
@@ -354,7 +354,7 @@ configuration file by your distribution to override the DNF defaults.
 ``persistdir``
     :ref:`string <string-label>`
 
-    Directory where DNF stores its persistent data between runs. Default is ``"/var/lib/dnf"``.
+    Directory where DNF stores its persistent data between runs. Default is ``"/usr/lib/sysimage/dnf"``.
 
 ``pluginconfpath``
     :ref:`list <list-label>`
-- 
2.29.2
openSUSE Build Service is sponsored by