This gist is for x86_64 (amd64) architecture and UEFI boot mode!
Suppose you have 3 partitions: 1. EFI partition (FAT32); 2. macOS partition (Mac OS Extended); 3. WinPE and multiple Linux distros partition (FAT32).
- EFI partition should have: a. rEFInd's files: bootx64.efi, refind.conf and icons folder; b. WinPE's boot files: bcd and bootx64.efi (bcd file needs to be modified according to your WinPE's boot.sdi and boot.wim)
- macOS patition should have your macOS image file.