Skip to content

Instantly share code, notes, and snippets.

@crzsotona
Created March 22, 2026 19:58
Show Gist options
  • Select an option

  • Save crzsotona/8eff38cd09fad3a4990047263849b04f to your computer and use it in GitHub Desktop.

Select an option

Save crzsotona/8eff38cd09fad3a4990047263849b04f to your computer and use it in GitHub Desktop.
Bypass RedHat/Centos Anaconda Mac Mini 2012 EFI installation guardrails
# Anaconda should be restarted to pull the changes (systemctl restart anaconda)
# Makes is_mactel() never trigger, falls through to standard EFI() class
sed -i 's/if arch.is_mactel():/if False: # arch.is_mactel() — disabled to bypass Apple EFI check/' \
/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/platform.py
# Also patch PLATFORM_FORMAT_TYPES to accept efi instead of macefi
sed -i 's/PLATFORM_FORMAT_TYPES: \["macefi"\]/PLATFORM_FORMAT_TYPES: ["efi"]/' \
/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/platform.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment