Error installing Rocky 8.4 on macbook pro

I’ve been trying to get the latest version of Rocky installed on a partition of my Macbook Pro but I’m getting an error when I have the installer run automatically for the hard drive installation. See the attachment but it basically just says “resource to create this format macefi is unavailable”.

I also get this error when I try to install Centos 8.4.

I’ve faced the same issue while installing Rocky Linux in an iMac from 2008. The good news is that I have a working system!

Since I’m far from an expert, there may be steps that are not necessary or even incorrect, in any case here are the steps I followed. At the end I added some links to some sources I used to get this all to work:

  1. Boot into the install media and set it all up as desired.
  2. For the partitioning:
    • Tell the tool to “Do not install boot loader”
    • Select custom partitioning scheme:
      • Create /boot partition (1024 MiB, Standard, XFS), then edit it to make it /boot/efi (1024 MiB, Standard, EFI Partition). I did this because the installer wouldn’t let me choose the right settings from the + menu and I wanted to follow the steps from (1) in order.
      • Create /boot partition (1024 MiB, Standard, XFS)
      • Create /home, in my case (X GiB, LVM, XFS) group rl => rl-home
      • Create / in my case (X GiB, LVM, XFS) group rl => rl-root
      • Create /swap, in my ase (7.88 GiB, LVM, swap) group rl => rl-swap
    • Proceed despite the warning/error regarding macefi or mactel tell it to continue despite it all.
  3. Proceed with the installation.
  4. Reboot.
  5. Boot into the newly installed Rocky. It should take you to GRUB2, but fail to load automatically.
  6. Boot manually:
    • Identify the root partition, in my case: set root=(lvm/rl-root)
    • Point to the linux image: linux (hd6,gpt4)/boot/vmlinuz-4.18... root=/dev/mapper/rl-root
      • Note. For this step and the following I don’t remember exactly the versions of vmlinuz and initrd, nor the exact path. I used ls, as in ls (hd6/gpt4)/ to determine in which partition and path where vmlinuz and initrd.
    • Then: initrd (hd6,gpt4)/boot/initrd.img-4...
    • Finally: boot
    • This should boot your Rocky.
  7. Once in the OS, update the GRUB configuration: grub2-mkgconfig -o /boot/efi/EFI/rocky/grub.cfg
  8. Hopefully, you are all set. Reboot to verify.

References:

  1. Partitioning issue RHEL8 on a Mac machine
  2. Using the GRUB2 boot prompt
  1. Configure separated GRUB to run Linux from LVM ddrescued device
  2. RHEL7/CentOS 7 – Recover/Reinstall GRUB2 with UEFI

(Posting in a follow up to work around the limitations I have as a new user :blush:

Other sources that may be of help:

3/3

1 Like