Tapper::Installer::Precondition::Image
use Tapper::Installer::Precondition::Image;
Tapper::Installer::Precondition::Package - Install a package to a given location
Get the partition part of grub notation of a given device file eg. /dev/hda1.
@param string - partition number
@return int - grub device notation
Get the disc part of grub notation of a given device file eg. /dev/hda1.
@param string - device file name
@return success - (0, grub device notation) @return eror - (1, error string)
Write fstab on installed system based upon the installed images and partitions.
@return success - 0 @return error - error string
Generate grub config file menu.lst based upon user provided precondition.
@param string - name of the root partition
Create a grub config file (menu.lst) based on the options in the configuration hash.
Make installed system ready for boot from hard disk.
Return device name (i.e. /dev/$device) for a given device-id, partition label or $device name (with or without preceding /dev/). Doesn't work with dev-mapper.
@param string - device or reference to array with device ids @param string - base dir prepended to all paths (testing purpose)
@returnlist success - ( 0, device name string) @returnlist error - ( 1, error string)
Get the label of a partition to be able to set it again at mkfs.
@param string - device file
@returnlist success - ( 0, partition label string) @returnlist error - ( != 0, error string)
Generate a simple PXE grub config that forwards to local grub.
Copy menu.lst to NFS. We need the grub config file menu.lst on NFS because thats where PXE grub expects it. Still we create the file on the local hard drive because it's faster and allows users to boot with this config without using PXE grub.
Write content to grub file. This encapsulates writing to improve readability and testability.
@param string - what to write @param bool - true = truncate ('>'), false = append ('>>') (append is default)
Install a given image. This function is a wrapper for image installer functions so the caller doesn't need to care for preparations.
@param hash reference - containing image name (image), mount point (mount) and partition name (partition)
Install an image on a given device and mount it to a given mount point. Make sure to set partition label reasonably.
@param string - image file name @param string - device file name @param string - mount point relative to future test system
Install an image of type iso.
@param string - image file name @param int - size of the target partition @param string - device name of the target partition @param string - directory to mount the installed image to
Install an image of type tar.
@param string - image file name @param int - size of the target partition @param string - device name of the target partition @param string - directory to mount the installed image to @param string - partition label
Install an image of type tar.gz.
@param string - image file name @param int - size of the target partition @param string - device name of the target partition @param string - directory to mount the installed image to @param string - partition labe�
Install an image of type tar.bz2.
Install an image to a given partition and mount it to a given mount point.
@param string - device name @param string - image file @param string - mount point
Umounts all images that were mounted during installation in reverse order.
AMD OSRC Tapper Team <tapper@amd64.org>
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::Installer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::Installer
CPAN shell
perl -MCPAN -e shell install Tapper::Installer
For more information on module installation, please visit the detailed CPAN module installation guide.