diff --git a/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch b/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch
deleted file mode 100644
index 4360139a26a..00000000000
--- a/meta/recipes-devtools/dnf/dnf/0001-Do-not-hardcode-the-systemd-unit-directory.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From fd24b56096d436da4ffe5e560ac3aa34000a4d2e Mon Sep 17 00:00:00 2001
-From: Adam Duskett <adam.duskett@amarulasolutions.com>
-Date: Thu, 15 Oct 2026 11:54:09 +0200
-Subject: [PATCH] Do not hardcode the systemd unit directory
-
-Upstream-Status: Inappropriate [oe-core specific]
-
-Rebased for 5.4.7.0
-Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 9bc01ee..6fbc338 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -7,7 +7,7 @@ project(dnf5 LANGUAGES CXX C VERSION ${VERSION_PRIME}.${VERSION_MAJOR}.${VERSION
- cmake_policy(VERSION ${CMAKE_VERSION})
- 
- list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
--set(SYSTEMD_DIR "/usr/lib/systemd/system" CACHE PATH "Directory for systemd unit files")
-+set(SYSTEMD_DIR $ENV{systemd_system_unitdir} CACHE PATH "Directory for systemd unit files")
- set(TMPFILES_DIR "/usr/lib/tmpfiles.d" CACHE PATH "Directory for systemd tmpfiles.d files")
- set(AUTO_IMPORT_KEYS_DIRS "/usr/share/pki/rpm-gpg:/etc/pki/rpm-gpg" CACHE STRING
-     "Colon-separated list of directories of OpenPGP keys trusted by auto_import_local_keys")
--- 
-2.56.0
-
diff --git a/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb b/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb
index f2107016e4e..9536552c3eb 100644
--- a/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb
+++ b/meta/recipes-devtools/dnf/dnf_5.4.8.0.bb
@@ -39,7 +39,6 @@ SRC_URI = "\
     file://0005-libdnf-fix-arm-arch-mapping-issues-for-qemuarmv5.patch \
     file://0001-Do-not-hardcode-etc-bash-completion-directory.patch \
 "
-SRC_URI:append:class-native = " file://0001-Do-not-hardcode-the-systemd-unit-directory.patch"
 SRCREV = "01329a46d840894d9fac207f06ed5bc37e752612"
 
 inherit bash-completion cmake gettext pkgconfig siteinfo systemd
@@ -99,6 +98,7 @@ EXTRA_OECMAKE:append:class-native = " \
     -DWITH_DNF5_PLUGINS=OFF \
     -DWITH_PLUGIN_MANIFEST=OFF \
     -DWITH_SYSTEMD=OFF \
+    -DSYSTEMD_DIR=${systemd_system_unitdir} \
 "
 
 # Create a symlink called 'dnf' as 'make install' does not do it, but
