Merge "Add ipxe file path variable and installation codes for CentOS"
This commit is contained in:
commit
7d938de167
|
@ -18,10 +18,28 @@ limitations under the License.
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
#NOTE(portdirect): this works round a limitation in Kolla images
|
. /etc/os-release
|
||||||
if ! dpkg -l ipxe; then
|
HOST_OS=${HOST_OS:="${ID}"}
|
||||||
apt-get update
|
FILEPATH=${FILEPATH:-/usr/lib/ipxe}
|
||||||
apt-get install ipxe -y
|
|
||||||
|
if [ "x$ID" == "xubuntu" ]; then
|
||||||
|
#NOTE(portdirect): this works around a limitation in Kolla images
|
||||||
|
if ! dpkg -l ipxe; then
|
||||||
|
apt-get update
|
||||||
|
apt-get install ipxe -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
FILEPATH=/usr/lib/ipxe
|
||||||
|
|
||||||
|
elif [ "x$ID" == "xcentos" ]; then
|
||||||
|
|
||||||
|
if ! yum list installed ipxe-bootimgs >/dev/null 2>&1; then
|
||||||
|
yum update --nogpgcheck -y
|
||||||
|
yum install ipxe-bootimgs --nogpgcheck -y
|
||||||
|
fi
|
||||||
|
|
||||||
|
FILEPATH=/usr/share/ipxe
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /var/lib/openstack-helm/tftpboot
|
mkdir -p /var/lib/openstack-helm/tftpboot
|
||||||
|
|
Loading…
Reference in New Issue