Installed on iMac - Change "EFI Boot"...

I have openSUSE 15.2 running on an iMac and have noticed that while holding the Option key down during boot the label for the openSUSE disk is “EFI Boot”.

Is there some way to change the “EFI Boot” to something else (“openSUSE” for example)?

Thanks

I doubt, because that is the way GRUB is used. Only after that GRUB will load and then, in the GRUB screen a choice between e.g. openSUSE, variants of openSUSE and other Linux distributions one might have is offered.

In any case in YaST > System Bootloader > Tab Boot Code Options, there is a choice of

  • GRUB2 for EFI
  • GRUB2
  • Not Managed

And no way to change that text there. But I assume you can download the source, change there the text and build GRUB.

Hi
AFAIK it’s the iMac firmware output and not configurable. I use the option key to either boot UEFI or MacOS on my old MacBook… else it defaults to openSUSE.

Thanks for your responses…

I have managed to change the icon that is displayed when the Option key is held down during boot by placing an ‘icns’ file (.VolumeIcons.icns) in the /boot/efi folder of the openSUSE disk. At least now I can identify which volume to boot…

I have read about using the macOS ‘bless’ command to generate two files (.disk_label and .disk_label_2x) but not sure where to put these files on the openSUSE disk (or if those files will actually work with openSUSE).

Steve

Wouldn’t efibootmgr -L do what you’re looking for? On my iMac, without a bootable USB stick, there are only two choices via the Option key, system disk and recovery. “UEFI Boot” only appears when I have a UEFI bootable USB stick inserted.

Not sure about efibootmgr

But the “EFI Boot” message is what I’m trying to change.

If I boot with a macOS bootable USB the prompt shows “macOS”, but when I boot with an openSUSE bootable USB the prompt shows “EFI Boot”.
What I’d like to see is a prompt “openSUSE Install” when I boot with an openSUSE bootable USB.

Thanks Steve

Folder? This should have been mount point.

I have read about using the macOS ‘bless’ command to generate two files (.disk_label and .disk_label_2x) but not sure where to put these files on the openSUSE disk

My understanding is that these files should be in the same directory as bootloader. Now I am not sure which directory firmware OS chooser picks up, so I would place them in both /boot/efi/EFI/BOOT and /boot/efi/EFI/opensuse. And in /boot/efi for good measure :slight_smile: Showing output of “ls -lR /bot/efi” and “efibootmgr -v” may be helpful.

You do not need to run bless three times, just copy generated files.

(or if those files will actually work with openSUSE).

Those files are read and interpreted by firmware.

See similar question: startup - EFI Partition Change name and Logo - Ask Different

BTW there should be grub2-render-label command to generate .disk_label. .disk_label_2x is used on HiDPI screens.

Thanks, sorry about the terminology…

I have (now) the two files ‘.disk_label’ and ‘.disk_label_2x’ in all of these locations:/boot/efi
/boot/efi/EFI
/boot/efi/EFI/boot
/boot/efi/EFI/opensuse

No change to the “EFI Boot” message.

Not sure if you were asking for the output of those commands, but here they are anyway…

ls -IR /boot/efi
.disk_label .disk_label_2x EFI .VolumeIcon.icns

efibootmgr -v
BootCurrent: 0000
BootOrder: BD2D,0006,0005,0080,BAE2,9EB4,3CB0,BD2D,4118,BD2D,6ED0,BFA8,5647,BEBB,4118,BD2D,3B18,BD2F,6ED0,BFA8,C48C,BEBB,6EA0,BFA8,0601,BEBC,0B80,BEBC,6ED0
Boot0005* opensuse-secureboot HD(1,GPT,1c0f1d6e-075f-4e56-be29-d893523c7cf4,0x800,0xfa000)/File(\EFI\opensuse\shim.efi)
Boot0006* Test04 HD(1,GPT,1c0f1d6e-075f-4e56-be29-d893523c7cf4,0x800,0xfa000)/File(\EFI\opensuse\grubx64.efe)
Boot0080* Mac OS X HD(1,GPT,ae33a69a-0b61-4278-a67e-b0a93e0bc5d5,0x28,0x64000)/File(\EFI\BOOT\BOOTX64.efi)
Boot0081* Mac OS X PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,6ec7af1c-c9a5-43eb-a20a-f8e2fe4e8e5a,0x64028,0x4a7f4260)/VenMedia(be74fcf7-0b7c-49f3-9147-01f4042e6842,e3e2b204883f514d8ad6a0cc4f51a780)/File(\CFB9ED81-2F2A-4593-9788-E2D89ABF0FDA\System\Library\CoreServices\boot.efi)
BootFFFF* PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(1,GPT,1c0f1d6e-075f-4e56-be29-d893523c7cf4,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.efi)

I think this has something to do with the filesystem used for /boot/efi openSUSE sets it as FAT and Apple likes/wants HFS/HFS+ to be able to find/read the files .disk_label and .disk_label_2x

Does anyone know how to install openSUSE to use an existing HFS/HFS+ partition for /boot/efi?

Thanks Steve

Maybe the data from my iMac would be instructive:

> diskutil list -all
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:       Microsoft Basic Data EFI                     385.9 MB   disk0s1
   2:                  Apple_HFS OS X System Partition   37.9 GB    disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:                  Apple_HFS sda4 Mac User Data p... 461.4 GB   disk0s4
   5:                 Linux Swap                         4.4 GB     disk0s5
   6:           Linux Filesystem                         34.1 GB    disk0s6
   7:           Linux Filesystem                         34.1 GB    disk0s7
   8:           Linux Filesystem                         427.2 GB   disk0s8
> system_profiler SPStorageDataType | egrep 'BSD|UUID|t Poin'
      Mount Point: /Volumes/EFI
      BSD Name: disk0s1
      Volume UUID: …7A84
      Mount Point: /
      BSD Name: disk0s2
      Volume UUID: …FBE8
      Mount Point: /Volumes/sda4 Mac User Data partition
      BSD Name: disk0s4
      Volume UUID: …08F8
# efibootmgr -v
BootCurrent: **0000**
Timeout: 3 seconds
BootOrder: **0000**,0001
Boot**0000*** **opensuse152**	HD(1,GPT,**…24f5**,0x800,0xb8000)/File(\EFI\opensuse152\grubx64.efi)
Boot0001* opensuse151	HD(1,GPT,**…24f5**,0x800,0xb8000)/File(\EFI\opensuse151\grubx64.efi)
BootFFFF* 	PciRoot(0x0)/Pci(0x1f,0x2)/Sata(0,0,0)/HD(3,GPT,…c4f0,0x47498e0,0x135f20)/File(\com.apple.recovery.boot\boot.efi)
# blkid
/dev/sda1: SEC_TYPE="msdos" LABEL_FATBOOT="**EFI**" LABEL="EFI" UUID="…E431" TYPE="**vfat**" PARTLABEL="**EFI**" PARTUUID="**…24f5**"
/dev/sda2: UUID="…fbe8" LABEL="OS X System Partition" TYPE="hfsplus" PARTLABEL="sda2 Mac OS X HFS+ system" PARTUUID="…ddd4"
/dev/sda3: UUID="…ba7b" LABEL="Recovery HD" TYPE="hfsplus" PARTLABEL="Recovery HD" PARTUUID="…c4f0"
/dev/sda4: UUID="…08f8" LABEL="sda4 Mac User Data partition" TYPE="hfsplus" PARTLABEL="sda4 Mac OS X HFS+ data" PARTUUID="…bcb6"
/dev/sda5: LABEL="st10swapper" UUID="…a2a4" TYPE="swap" PARTLABEL="sda5 Linux Swap" PARTUUID="…c765"
/dev/sda6: LABEL="st10suseleap" UUID="…9ce7" TYPE="ext4" PARTLABEL="sda6 openSUSE Leap" PARTUUID="…aa2e"
/dev/sda7: LABEL="st10linuxnext" UUID="…1ef7" TYPE="ext4" PARTLABEL="sda7 Linux next" PARTUUID="…db1c"
/dev/sda8: LABEL="st10susehome" UUID="…b3c3" TYPE="ext4" PARTLABEL="sda8 Linux Home" PARTUUID="…c5cd"
# lsblk -f
NAME   FSTYPE  LABEL                        UUID   FSAVAIL FSUSE% MOUNTPOINT
sda                                                                                             
├─sda1 vfat    EFI                          …E431  350.8M     5% /boot/efi
├─sda2 hfsplus OS X System Partition        …fbe8   19.8G    44% /macsys
├─sda3 hfsplus Recovery HD                  …ba7b                
├─sda4 hfsplus sda4 Mac User Data partition …08f8  411.2G     4% /home/macdata
├─sda5 swap    st10swapper                  …a2a4                [SWAP]
├─sda6 ext4    st10suseleap                 …9ce7   18.8G    34% /
├─sda7 ext4    st10linuxnext                …1ef7   23.5G    19% /s151
└─sda8 ext4    st10susehome                 …b3c3  390.1G     0% /home
sr0

When I boot MacOS, I do it from the Grub menu.

Thanks, but I’m trying to change the label displayed when you hold the Option key down during boot which is before an OS is selected (before grub etc).

I see you have an msdos vfat for your EFI Boot disk, when you hold the Option Key during boot what does it display on your machine?

Without any USB sticks inserted, only:

  • OS X System Partition
    *]Recovery-10-11-6

Okay thanks, I’ve removed all the macOS from mine and it shows “EFI Boot” for my openSUSE installation.

Just out of curiosity have you tried to make an openSUSE 15.3 bootable USB that works on a Mac?
I’ve created one that can boot a Lenovo Laptop, but the Mac does not see it…

No. Last I made was 15.2. I don’t fresh install often, and when I do, it’s usually a NET installation made by loading installation kernel and initrd with Grub, not using installation “media”, so I don’t often need to devote time making or waiting on bootable sticks.