neil / rpms / anaconda

Forked from rpms/anaconda a year ago
Clone
Blob Blame History Raw
From 7d805f7dd19dff4eff13627a1480fab364a4d337 Mon Sep 17 00:00:00 2001
From: Radek Vykydal <rvykydal@redhat.com>
Date: Wed, 3 Feb 2021 16:28:32 +0100
Subject: [PATCH 3/3] Take dnf substitutions from installer environment
 configuration

Resolves: rhbz#1920735

https://github.com/rhinstaller/anaconda/pull/3139
https://github.com/rhinstaller/anaconda/commit/4dbb10c4a3a099870e88f4421d9da95689ec3c86
---
 pyanaconda/payload/dnf/payload.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/payload/dnf/payload.py b/pyanaconda/payload/dnf/payload.py
index 718feedb70..47e00a49bd 100644
--- a/pyanaconda/payload/dnf/payload.py
+++ b/pyanaconda/payload/dnf/payload.py
@@ -668,7 +668,7 @@ class DNFPayload(Payload):
         config.installroot = conf.target.system_root
         config.prepend_installroot('persistdir')
 
-        self._base.conf.substitutions.update_from_etc(config.installroot)
+        self._base.conf.substitutions.update_from_etc("/")
 
         if self.data.packages.multiLib:
             config.multilib_policy = "all"
-- 
2.29.2