Skip to content

Commit 65870d9

Browse files
committed
get rid of traces of CentOS 7 support
Change-Id: I4d20f23a9b26364943bf967908255d82c8f6621b
1 parent 4e3b178 commit 65870d9

File tree

2 files changed

+18
-61
lines changed

2 files changed

+18
-61
lines changed

docker/nova/nova-base/Dockerfile.j2

Lines changed: 12 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1818
] %}
1919

2020
{% if base_arch == 'x86_64' %}
21-
{% if base_distro_tag.startswith('7') %}
22-
{% set nova_base_packages = nova_base_packages + [
23-
'OVMF'
24-
] %}
25-
{% else %}
26-
{% set nova_base_packages = nova_base_packages + [
27-
'edk2-ovmf'
28-
] %}
29-
{% endif %}
21+
{% set nova_base_packages = nova_base_packages + [
22+
'edk2-ovmf'
23+
] %}
3024
{% elif base_arch == 'aarch64' %}
31-
{% if base_distro_tag.startswith('7') %}
32-
{% set nova_base_packages = nova_base_packages + [
33-
'AAVMF'
34-
] %}
35-
{% else %}
36-
{% set nova_base_packages = nova_base_packages + [
37-
'edk2-aarch64'
38-
] %}
39-
{% endif %}
25+
{% set nova_base_packages = nova_base_packages + [
26+
'edk2-aarch64'
27+
] %}
4028
{% elif base_arch == 'ppc64le' %}
4129
{# NOTE(Jeffrey4l): no packages for ppc64le #}
4230
{% endif %}
@@ -71,25 +59,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
7159
'openvswitch'
7260
] %}
7361
{% if base_arch == 'x86_64' %}
74-
{% if base_distro_tag.startswith('7') %}
75-
{% set nova_base_packages = nova_base_packages + [
76-
'OVMF'
77-
] %}
78-
{% else %}
79-
{% set nova_base_packages = nova_base_packages + [
80-
'edk2-ovmf'
81-
] %}
82-
{% endif %}
62+
{% set nova_base_packages = nova_base_packages + [
63+
'edk2-ovmf'
64+
] %}
8365
{% elif base_arch == 'aarch64' %}
84-
{% if base_distro_tag.startswith('7') %}
85-
{% set nova_base_packages = nova_base_packages + [
86-
'AAVMF'
87-
] %}
88-
{% else %}
89-
{% set nova_base_packages = nova_base_packages + [
90-
'edk2-aarch64'
91-
] %}
92-
{% endif %}
66+
{% set nova_base_packages = nova_base_packages + [
67+
'edk2-aarch64'
68+
] %}
9369
{% elif base_arch == 'ppc64le' %}
9470
{# NOTE(Jeffrey4l): no packages for ppc64le #}
9571
{% endif %}
@@ -149,13 +125,6 @@ RUN chmod 750 /etc/sudoers.d \
149125
{% endif %}
150126

151127

152-
{% if base_package_type == 'rpm' %}
153-
{% if base_arch == 'x86_64' and base_distro_tag.startswith('7') %}
154-
# NOTE(jeffrey4l): for x86_64, nova will validate the existence of /usr/share/OVMF/OVMF_CODE.fd
155-
RUN ln -sf /usr/share/OVMF/OVMF_CODE.secboot.fd /usr/share/OVMF/OVMF_CODE.fd
156-
{% endif %}
157-
{% endif %}
158-
159128
COPY extend_start.sh /usr/local/bin/kolla_extend_start
160129

161130
RUN touch /usr/local/bin/kolla_nova_extend_start \

docker/nova/nova-libvirt/Dockerfile.j2

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,13 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2626
'trousers'
2727
] %}
2828
{% if base_arch == 'x86_64' %}
29-
{% if base_distro_tag.startswith('7') %}
30-
{% set nova_libvirt_packages = nova_libvirt_packages + [
31-
'OVMF'
32-
] %}
33-
{% else %}
34-
{% set nova_libvirt_packages = nova_libvirt_packages + [
35-
'edk2-ovmf'
36-
] %}
37-
{% endif %}
29+
{% set nova_libvirt_packages = nova_libvirt_packages + [
30+
'edk2-ovmf'
31+
] %}
3832
{% elif base_arch == 'aarch64' %}
39-
{% if base_distro_tag.startswith('7') %}
40-
{% set nova_libvirt_packages = nova_libvirt_packages + [
41-
'AAVMF'
42-
] %}
43-
{% else %}
44-
{% set nova_libvirt_packages = nova_libvirt_packages + [
45-
'edk2-aarch64'
46-
] %}
47-
{% endif %}
33+
{% set nova_libvirt_packages = nova_libvirt_packages + [
34+
'edk2-aarch64'
35+
] %}
4836
{% endif %}
4937

5038
{% elif base_package_type == 'deb' %}

0 commit comments

Comments
 (0)