mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-08-24 02:34:12 -05:00
Remove stale autoexec.ipxe when Secure Boot generation is disabled
Prevent a leftover autoexec.ipxe from a previous build with generate_disks_secureboot enabled from being included in checksums and release assets when the flag is later turned off.
This commit is contained in:
@@ -40,3 +40,10 @@
|
||||
when:
|
||||
- generate_disks_secureboot | default(false) | bool
|
||||
- bootloader_filename == "netboot.xyz"
|
||||
|
||||
- name: Remove stale autoexec.ipxe when Secure Boot is disabled
|
||||
ansible.builtin.file:
|
||||
path: "{{ netbootxyz_root }}/ipxe/autoexec.ipxe"
|
||||
state: absent
|
||||
when:
|
||||
- not (generate_disks_secureboot | default(false) | bool)
|
||||
|
||||
Reference in New Issue
Block a user