diskimage-builder/diskimage_builder/lib
Michael Johnson 9c7b8d1714 Set correct python version for non-chroot scripts
Some phases of diskimage-builder run outside the chroot environment,
such as the extra-data.d scripts, and don't have access to dib-python.
This means these scripts may choose the wrong python version by using
"#!/usr/bin/env python" to execute. The svc-map element is an example.

This patch creates a temporary directory and symbolic link for the
correct version of python, then manipulates the environment PATH
to preference the symbolic link "python" command.
This will allow elements with these scripts to work correctly with
the version of python diskimage-builder is running under.

Change-Id: I289d621e1bfbba0eb174dff977d1a5c92c04e4fa
Co-Authored-By: Ian Wienand <iwienand@redhat.com>
2019-12-11 22:52:28 +00:00
..
common-defaults Support for Cloud Images on ppc64le for rhel7 and centos7 2017-06-29 15:44:26 +10:00
common-functions Set correct python version for non-chroot scripts 2019-12-11 22:52:28 +00:00
dib-run-parts Make sure DIB_DEBUG_TRACE has a default value 2019-12-03 08:26:12 +01:00
die Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
disk-image-create Set correct python version for non-chroot scripts 2019-12-11 22:52:28 +00:00
img-defaults Remove the rhel 8 check for xfs 2019-06-12 07:01:36 -07:00
img-functions Set correct python version for non-chroot scripts 2019-12-11 22:52:28 +00:00
outfilter.py Stop regex warning 2019-08-08 15:31:52 +02:00
ramdisk-defaults Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
ramdisk-functions Remove use of 'which'. 2017-05-19 12:43:36 -07:00
ramdisk-image-create Move diskimage-image-create to an entry point 2016-11-02 05:12:11 +00:00