From a77a2143394aa2a0fcefe46bdcde5d1b556b899c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 20 Sep 2019 16:39:55 +1000 Subject: [PATCH] Install Python 3 libselinux packages for Fedora Install the Python 3 libselinux packages for Fedora platforms. I think this is the right choice; Fedora is a Python-3 only distro so we shouldn't default to installing the python2 libraries. This has a practical effect if you're using Ansible with ansible_python_interpreter=/usr/bin/python3 as it needs these packages. There is some small chance of breakage if you're using Ansible still with Python 2, I guess. In infra I notice we bring this in with "zuul-worker" project-config element. On balance, I think that if you need the Python 2 packages for some reason, it should be a special install and not part of redhat-common. Change-Id: Ibcec0b3660d01b861838c2ae87ca43d98953ce32 --- 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 84cb5786..9a968041 100644 --- a/diskimage_builder/elements/redhat-common/pkg-map +++ b/diskimage_builder/elements/redhat-common/pkg-map @@ -1,4 +1,11 @@ { + "distro": { + "fedora": { + "libselinux-python": "python3-libselinux", + "policycoreutils": "python3-policycoreutils", + "policycoreutils-python": "policycoreutils-python-utils" + } + }, "release": { "rhel": { "8": {