From 30e6260c41a011241ed5659d2d85e72661807351 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 24 Nov 2018 14:58:00 -0500 Subject: [PATCH] imgcreate/dnfinst: Force latest packages from only specified repos To ensure that the latest versions of things are picked for images, we'll set 'best=1' and 'obsoletes=1', just as Mock does. And to make sure we don't have host system repos leak in, we'll set 'reposdir=/dev/null', too. --- imgcreate/dnfinst.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imgcreate/dnfinst.py b/imgcreate/dnfinst.py index 720dd7d..06a5b24 100644 --- a/imgcreate/dnfinst.py +++ b/imgcreate/dnfinst.py @@ -73,9 +73,11 @@ class DnfLiveCD(dnf.Base): conf += "plugins=1\n" else: conf += "plugins=0\n" - conf += "reposdir=\n" + conf += "reposdir=/dev/null\n" conf += "failovermethod=priority\n" conf += "keepcache=1\n" + conf += "obsoletes=1\n" + conf += "best=1\n" conf += "tsflags=nocontexts\n" f = open(confpath, "w+") -- 2.17.2