I'm wondering how I can manipulate the boot menu on a Mac to add an option for a "Ubuntu ISO". To be 100% clear as I can see the non-answers coming, I am not looking to install Ubuntu, but just boot the ISO from the HD. From what I have researched I need to use efibootmgr
from inside a Linux Distro to manipulate the boot options.
For example this would be what I would do with Grub:
sudo nano /etc/grub.d/40_custom && sudo update-grub2
menuentry "Ubuntu ISO" {
set isofile="/home/isos/ubuntu.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject toram
initrd (loop)/casper/initrd.lz
}
But I need something like:
https://wiki.gentoo.org/wiki/Efibootmgr#Creating_a_boot_entry
efibootmgr -c -d /dev/sda -p 2 -L "Gentoo" -l '\efi\boot\bootx64.efi' -u 'root=/dev/sda3 initrd=\efi\boot\initramfs.img quiet'
– huksley Sep 27 '19 at 05:51efibootmgr -c -L NAME -d /dev/sda -p 1 -l /EFI/entry/shimx64.efi
. Check current entries usingefibootmgr -v
first to see how parameters look.efibootmgr
line of code so I voted accordingly, but would like to change to upvote. Will accept answer after testing. Can you confirm would this load the OS in the RAM which is my desire? I don't want any HD mounted and the ability to do partitioning on HD. – FreeSoftwareServers Sep 27 '19 at 06:33