summaryrefslogtreecommitdiff
path: root/installer/build.sh
diff options
context:
space:
mode:
authorTranch <tranch.xiao@gmail.com>2026-08-26 17:26:02 +0800
committerGitHub <noreply@github.com>2026-08-26 17:26:02 +0800
commit455dddfcc4f4a8bdf9f2761b52434a43c878dc21 (patch)
tree1b2f3e2356053558381673e9a1b73c4c9c92afb1 /installer/build.sh
parent0cc466a5285bed432f5b706667ab185eb1a69a21 (diff)
parentc42b55f8accfea46263890323f2aedd2142fd515 (diff)
downloadAeroCore-OS-455dddfcc4f4a8bdf9f2761b52434a43c878dc21.tar.gz
AeroCore-OS-455dddfcc4f4a8bdf9f2761b52434a43c878dc21.zip
Merge pull request #23 from AeroCore-IO/fix/f44-payload-branding
Fix/f44 payload branding
Diffstat (limited to 'installer/build.sh')
-rwxr-xr-xinstaller/build.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/installer/build.sh b/installer/build.sh
index 937d324..e027bd6 100755
--- a/installer/build.sh
+++ b/installer/build.sh
@@ -158,6 +158,24 @@ fi
/usr/libexec/aerocore-configure-target-gpt-root \${target_root}
%end
+# Do not let stale Fedora boot files from an earlier installation collide with
+# the bootc payload being installed. This matches the upstream Bazzite
+# installer behavior; other vendor EFI directories are left untouched.
+%pre-install --erroronfail --log=/tmp/aerocore-efi-cleanup.log
+set -eux
+efi_root=
+for root in /mnt/sysroot /mnt/sysimage /var/mnt/sysroot /var/mnt/sysimage; do
+ if mountpoint -q \${root}/boot/efi; then
+ efi_root=\${root}/boot/efi
+ break
+ fi
+done
+if [ x\${efi_root} = x ]; then
+ echo No mounted EFI system partition found for cleanup >&2
+ exit 1
+fi
+rm -rf \${efi_root}/EFI/fedora
+%end
ostreecontainer --url=${INSTALL_IMAGE_PAYLOAD} --transport=containers-storage --no-signature-verification
# The local containers-storage deployment is intentionally unverified because