Skip to content

Commit b495b4e

Browse files
committed
ova: fix Photon 5 distro-sync failure due to alternatives/chkconfig conflict
iptables-1.8.13-2.ph5 and ebtables-2.0.11-4.ph5 now require the alternatives package (introduced by Broadcom on April 9, 2026). The Photon 5 minimal installation ships chkconfig which conflicts with the new alternatives package, so it cannot be installed directly. The fix installs alternatives via Ansible with --allowerasing before distro-sync runs. This atomically replaces chkconfig with alternatives, satisfying the iptables/ebtables dependency and allowing distro-sync to complete successfully. Validated with a live vSphere build against the testbed. Ref: vmware/photon#1646 Made-with: Cursor
1 parent 820139b commit b495b4e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

images/capi/ansible/roles/setup/tasks/photon.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
changed_when: '"Nothing to do" not in distro.stderr'
3737
when: not disable_public_repos|default(false)|bool
3838

39+
- name: Replace chkconfig with alternatives to satisfy iptables dependency
40+
ansible.builtin.command: tdnf install -y alternatives --allowerasing
41+
register: install_alternatives
42+
changed_when: '"Nothing to do" not in install_alternatives.stderr'
43+
3944
- name: Perform a tdnf distro-sync
4045
ansible.builtin.command: tdnf distro-sync -y --refresh
4146
register: distro

0 commit comments

Comments
 (0)