272. SystemFilesCopy

Functionality for copying files from another systems

272.1. Summary of Module Globals

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

    272.2. Global Functions

    272.2.1. CopyFilesToSystem

    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

    272.2.2. CopyFilesToTemp

    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)

    272.2.3. 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.

    Function parameters

    • string create_directory

    Return value

    • string

    272.2.4. SaveInstSysContent

    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>

    272.3. Global Variables

    272.4. Module Requirements

    272.4.1. Module Imports

    • Directory
    • FileUtils
    • Installation
    • ProductFeatures
    • Stage
    • String

    272.4.2. Module Includes