Welcome to AMD OS X

Why not register now to gain full access.

Tutorials for the installation and post install.
#6759
Today ill show you how to add your bootflag commands that you use at boot into an automatic process at boot.
First off this should ONLY be done once you have a successful build. The reason being for this is that if you install kexts that make a boot flag null (no longer needed) you can mess up your build and not be able to boot.

You will find your boot.plist in Extra folder.

Lets get started.



STEP 1
If you use a bootflag such as "GraphicsEnabler=No" all you have to do is convert it to code which is quite easy.

"GraphicsEnabler" is your <key> *Or <key>Query</key>
"No" is your <string> *Or <string>Answer</string>

You must close <key> and <string> by adding </key> or </string>
Which will look like this:
<key>GraphicsEnabler</key> <---- THIS IS CALLED CLOSING a piece of code! IT MUST BE DONE!
<string>No</string> <------- ALSO MUST BE CLOSED


This works the same for all bootflags you use and is universal.


STEP 2 ADDING CODE TO YOUR BOOT.PLIST

Open up your boot.plist and it should look similar to this but with more code.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

</dict>
</plist>

All you need to do is add the <key> and <string> between <dict> </dict> Like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

<key>GraphicsEnabler</key>           #MAKE SURE YOU CLOSE ALL CODE </key>
       <string>No</string>                       #MAKE SURE YOU CLOSE ALL CODE </string>
<key>EthernetBuiltIn</key>
        <string>Yes</string>
</dict>
</plist>
And that is it for adding boot flags propperly to your boot.plist





If you are lazy and dont want to do it properly just add your boot flags in:
<key>KernelFlags</key>
<string> GraphicsEnabler=No EthernetBuiltIn=yes</string>

Make sure that you only leave 1 space between commands and remember they are case sensitive!

 Advertising

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]