Delecta Posted May 21, 2019 Share Posted May 21, 2019 Hello guys ! I am working on a new project and I need to create a pkg to install files in the EFI partition. I am using the app called "Packages" but I don't know how to made it mount the EFI of the startup disk, install the files and unmount the partition. When I create a folder /EFI or /EFIROOTDIR it creates a folder to the start of the disk not in the partition. If anyone got an idea, even with XCode Thank you very much Link to comment https://www.insanelymac.com/forum/topic/338863-packages-in-efi-partition/ Share on other sites More sharing options...
Guest ricoc90 Posted May 21, 2019 Share Posted May 21, 2019 (edited) Create a pre-install script that mounts the EFI partition. You could for example take a look at how Clover does it:https://sourceforge.net/p/cloverefiboot/code/HEAD/tree/CloverPackage/package/Scripts.templates/EFIFolder/MountESP Edited May 21, 2019 by ricoc90 Link to comment https://www.insanelymac.com/forum/topic/338863-packages-in-efi-partition/#findComment-2674576 Share on other sites More sharing options...
chris1111 Posted June 1, 2019 Share Posted June 1, 2019 (edited) Here simple package for Mount EFI create with pkgbuild command Simply run Packager.command Create-MountEFIPKG.zip #!/bin/bash # script for create package MountEFI # by chris1111 PARENTDIR=$(dirname "$0") cd "$PARENTDIR" pkgbuild --root ./MountEFIPKG --scripts ./scripts --identifier com.Hackintosh.cloverbootloader --version 1 --install-location / MountEFIPKG.pkg productbuild --distribution ./distribution.xml --resources ./Background --package-path ./CloverUEFI.pkg ./MountEFI-PKG.pkg Sleep 2 rm ./MountEFIPKG.pkg exit 0 The build package working 10.6 to 10.14 Edited June 1, 2019 by chris1111 Link to comment https://www.insanelymac.com/forum/topic/338863-packages-in-efi-partition/#findComment-2675840 Share on other sites More sharing options...
Delecta Posted June 4, 2019 Author Share Posted June 4, 2019 Thank you guys ! Link to comment https://www.insanelymac.com/forum/topic/338863-packages-in-efi-partition/#findComment-2676201 Share on other sites More sharing options...
Recommended Posts