├── README.md └── images ├── broly0.png ├── broly1.png ├── broly10.png ├── broly11.png ├── broly12.png ├── broly3.png ├── broly4.png ├── broly5.png ├── broly6.png ├── broly7.png ├── broly8.png └── broly9.png /README.md: -------------------------------------------------------------------------------- 1 | # Making the installer in Linux 2 | 3 | * Supported version: 0.8 4 | 5 | While you don't need a fresh install of macOS to use OpenCore, some users prefer having a fresh slate with their boot manager upgrades. 6 | 7 | To start you'll need the following: 8 | 9 | * 4GB USB Stick 10 | * [macrecovery.py](https://github.com/acidanthera/OpenCorePkg/releases) 11 | 12 | ## Downloading macOS 13 | 14 | Now to start, first cd into [macrecovery's folder](https://github.com/acidanthera/OpenCorePkg/releases) and run one of the following commands: 15 | 16 | 17 | ```sh 18 | # Adjust below command to the correct folder 19 | cd ~/Downloads/OpenCore-0/Utilities/macrecovery/ 20 | ``` 21 | 22 | Next, run one of the following commands depending on the OS you'd like to boot: 23 | 24 | ```sh 25 | # Lion(10.7): 26 | python3 ./macrecovery.py -b Mac-2E6FAB96566FE58C -m 00000000000F25Y00 download 27 | python3 ./macrecovery.py -b Mac-C3EC7CD22292981F -m 00000000000F0HM00 download 28 | 29 | # Mountain Lion(10.8): 30 | python3 ./macrecovery.py -b Mac-7DF2A3B5E5D671ED -m 00000000000F65100 download 31 | 32 | # Mavericks(10.9): 33 | python3 ./macrecovery.py -b Mac-F60DEB81FF30ACF6 -m 00000000000FNN100 download 34 | 35 | # Yosemite(10.10): 36 | python3 ./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000GDVW00 download 37 | 38 | # El Capitan(10.11): 39 | python3 ./macrecovery.py -b Mac-FFE5EF870D7BA81A -m 00000000000GQRX00 download 40 | 41 | # Sierra(10.12): 42 | python3 ./macrecovery.py -b Mac-77F17D7DA9285301 -m 00000000000J0DX00 download 43 | 44 | # High Sierra(10.13) 45 | python3 ./macrecovery.py -b Mac-7BA5B2D9E42DDD94 -m 00000000000J80300 download 46 | python3 ./macrecovery.py -b Mac-BE088AF8C5EB4FA2 -m 00000000000J80300 download 47 | 48 | # Mojave(10.14) 49 | python3 ./macrecovery.py -b Mac-7BA5B2DFE22DDD8C -m 00000000000KXPG00 download 50 | 51 | # Catalina(10.15) 52 | python3 ./macrecovery.py -b Mac-00BE6ED71E35EB86 -m 00000000000000000 download 53 | 54 | # Big Sur(11) 55 | python3 ./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 download 56 | 57 | # Monterey (12) 58 | python3 ./macrecovery.py -b Mac-E43C1C25D4880AD6 -m 00000000000000000 download 59 | 60 | # Latest version 61 | # ie. Ventura (13) 62 | python3 ./macrecovery.py -b Mac-B4831CEBD52A0C4C -m 00000000000000000 -os latest download 63 | ``` 64 | 65 | From here, run one of those commands in terminal and once finished you'll get an output similar to this: 66 | 67 | ![alt text](/images/broly10.png) 68 | 69 | ## Making the installer 70 | 71 | This script automatically flash the recovery and OpenCore to the USB-drive, the Opencore partition will be mounted at`/mnt` 72 | if you prefer to do the entire process manually skip to the manual installation. 73 | 74 | ![alt text](/images/broly0.png) 75 | 76 | 1. run 77 | ``` 78 | curl -o ocfd.sh https://raw.githubusercontent.com/Broly1/ocfd/main/ocfd.sh && chmod +x ocfd.sh && ./ocfd.sh 79 | ``` 80 | or manually download it a paste it inside `/macrecovery/` directory and type `./ocfd.sh` 81 | 82 | 2. type in your root password and wait for the script to do its job. 83 | 84 | ![lsblk](/images/broly12.png) 85 | 86 | ### Manual Instalation 87 | 88 | For manual instalation this section will target making the necessary partitions in the USB device. You can use your favorite program be it `sgdisk` `gdisk` `fdisk` `parted` `gparted` or `gnome-disks`. This guide will focus on `sgdisk` as it's fast and simple. 89 | 90 | ### Method 1 91 | 92 | In terminal: 93 | 94 | 1. run `lsblk` and determine your USB device block 95 | ![lsblk](/images/broly1.png) 96 | 2. run ``sudo umount /dev/xxx?*`` replace `/xxx` with your USB block 97 | 98 | 3. run `sudo sgdisk --zap-all /dev/xxx && partprobe` to remove all partitions on the drive 99 | 100 | 4. run `sudo sgdisk /dev/xxx -o` to clear the partition table and make a new GPT one 101 | 102 | 5. run `sudo sgdisk /dev/xxx --new=0:0: -t 0:0700 && partprobe` to create a Microsoft basic data partition type 103 | 104 | 6. run `sudo mkfs.vfat -F 32 -n "OPENCORE" /dev/xxx1` to format your USB to FAT32 and named OPENCORE 105 | 106 | 7. Use `lsblk` to determine your partition's identifiers 107 | 108 | 8. mount your USB partition with `udisksctl` (`udisksctl mount -b /dev/xxx1`, no sudo required in most cases) 109 | or with `mount` (`sudo mount /dev/xxx1 /where/your/mount/stuff`, sudo is required) 110 | 9. `cd` to your USB drive and `mkdir com.apple.recovery.boot` in the root of your FAT32 USB partition 111 | 10. now `cp` or `rsync` both `BaseSystem.dmg` and `BaseSystem.chunklist` into `com.apple.recovery.boot` folder. 112 | ![lsblk](/images/broly3.png) 113 | 114 | ### Method 2 (in case 1 didn't work) 115 | 116 | In terminal: 117 | 118 | 1. run `lsblk` and determine your USB device block 119 | ![lsblk](/images/broly1.png) 120 | 121 | 2. run ``sudo umount /dev/xxx?*`` to umount the USB device 122 | 123 | 3. run `sudo sgdisk --zap-all /dev/xxx && partprobe` to remove all partitions on the drive 124 | 125 | 4. run `sudo sgdisk /dev/xxx -o` to clear the partition table and make a new GPT one 126 | 127 | 5. run `sudo sgdisk /dev/xxx --new=0:0:+300MiB -t 0:ef00 && partprobe` to create a 300MB partition that will be named later on OPENCORE 128 | 129 | 6. run `sudo sgdisk -e /dev/xxx --new=0:0: -t 0:af00 && partprobe` for Apple HFS/HFS+ partition type 130 | 131 | 7. Use `lsblk` again to determine the 300MB drive and the other partition 132 | ![alt text](/images/broly6.png) 133 | 134 | 8. run `sudo mkfs.vfat -F 32 -n "OPENCORE" /dev/xxx1` to format the 300MB partition to FAT32, named OPENCORE 135 | 136 | 9. then `cd` to `/OpenCore/Utilities/macrecovery/` and you should get to a `.dmg` and `.chunklist` files 137 | ![lsblk](/images/broly5.png) 138 | 139 | 10. download `dmg2img` (available on most distros) 140 | 141 | 11. run `dmg2img -l BaseSystem.dmg` and determine which partition has `disk image` property 142 | ![alt text](/images/broly8.png) 143 | 144 | 12. run `dmg2img -p -i BaseSystem.dmg -o ` 145 | to extract and write the recovery image to the partition disk 146 | ![lsblk](/images/broly9.png) 147 | * It will take some time. A LOT if you're using a slow USB (took me about less than 5 minutes with a fast USB2.0 drive). 148 | 13. mount the FAT32 partition `udisksctl` (`udisksctl mount -b /dev/xxx1`, no sudo required in most cases) 149 | or with `mount` (`sudo mount /dev/xxx1 /where/your/mount/stuff`, sudo is required) this is where you will drop your OC EFI folder. 150 | 151 | ## Now with all this done, head to https://dortania.github.io/OpenCore-Install-Guide/ktext.html to finish up your work 152 | credits to Dortania for the original guide. 153 | -------------------------------------------------------------------------------- /images/broly0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly0.png -------------------------------------------------------------------------------- /images/broly1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly1.png -------------------------------------------------------------------------------- /images/broly10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly10.png -------------------------------------------------------------------------------- /images/broly11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly11.png -------------------------------------------------------------------------------- /images/broly12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly12.png -------------------------------------------------------------------------------- /images/broly3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly3.png -------------------------------------------------------------------------------- /images/broly4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly4.png -------------------------------------------------------------------------------- /images/broly5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly5.png -------------------------------------------------------------------------------- /images/broly6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly6.png -------------------------------------------------------------------------------- /images/broly7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly7.png -------------------------------------------------------------------------------- /images/broly8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly8.png -------------------------------------------------------------------------------- /images/broly9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Broly1/Hackintosh-linux-Installer/405b05c6c1d32efc52dc704cc7274efb180f07e9/images/broly9.png --------------------------------------------------------------------------------