diff --git a/lorax_templates/bootc_patch.tmpl b/lorax_templates/bootc_patch.tmpl index 171ee89..b2df29c 100644 --- a/lorax_templates/bootc_patch.tmpl +++ b/lorax_templates/bootc_patch.tmpl @@ -1,3 +1,5 @@ -<%page args="_base_dir, root"/> +<%page args="_base_dir, root, version"/> -runcmd patch ${root}/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/installation.py ${_base_dir}/lorax_templates/bootc_patch/39.patch \ No newline at end of file +% if int(version) == 39 +runcmd patch ${root}/usr/lib64/python3.12/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/installation.py ${_base_dir}/lorax_templates/bootc_patch/39.patch +% endif \ No newline at end of file