man SystemInstaller::Partition () - Interface for creating partition information files

NAME

SystemInstaller::Partition - Interface for creating partition information files

SYNOPSIS

 use SystemInstaller::Partition

 open(FH,"</tmp/disktable");
 %DISKS=&read_partition_info(*FH);
 if (&partition_setup($imagename,%DISKS)) {
         print "Partition setup failed!\n";
 }

DESCRIPTION

SystemInstaller::Partition provides an interface for creating partitioning files.

It parses the partition file and creates the necessary files in the image to initiate disk partitioning and filesystem creation when the image is installed.

The following routines are exported:

%DISKS = read_partition_info(<FILEHANDLE>)
Read the partition info from the filehandle that is passed in. The file handle may be STDIN. For details on the file format, see the mksidisk man page. A hash is returned that contains the information from the file to pass to the other routines.
%DISKS = change_disk_type(<type>,%DISKS)
Given the desired disk type (eg ide) and a CW%DISKS hash, return a new CW%DISKS hash in which ALL drives have been changed to the desired type.
partition_setup(<imagename>,%DISKS)
Apply the partition and filesystem information in the CW%DISKS hash to the image referenced by <imagename>

DATA

The CW%DISKS hash stores all information from the partition file, as well as some items that are added as execution progresses. The data has the following format:

        $DISKS{FILESYSTEMS}{$devicename} = (
                TYPE    => $fstype,
                MOUNT   => $mountpoint,
                DEVICE  => $devicename,
                OPTIONS => $mountoptions,
        );
        $DISKS{PARTITIONS}{$devicename} = (
                TYPE     => $partition_type,
                SIZE     => $size,
                BOOTABLE => $boot,
                DEVICE   => $devicename,
        );

AUTHOR

Michael Chase-Salerno <mchasal@users.sf.net>, Stacy Woods <spwoods@us.ibm.com>

SEE ALSO

SystemInstaller::Partition::IA, mksidisk(1)