How to Edit OpenCore Boot Menu Entries? [ Os Name, Icon and Visibility] - ExtremeDot/MSI-X570-GAMING-PLUS-Hackintosh-Working-EFI-OpenCore GitHub Wiki

How to change Icons of boot entrey in OpenCore Boot menu?


Edit your EFI "Config.plist"

goto Misc > Boot set the values:

HideAuxiliary = True PickerAttributes = 19 LauncherOption = Full PickerVariant = Auto ShowPicker = True

Save the Config.plist


For Mac-OS

Set ICON

you need to add ".VolumeIcon.icns" into preboot partition/folder of your mac.

  • a: Download OpenCanpoy compatible icon file , you can download from https://github.com/blackosx/OpenCanopyIcons for example my icon file is located on desktop with Apple.icns name.

  • b: open Terminal and run commands

sudo -i 

enter your password to run commands as root

  • c: type "cp" then drag Apple.icns into terminal window , then type commands below

you must change USERNAME and UIID Number with your own.

UIID must be like this: 51F87655F-1587-4AE1-8971-07A197956217

USERNAME : your user name

cp /Users/USERNAME/Desktop/Apple.icns /System/Volumes/Preboot/UIID/.VolumeIcon.icns

then reboot your mac to see new icon.

Set Boot-menu Name

Method A: just rename the Installed Mac OS Partition form Disk Utility

Method B: run command in terminal

change name to "MacOS Ventura"

bless --folder /  --label MacOS\ Ventura

For Microsoft Windows OS

Set ICON

All Steps and commands are running from macOS

mount Windows EFI partition copy your Icon.icns into root of EFI folder as .VolumeIcon.icns

ex: using Terminal in macOS

Icon Name: Icon.icns

Windows EFI Address: Volumes/NO\ NAME/

sudo cp Icon.icns /Volumes/NO\ NAME/.VolumeIcon.icns

Set Boot-menu Name

  1. mount Windows EFI Partition

you can mount EFI partition using OpenCore Configurator or MountEFI

  1. create Mac-OS compatible disk-name's file using bless command into Windows EFI Boot partition

{FOLDER_PATH}=WindowsEFIpartitionDrive/EFI/Microsoft/Boot

{LABEL_TEXT}=your desired disk name

run this commands from terminal

sudo bless --folder /Volumes/NO\ NAME/EFI/Microsoft/Boot/ --label "Windows 11"


For Linux OS

Set ICON

Login into your Linux copy Icon.icns file into root of your Linux distro

ex: Icon Name: Icon.icns

sudo cp Icon.icns /.VolumeIcon.icns

Set Boot-Menu Name

Boot into Your Linux machine and change the "PRETTY_NAME" value from "/usr/lib/os-release" file.

open Terminal and run commands below

sudo nano /usr/lib/os-release

then change the value of PRETTY_NAME to your custom name.

PRETTY_NAME="Linux Ubuntu"

Screenshot from 2023-03-12 13-32-32

save [Ctrl + s] and exit [Ctrl +x].


Visibility

be care of this command, don't disable main OS.

Disabled = Don't Display OS entry Enabled = Show The OS Entry in OpenCore BootMenu

echo "Disabled" > /System/Volumes/Preboot/UIID/.contentVisibility

Resources:

from open core official document:


– .VolumeIcon.icns file at the Preboot volume root (/System/Volumes/Preboot/, when mounted at the default location within macOS) for APFS (otherwise).
– .VolumeIcon.icns file at the volume root for other filesystems.



0x0002 — OC_ATTR_USE_DISK_LABEL_FILE, use custom prerendered titles for boot entries from .disk_label (.disk_label_2x) file next to the bootloader for all filesystems. These labels can be generated via the disklabel utility or the 

bless --folder {FOLDER_PATH} --label {LABEL_TEXT} 

command. When prerendered labels are disabled or missing, use label text in .contentDetails (or .disk_label.contentDetails) file next to bootloader if present instead, otherwise the entry name itself will be rendered.