File dnf-4.8.0-Use-usr-lib-sysimage-for-the-persistent-state-dir.patch of Package dnf
From 948ce5649172cba75e04384ff0a10e9d4e331fc9 Mon Sep 17 00:00:00 2001
From: Neal Gompa <ngompa13@gmail.com>
Date: Sat, 13 Feb 2021 12:16:10 -0500
Subject: [PATCH 2/2] 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 07aab7a4..750d3a16 100644
--- a/dnf/const.py.in
+++ b/dnf/const.py.in
@@ -39,7 +39,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 915ebbc3..2abeb9d6 100644
--- a/doc/conf_ref.rst
+++ b/doc/conf_ref.rst
@@ -440,7 +440,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"``.
.. _persistence-label:
--
2.48.1