Skip to content

Commit

Permalink
add changes to readme v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed May 2, 2023
1 parent a5c26d9 commit d99616e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ macOS Mojave: 10.14.6 (18G103)
- Boot Fedora Installer from USB drive directly from macOS boot manager. (You can boot into it by pressing and holding Option key (ALT key) after clicking the power-on button when your computer was turned off or on restart/reboot when Apple logo is shown on the screen).
- There will be two/three boot options available, usually the last one works for me. (There are multiple boot options, because there are three different partitions in the ISO to make the ISO bootable on different set of computers: 1) ISO9660: with installer data, 2) fat32, 3) hfs+)
- I recommend using standard partition layout during partitioning your Disk in Anaconda (Fedora Installer) as I haven't tested other scenarios yet. <https://github.com/mikeeq/mbp-fedora/issues/2
<!-- TODO: change according to upstream changes -->
- please create a separate partition for Linux EFI (Linux HFS+ ESP) as Anaconda installer requires separate partition on Mac devices, and it'll be reformatted to EFI (FAT32) during post-install scripts Anaconda's step (at the end of installation process).

```bash
/boot/efi - 600MiB Linux HFS+ ESP
/boot/efi - 600MiB EFI FAT32
/boot - 2GiB EXT4
/ - xxxGiB EXT4
```

> You can leave the desired capacity value empty for the last partition, Anaconda will allocate all free disk space to that partition when defining it.
![anaconda partitioning](screenshots/anaconda-3.png)
Expand Down
4 changes: 3 additions & 1 deletion fedora-mbp.ks
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ sed -i '/^type=rpm.*/a exclude=kernel,kernel-core,kernel-devel,kernel-devel-matc
cp -rfv /tmp/kickstart_files/grub/30_os-prober ${INSTALL_ROOT}/etc/grub.d/30_os-prober
chmod 755 ${INSTALL_ROOT}/etc/grub.d/30_os-prober
### Post install anaconda scripts - Reformatting HFS+ EFI partition to FAT32 and rebuilding grub config
### Post install anaconda scripts - Adding Fedora icon and label to Mac boot entry
mkdir -p ${INSTALL_ROOT}/usr/share/anaconda/mac_extras
cp -rfv /tmp/kickstart_files/usb/* ${INSTALL_ROOT}/usr/share/anaconda/mac_extras/
cp -rfv /tmp/kickstart_files/post-install-kickstart/*.ks ${INSTALL_ROOT}/usr/share/anaconda/post-scripts/
%end
10 changes: 10 additions & 0 deletions files/post-install-kickstart/97-mbp-post-install.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%post --nochroot
# Adding Fedora icon and label to Mac boot entry
mkdir -p ${ANA_INSTALL_PATH}/boot/efi/
mkdir -p ${ANA_INSTALL_PATH}/boot/efi/System/Library/CoreServices/
cp -rfv ${ANA_INSTALL_PATH}/usr/share/anaconda/mac_extras/.VolumeIcon.icns ${ANA_INSTALL_PATH}/boot/efi/
cp -rfv ${ANA_INSTALL_PATH}/usr/share/anaconda/mac_extras/.disk_label ${ANA_INSTALL_PATH}/boot/efi/System/Library/CoreServices/
%end

0 comments on commit d99616e

Please sign in to comment.