diff --git a/diskimage_builder/elements/dib-python/pre-install.d/01-dib-python b/diskimage_builder/elements/dib-python/pre-install.d/01-dib-python index 8142547d..5bcb3623 100755 --- a/diskimage_builder/elements/dib-python/pre-install.d/01-dib-python +++ b/diskimage_builder/elements/dib-python/pre-install.d/01-dib-python @@ -11,6 +11,9 @@ if [[ ${DISTRO_NAME} =~ (centos|rhel) && ${DIB_RELEASE} == 8 ]]; then # a good idea, abstracting the python binary for system scripts! # :) Use it for dib-python. python_path=/usr/libexec/platform-python +elif [[ ${DISTRO_NAME} =~ (debian) && ${DIB_PYTHON_VERSION} == 3 ]]; then + apt-get install -y python3 + python_path=$(command -v python${DIB_PYTHON_VERSION}) else python_path=$(command -v python${DIB_PYTHON_VERSION}) fi