6.3. create

6.3.1. create mirror

rocks create mirror {path} [arch=string] [rollname=string] [version=string]

Create a Roll ISO image from the packages found in the repository located at 'URL'.

arguments

path

The network location of the repository of packages.

parameters

[arch=string]

Architecture of the mirror. (default = the architecture of of the OS running on this machine).

[rollname=string]

The base name for the created Roll. (default = 'updates').

[version=string]

The version number of the created Roll. (default = the version of Rocks running on this machine).

examples

# rocks create mirror http://mirrors.kernel.org/centos/4.5/updates/i386/RPMS rollname=updates version=4.5

Will mirror all the packages found under the URL http://mirrors.kernel.org/centos/4.5/updates/i386/RPMS and will create a Roll ISO image named 'updates-4.5-0.i386.disk1.iso'.

6.3.2. create roll

rocks create roll {roll...}

Create a roll. You may specify either a single XML file to build one Roll or a list of ISO files to build a Meta Roll.

arguments

roll

Either a list of Roll ISO files or the name of a single Roll XML description file. If a list of Roll ISO files to be merge together into a single Roll. Otherwise the single argument is assumed to be the name of the XML file generated by the top level Makefile in the Roll's source.

examples

# rocks create roll roll-base.xml

Creates the Rocks Base Roll from the roll-base.xml description file.

# rocks create roll base*iso kernel*iso

Create a composite Roll from a list of Roll ISOs.

6.3.3. create torrent

rocks create torrent {path} [time=string]

Create a torrent file for a regular file. This command is heavily used by rocks-dist in order to prepare the RPMS for the Avalanche Installer.

arguments

path

The pathname of the file or directory requiring torrent files.

parameters

[time=string]

The timestamp to be encoded within the torrent. If none is provided the current time is used.

examples

# rocks create torrent kernel-2.6.9-42.0.2.EL.i686.rpm

Generates a torrent file named kernel-2.6.9-42.0.2.EL.i686.rpm.torrent in the current directory.

# rocks create torrent rocks-dist/lan/i386/RedHat/RPMS

Generates torrent files for every file in the RPMS directory.