@@ -12,13 +12,13 @@ kernel --timeout 60000 {{ kernel_path }} ipa-insecure={{ env.IRONIC_IPA_INSECURE
1212{% - set kernel_by_arch = {} -%}
1313{% - for item in env .DEPLOY_KERNEL_BY_ARCH .split (',' ) -%}
1414{% - set arch = item .split (':' )[0] -%}
15- {% - set url = item .split (':' , 1)[1] | replace (file_url_prefix , env .IRONIC_HTTP_URL + '/' ) -%}
15+ {% - set url = item .split (':' , 1)[1] | replace (file_url_prefix , env .IRONIC_IPA_BASE_URL + '/' ) -%}
1616{% - set _ = kernel_by_arch .update ({arch : url }) -%}
1717{% - endfor -%}
1818{% - set ramdisk_by_arch = {} -%}
1919{% - for item in env .DEPLOY_RAMDISK_BY_ARCH .split (',' ) -%}
2020{% - set arch = item .split (':' )[0] -%}
21- {% - set url = item .split (':' , 1)[1] | replace (file_url_prefix , env .IRONIC_HTTP_URL + '/' ) -%}
21+ {% - set url = item .split (':' , 1)[1] | replace (file_url_prefix , env .IRONIC_IPA_BASE_URL + '/' ) -%}
2222{% - set _ = ramdisk_by_arch .update ({arch : url }) -%}
2323{% - endfor -%}
2424# Architecture-specific boot selection
@@ -43,8 +43,8 @@ goto boot
4343
4444:fallback
4545echo Booting fallback IPA for ${buildarch}
46- set ipa_kernel {{ env.IRONIC_HTTP_URL }}/images/ironic-python-agent.kernel
47- set ipa_ramdisk {{ env.IRONIC_HTTP_URL }}/images/ironic-python-agent.initramfs
46+ set ipa_kernel {{ env.IRONIC_IPA_BASE_URL }}/images/ironic-python-agent.kernel
47+ set ipa_ramdisk {{ env.IRONIC_IPA_BASE_URL }}/images/ironic-python-agent.initramfs
4848set ipa_ramdisk_name ironic-python-agent.initramfs
4949goto boot
5050
6161imgfree
6262# NOTE(dtantsur): keep inspection kernel params in [mdns]params in
6363# ironic-inspector-image and configuration in configure-ironic.sh
64- {{ kernel_cmdline(env.IRONIC_HTTP_URL + '/images/ironic-python-agent.kernel', 'ironic-python-agent.initramfs') }}
65- initrd --timeout 60000 {{ env.IRONIC_HTTP_URL }}/images/ironic-python-agent.initramfs || goto retry_boot
64+ {{ kernel_cmdline(env.IRONIC_IPA_BASE_URL + '/images/ironic-python-agent.kernel', 'ironic-python-agent.initramfs') }}
65+ initrd --timeout 60000 {{ env.IRONIC_IPA_BASE_URL }}/images/ironic-python-agent.initramfs || goto retry_boot
6666boot
6767{% endif %}
0 commit comments