Jump to content
Delecta

Packages in EFI partition

4 posts in this topic

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Posted (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 by ricoc90

Share this post


Link to post
Share on other sites
Posted (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

595675577_Capturedcranle2019-06-0116_42_12.png.7e06e2b1760040846a36e3b8a45a2551.png

 

 

The build package working 10.6 to 10.14

1425758673_Capturedcranle2019-06-0116_49_34.png.852ce36b62fa5b5368c0108e765e2d61.png

 

Edited by chris1111

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×