~ltrager/maas-image-builder/update_ks

« back to all changes in this revision

Viewing changes to contrib/rhel/curtin/python_wrapper

Modify RHEL to use the CentOS Curtin hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
export PYTHONPATH='/curtin'
4
 
 
5
 
# Ubuntu 16.04 only ships with Python 3 while previous versions only ship
6
 
# with Python 2.
7
 
if type -p python > /dev/null; then
8
 
    exec python "$0.py" "$@"
9
 
else
10
 
    exec python3 "$0.py" "$@"
11
 
fi