First, i can't create a launchd, to "autostart" the script (rc.netboot, rc.liveboot, etc...) in single user mode
But if anyone have a suggestion, thanks.
Second, changing a little the tutorial, you maybe create a Live OS X for Mac, but in fact, this guide is for OSx86.
Thanks to @spartango @TheTeam @All others for customize this script.
This guide has been translated into English via google translator so I am not responsible for any misunderstanding/translated.
This guide is based on others... Thanks to them...
In my case is Mac OS X 10.5.6 (DSDT in Bios using just this kext AppleDecrypt / AppleSMBIOSEFI / IOUSBS's / skge for my network) thanks @roisoft @Pere @fassl @makerintel
Nothing DFE/132/CD in this tutorial...
Things you maybe need:
- The script customized
- Chameleon 1.0.11
- DVD R-RW-etc...
- Target Media (USB-Flash, USB-HDD, HDD, other partition...)
- Newly installed OS X partition
- Other OS X partition
- Kext's for your hardware...
On the way described by @spartango (I assume that you have the OS X installed on a partition functional).
- Use (boot) the newly installed OS X.
- Locate the /System/Library/Extensions/IOHDIXController.kext
- Copy IOHDIXController.kext on the desktop (for example)
- Show content kext and change the Info.plist:
Replacing Network-Root with Root
- Repeat these steps for ALL plugins kext mentioned here would be:
- After modifying the IOHDIXController.kext, add it to /System/Library/Extensions/ replacing the original by this new.
- Regenerate mkext (Deleting /System/Library/Extensions.mkext)
ONE (preparing the "Target Media")
In my case I used a HDD with a clean partition (10.6 GB) to prove that the ramdisk charge before proceeding to burn DVD.
- First start with an other OS X that is not the newly installed OS X.
- Have the "Target Media" ready. (This means partition with HFS+ and plenty free space)
- A partition that give correct permissions Terminal if required, but it is not necessary:
sudo chmod -R 775 /Volumes/(Target Media) sudo chown root:admin /Volumes/(Target Media)* Replace (Target Media) with name of your recently created partition.
- Now the fun part, following the above. Make a copy from terminal (with sudo) of the files suggested:
- These files are copied to the root of your newly installed OS X to the root of your Target Media via Terminal, for example:
sudo cp -R /Volumes/(newly installed OS X)/.Spotlight-V100 /Volumes/(Target Media)/* Replace (newly installed OS X) with the name of yout newly installed OS X.
* Replace (Target Media) with name of your recently created partition.
- Repeat for this:
- Repair Permissions.
- Create a new folder at the root of your Target Media with com.apple.Boot.plist , for example:
- Touch a little com.apple.Boot.plist adding -v -f -s rp=file:///live.dmg in Kernel Flags:
*file:///live.dmg can be change to the name of .dmg to be created later.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com...yList-1.0.dtd">
<string>-v -f -s rp=file:///live.dmg</string>
*The Kernel Flags "-v -f -s rp=file:///live.dmg" can be omitted from the plist (in which case it will be necessary to add them manually in Darwin)
- Repair Permissions.
- Create a new folder at the root of Target Media:
- Then copy the generated Extensions.mkext to the newly installed OS X, use the terminal for example:
sudo cp -R /Volumes/(newly installed OS X)/System/Library/Extensions.mkext /Volumes/(Target Media)/System/Library/
- Repair Permissions.
TWO (the famous script rc.liveboot)
Assuming you already have a script rc.liveboot (without .txt extension). In my case I did it manually from Terminal with nano because it might not only be a matter of removing the extension (.txt). I use 2 GB RAM, and I have not played in the value of the script RAMdisk
- Put rc.liveboot in /Volumes/(newly installed OS X)/etc/
- Give the same permission to rc.liveboot just like rc.netboot. Usually rc.netboot has permissions 755 and root:wheel:everyone so do the following in Terminal for rc.liveboot:
sudo chmod -R 755 /Volumes/(newly installed OS X)/etc/rc.liveboot sudo chown-R root:wheel /Volumes/(newly installed OS X)/etc/rc.liveboot
THREE (Creating a .dmg compressed image of newly installed OS X)
- Open Disk Utility.
- Select OS X partition newly installed.
- Create New Image with the following:
*This creates a compressed dmg "live.dmg" on the desktop (for example)
Save As: live (if you modify the script, give the same)
Image Format: compressed
*This new image contains the entire volume of its newly installed OS X, of course, compressed.
- Open and mount the image to see who pulls no mistakes and everything OK.
- Unmount live.dmg and copy it at the root of Target Media.
FOUR (Adding Boot in Target Media)
- Using EFI Chameleon Installer 1.0.11 (htt p://chameleon.osx86.hu/)
- Choose the correct Volume, in this case, Target Media
ls /Volumes/(Target Media)/
You see this files:
At this time we have a Target Media (not DVD) to boot the ramdisk
Now we have to try it...
- Start with this partition (volume) Target Media...
- Darwin will appears, later in Single User Prompt, type the following:
sh /etc/rc.liveboot initA message saying "messed with swap!... Setting ComputerName to ..."
- Then type:
exitSingle User exit and then enter the "live mode".
If all this has been good and you are enjoying your "Live Mode"... continue with the next step...
FIVE (Creating a bootable DVD image hybrid of Target Media previously done)We returned to our normal partition OS X (no Target Media)
For this step we do it an .iso with "El Torito" and the cdboot of Chameleon (previously added to our Target Media, using EFI Chameleon Installer 1.0.11)
- With a DVD ready to burn and Target Media mounted. Put the following in Terminal:
sudo hdiutil makehybrid -o livehecabe.iso /Volumes/(Target Media)/ -iso -hfs -joliet -eltorito-boot /Volumes/(Target Media)/usr/standalone/i386/cdboot -no-emul-boot -hfs-volume-name "Mac OS X Live DVD" -joliet-volume-name "Mac OS X Live DVD"
After that we will have an iso image in the home directory called livehecabe.iso list for burning via Toast, Disk Utility, etc...
And none of DFE at the moment...
And sorry my google traduction.