]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Set dnf logdir to the workspace directory
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 May 2023 08:57:56 +0000 (10:57 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 5 May 2023 13:24:37 +0000 (15:24 +0200)
Let's not clutter the image with dnf logs.

mkosi/distributions/fedora.py

index 4fcb3b2f1e3d529b3e22a45b228cca865a4639b8..909a7b0d2f4338428fe519dacc36fce5815ddfcf 100644 (file)
@@ -152,6 +152,7 @@ def invoke_dnf(
         f"--setopt=cachedir={state.cache}",
         f"--setopt=reposdir={' '.join(str(p) for p in state.config.repo_dirs)}",
         f"--setopt=varsdir={state.workspace / 'vars'}",
+        f"--setopt=logdir={state.workspace}",
         "--setopt=check_config_file_age=0",
         "--noplugins",
     ]