# Title:        Install images onto disks/flashes
# Description:  Several scripts to generate and write images and flashes
# Packager:     Claudio Fleiner (Transmeta)
# Menu:         build
# URL:          http://midori.transmeta.com/

# Name:         EDITION
# Description:  set the edition number that will be used for all images that have no
#               .edition file. If EDITION is not defined or is empty the number of
#               seconds since the EPOCH is used.
# Type:         REGEX ^\d*$
# Default:      ""
EDITION=

# Name:         RWSIZE
# Description:  Size of the read/write partition in bytes (64K)
# Type:         INTEGER
# Default:      65536
RWSIZE=65536

# Name:         PACKED_IMAGES
# Description:  Number of image slots needed in the packed cramfs partition
# Type:         INTEGER
# Default:      20
PACKED_IMAGES=20

# Name:         IMAGE_DEVICE
# Description:  Device that names the harddisk on the client.
#               Usually its /dev/hda, but for scsi it could be /dev/sda
# Type:         STRING
# Default:      /dev/hda
IMAGE_DEVICE=/dev/hda

# Name:         ROOT_SIZE
# Description:  Size of root partition (if set to 0 the size will be set
#               to the real size + ROOT_FREE)
# Type:         INTEGER
# Default:      5000000
ROOT_SIZE=5000000

# Name:         ROOT_FREE
# Description:  Bytes that must be free on the root partition. The script
#               will abort if this is not the case, unless ROOT_SIZE is set
#               to 0
# Type:         INTEGER
# Default:      2000000
ROOT_FREE=2000000

# Name:         PACKED
# Description:  List of top level directories (separated spaces) to be stored in 
#               the packed cramfs partition. If you want to divide a directory into sub images 
#               you need to store those in the special file $IMAGE/images (while installing
#               the files). You should add all directories
#               that do not have to be part of the root partition. Each directory will be
#               replaced by a symlink.
# Type:         STRING
# Default:      "usr"
PACKED="usr"

# Name:         PACKED_PARTITION
# Description:  The partition number used for the packed partition. By default 4 is used,
#               change at your own risk, this has not been tested.
# Type:         REGEX [1234]
# Default:      4
PACKED_PARTITION=4

# Name:         INSTALL_DEVICE
# Description:  It defines the default installation harddisk/flash, for example /dev/hdc
# Type:         STRING
# Default:      ""
INSTALL_DEVICE=""

# Name:         DISK_HEADS
# Description:  If you want to create a binary file that can be written to a HD or Flash
#               you should define the following variables. The default creates an image
#               that should work with most 32MB flashes. For flashes use the following numbers:<br>
#               Cylinders range from 1009 to 1019,<br>
#               Sectors are always 62<br>
#               Heads are 1 (for 32MB), 2 (for 64MB), 4 (for 128MB).<br>
#               The IBM microdrive (340MB) has 12 heads, 58 sectors and 1006 cylinders
# Type:         INTEGER
# Default:      1
DISK_HEADS=1

# Name:         DISK_SECTORS
# Description:  See DISK_HEADS
# Type:         INTEGER
# Default:      62
DISK_SECTORS=62

# Name:         DISK_CYLINDERS
# Description:  See DISK_HEADS
# Type:         INTEGER
# Default:      1009
DISK_CYLINDERS=1009

# Name:         DISK_FILENAME
# Description:  Name of the file to create
# Type:         STRING
# Default:      "$IMAGE/disk"
DISK_FILENAME="$IMAGE/disk"
