Skip to content

Instantly share code, notes, and snippets.

@nonkronk
Last active February 27, 2024 02:15
Show Gist options
  • Save nonkronk/8cb3c00729631e2aa113c51934bad6d5 to your computer and use it in GitHub Desktop.
Save nonkronk/8cb3c00729631e2aa113c51934bad6d5 to your computer and use it in GitHub Desktop.
Access config.plist OpenCore from a macos_disk.img on Unraid

Access config.plist OpenCore from a macos_disk.img on Unraid

Mount the EFI image with the following commands

modprobe nbd max_part=8
qemu-nbd --connect=/dev/nbd0 /mnt/user/domains/WORKING-VM/mac_hdd_ng.img
mkdir /mnt/nbd
mount /dev/nbd0p1 /mnt/nbd

Now we have the macos_disk.img content mounted into /path/to/the/mount/point/

cd /mnt/nbd
vim config.plist # (make our edits)
cd /
umount /mnt/nbd
qemu-nbd --disconnect /dev/nbd0
rmmod nbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment