Commit 635ca51
fix(acl): harmonize UKI discovery error handling across cleanup and test
- cleanup-vhd.sh: fail loud (exit 1) when no UKI is found instead of
silently no-op'ing. Previously the silent skip could ship a VHD without
the firstboot addon -- the exact failure mode this PR set out to fix
(no flatcar.first_boot=detected -> Ignition subsequent-boot -> oem-
cloudinit skipped -> scriptless CSE 17-min hang). The fail-loud path
stays ACL-scoped under the existing [ -f /boot/acl/uki-addons/
firstboot.addon.efi ] guard, so non-ACL distros are unaffected.
- cleanup-vhd.sh: use basename(uki_path) for addon_dir so the variable
shape matches tool_installs_acl.sh and linux-vhd-content-test.sh.
- linux-vhd-content-test.sh: rename acl_uki_path/acl_uki_name/
acl_fips_addon to uki_path/uki_name/fips_addon_path for grep parity
with the production install path. Capitalize "No UKI..." message to
match the other two sites.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 23b9ea6 commit 635ca51
2 files changed
Lines changed: 16 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
| 649 | + | |
650 | 650 | | |
651 | | - | |
652 | | - | |
| 651 | + | |
| 652 | + | |
653 | 653 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| |||
0 commit comments