Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 31653d324cf8c7b1f2f9e49d22676bd2ac546331 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Wed, 11 Jan 2017 15:10:13 +0200 |
| 4 | Subject: [PATCH] Do not prepend installroot to logdir. |
| 5 | |
| 6 | This would otherwise write the logs into rootfs/var/log |
| 7 | (whereas we want them in $T), |
| 8 | and will break installation of base-files rpm. |
| 9 | |
| 10 | Upstream-Status: Inappropriate [oe-core specific] |
| 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 12 | --- |
| 13 | dnf/cli/cli.py | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py |
| 17 | index b764801a..893f4bda 100644 |
| 18 | --- a/dnf/cli/cli.py |
| 19 | +++ b/dnf/cli/cli.py |
| 20 | @@ -881,7 +881,7 @@ class Cli(object): |
| 21 | subst = conf.substitutions |
| 22 | subst.update_from_etc(conf.installroot) |
| 23 | |
| 24 | - for opt in ('cachedir', 'logdir', 'persistdir'): |
| 25 | + for opt in ('cachedir', 'persistdir'): |
| 26 | conf.prepend_installroot(opt) |
| 27 | |
| 28 | self.base._logging._setup_from_dnf_conf(conf) |
| 29 | -- |
| 30 | 2.11.0 |
| 31 | |