2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 08:52:20 +00:00

Refresh the HTTP boot iPXE shim when confluent_ipxe is updated

A package update replaced only the copies in /opt/confluent/lib/ipxe,
so an upgraded server kept serving no shim, or an old one, until
osdeploy initialize ran again. A fresh install still gets the shim from
osdeploy initialize, before which the public tree may not exist.
This commit is contained in:
Markus Hilger
2026-11-17 23:03:02 +01:00
parent aaaf4e3ea8
commit cf98bf1ef9
+12 -2
View File
@@ -1,6 +1,6 @@
Name: confluent_ipxe
Version: 2.0.0
Release: 1
Release: 2
Summary: iPXE network boot roms for confluent
License: GPL
@@ -32,7 +32,17 @@ cp arm64-sb/snponly.efi %{buildroot}/opt/confluent/lib/ipxe/ipxe-aarch64.efi
/opt/confluent/lib/ipxe/ipxe-aarch64-shim.efi
/opt/confluent/lib/ipxe/ipxe-aarch64.efi
%post
# UEFI HTTP boot chainloads the shim from the public tree. A fresh install
# leaves it to osdeploy initialize, so public keeps the ownership the
# server gives it.
if [ -d /var/lib/confluent/public ]; then
mkdir -p /var/lib/confluent/public/ipxe/x86_64 /var/lib/confluent/public/ipxe/aarch64
cp /opt/confluent/lib/ipxe/ipxe-shim.efi /opt/confluent/lib/ipxe/ipxe.efi /var/lib/confluent/public/ipxe/x86_64/
cp /opt/confluent/lib/ipxe/ipxe-aarch64-shim.efi /var/lib/confluent/public/ipxe/aarch64/ipxe-shim.efi
cp /opt/confluent/lib/ipxe/ipxe-aarch64.efi /var/lib/confluent/public/ipxe/aarch64/ipxe.efi
fi
true
%changelog