Functionality for copying files from another systems
List of Global Functions
CopyFilesToSystem - Proceeds the copying of all files in inst-sys (that were copied from another partition before) to the directory.
CopyFilesToTemp - Mounts the partition and proceeds the copying files from that partition to the inst-sys.
CreateDirectoryIfMissing - Checks whether the directory exists and creates it if it is missing If the path exists but it is not a directory, it tries to create another directory and returns its name. 'nil' is returned when everythig fails.
SaveInstSysContent - Function reads <globals><save_instsys_content /></globals> from control file and copies all content from inst-sys to the just installed system.
List of Global Variables
Proceeds the copying of all files in inst-sys (that were copied from another partition before) to the directory.
Function parameters
string extract_to_dir
Return value
boolean
Mounts the partition and proceeds the copying files from that partition to the inst-sys.
Function parameters
string partition
list <string> filenames
string copy_to
Return value
boolean
copy_to == "/root/" (where to copy it to the installed system)
Checks whether the directory exists and creates it if it is missing If the path exists but it is not a directory, it tries to create another directory and returns its name. 'nil' is returned when everythig fails.
Function parameters
string create_directory
Return value
string
Function reads <globals><save_instsys_content /></globals> from control file and copies all content from inst-sys to the just installed system.
Return value
boolean
<globals> <save_instsys_content config:type="list"> <save_instsys_item> <instsys_directory>/root/</instsys_directory> <system_directory>/root/inst-sys/</system_directory> </save_instsys_item> </save_instsys_content> </globals>