Creating Bootable ISOs

From RockWiki

Jump to: navigation, search

Configure ROCK

After you have done the steps in Building Distributions you now want to burn this onto a bootable CD-ROM. For that you have to repeat some of the steps from before but with different settings.

You need to configure a second distribution. Call it bootdisk for example:

./scripts/Config -cfg bootdisk

In this configuration the only selection you have to make is the target: select the Bootdisk Target here. Configure the rest like you normally would.

'Make sure you select the Bootdisk target! The default is Crystal, and just saying bootdisk doesn't make it so, you must select the bootdisk target in the menu when you run Config!'

Now, download and build the bootdisk:

./scripts/Download -cfg bootdisk -required
./scripts/Build-Target -cfg bootdisk

After that successfully finished you can finally create your bootable CD set:

./scripts/Create-ISO -size 680 mycdset bootdisk mydistribution

The arguments are:

./scripts/Create-ISO [options] nameofcd firstbuilttarget [otherbuilttargets]

The -size parameter is the maximum allowed space on the iso the distribution may use. Leave some spare room for the ISO9660 metadata.

If you want to write a DVD use this command:

./scripts/Create-ISO -size 4400 mydvdset bootdisk mydistribution

Please note that a DVD does not have a capacity of 4.7 GigaByte (roughly 4812 MegaByte) but of 4.700.000.000 byte which translates to roughly 4486 MegaByte so using 4400 MegaByte for ROCK and 86 MB for the ISO9660 metadata is a good compromise. YMMV.

Personal tools