From cb265e8b582ae3925411bd7bbeec9de61a986570 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 18 Jun 2020 20:17:48 +0200 Subject: [PATCH] runners: use platform-python on RHEL Runner are invoked to prepare the execution of stages and assemblers inside the container. The setup tasks are specific to the distribution and maybe the version of it, therefore specific runners are used for each distribution+version combination. The build the first (most nested) build root, `/usr` is taken from the host to bootstrap the container. On RHEL, the python interpreter to be used for software that belongs to the platform is platform-python, as it provides a stable API. Therefore the RHEL runners should use that instead of relying on the presence of /usr/bin/python3.6, which might not be installed and is indeed not installed by default. --- runners/org.osbuild.rhel81 | 2 +- runners/org.osbuild.rhel82 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runners/org.osbuild.rhel81 b/runners/org.osbuild.rhel81 index 6fe2f1d6..66e63561 100755 --- a/runners/org.osbuild.rhel81 +++ b/runners/org.osbuild.rhel81 @@ -1,4 +1,4 @@ -#!/usr/bin/python3.6 +#!/usr/libexec/platform-python import os import subprocess diff --git a/runners/org.osbuild.rhel82 b/runners/org.osbuild.rhel82 index 160df804..1ab092bc 100755 --- a/runners/org.osbuild.rhel82 +++ b/runners/org.osbuild.rhel82 @@ -1,4 +1,4 @@ -#!/usr/bin/python3.6 +#!/usr/libexec/platform-python import os import subprocess