From 84cf2e1b82bac49545dbb5874b6bdd73aa6513bc Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 25 Sep 2019 03:00:37 +0000 Subject: [PATCH] Update redhat-common pkg-map for centos 8 The libselinux packages etc don't exist for Python 2 on Centos 8 [1]. Ensure the package map installs the python3 versions. We could probably invert the logic now, and make it so Centos 7 is the "special" version that overrides things to install python2. Left alone for now to avoid changing too much at once. [1] https://bugs.centos.org/view.php?id=16458 Change-Id: I944cf4f2902c28728aa5bb9e2a00b3eef122d52e --- diskimage_builder/elements/redhat-common/pkg-map | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/diskimage_builder/elements/redhat-common/pkg-map b/diskimage_builder/elements/redhat-common/pkg-map index 9a968041..bc4b323a 100644 --- a/diskimage_builder/elements/redhat-common/pkg-map +++ b/diskimage_builder/elements/redhat-common/pkg-map @@ -13,6 +13,13 @@ "policycoreutils": "python3-policycoreutils", "policycoreutils-python": "policycoreutils-python-utils" } + }, + "centos": { + "8": { + "libselinux-python": "python3-libselinux", + "policycoreutils": "python3-policycoreutils", + "policycoreutils-python": "policycoreutils-python-utils" + } } } }