Hi Inspector42, I'm glad you were able to use my script. I like your rsync idea!
Here is a new script and accompanying files. This one is based around Apple's createinstallmedia script.
The unique feature of this script is that it builds an installer which will pre-patch the resulting El Capitan volume. What this means is that the installer can be run, and then the reboot will work without any further modification. You have a working installation of El Capitan directly from the installer.
Download the zip file.
Unzip it.
You should have a folder named pikify3.1
In that folder should be a number of files, the script is
createpikeinstallmedia
Pre-requisites:
- As per Peter's guide, you will need a volume that can be overwritten by the installer
- This could be a USB memory stick
- A small disk partition from one of your hard drives (not the disk that you intend to use for El Capitan)
- You need to be able to boot from this volume
- The installer volume needs to be at least 8GB
- Your copy of 'Install OS X El Capitan.app' should be located in your /Applications folder
Usage:
- Open a terminal window
- Change directory to the pikify3.1 folder from the zip file
- You need to run the script as the root user
- sudo -s
- [your password]
- ./createpikeinstallmedia /Volumes/[InstallerVolumeName]
- or
- sudo ./createpikeinstallmedia /Volumes/[InstallerVolumeName]
- [your password]
Once the script competes you should have an installer volume named 'Install OS X El Capitan'
- Reboot your machine
- Hold the ALT key down immediately after the startup chime to enter the boot chooser
- Choose the Install OS X El Capitan volume
Your machine should boot into the Installer, run the installer
You may need to click the Reboot button at the end of the install (for some reason, the 10 second countdown doesn't seem to automatically start)
Your machine should reboot into the new El Capitan Installation and begin the OS X setup procedure.
I have only tested this script as a
clean install onto an erased destination disk.
I don't know if it will work for an upgrade.
If you are upgrading I would suggest a clean install of El Capitan onto a spare disk, then use the Apple Migration Assistant to migrate your previous system and user files.
If you are brave and want to try an in-place upgrade,
make sure you backup your current system first...
Detail:
I created an additional package (pikify.pkg) which handles the post-install modification of the boot.efi files on the destination volume. The script puts pikify.pkg into the InstallESD.dmg, along with OSInstall.collection.
OSInstall.collection overrides the default behaviour of the Installer Assistant, it calls the default OSInstall.mpkg and appends pikify.pkg to the install chain.
In effect I'm running the exact same installation as an unmodified Apple install with the addition of my pikify.pkg.
Because the default behaviour has been overridden, there are a few differences:
- An unmodified Apple installer will open with the /System/Installation/CDIS/OS X Utilities.app
- The modified installer goes straight into the Installer
- An unmodified Apple installer will automatically reboot 10 seconds after the installation completes
- The modified installer doesn't, you will have to click the Reboot button
I've included both versions (black and grey) of Pike's 3.1 boot.efi file. If you want to change the colour, overwrite the boot.efi file in the pikify3.1 folder with the coloured version of your choice. The zip file unpacks with the grey version in place.
Enjoy...