Unknown YCP Module |
This module has an unstable interface. |
File: ImageInstallation.ycp
Module: ImageInstallation
Summary: Support functions for installation via images
Authors:
Jiri Srain
Repository holding all images
Set the repository to get images from
- Parameters:
-
repo integer the repository identification
Adjusts the repository for images
Description of all available images
Order of images
Image with software management metadata
Template for the path for an image on the media
List of already mounted images
Structure $[
"image_filaname" : $[ // size of an unpacked image in bytes "size" : integer, // number of files and directories in an image "files" : integer, ] ]
Image currently being deployed
display progress messages every NUMBERth record
NUMBER of bytes per record, multiple of 512
Defines whether some installation images are available
Name of image containing software management metadata (if exists)
- Return value:
-
image with sw mgmt metadata
Order of images to be deployed
- Return value:
-
a list of images definint the order
Returns list of currently selected images.
Structure $[
"image_id":$[ "file":filename, "type":type ], ... ]
- Return value:
-
images
- See
-
AddImage
Add information about new image
- Parameters:
-
name string the name/id of the image file string the file name of the image type string the type of the image, one of "tar" and "fs"
Removes the downloaded image. If the file is writable, releases all sources because only libzypp knows which files are copies and which are just symlinks to sources (e.g., nfs://, smb://).
- Parameters:
-
image
Deploy an image of the filesystem type
- Parameters:
-
id string the id of the image target string the directory to deploy the image to
- Return value:
-
true on success
Deploy an image of the filesystem type
- Parameters:
-
id string the id of the image target string the directory to deploy the image to
- Return value:
-
true on success
Mount an image of the filesystem type Does not integrate to the system, mounts on target
- Parameters:
-
id string the id of the image target string the directory to deploy the image to
- Return value:
-
true on success
Deploy an image (internal implementation)
- Parameters:
-
id string the id of the image target string the directory to deploy the image to temporary boolean true to only mount if possible (no copy)
- Return value:
-
true on success
Deploy an image
- Parameters:
-
id string the id of the image target string the directory to deploy the image to
- Return value:
-
true on success
Deploy an image temporarily (just mount if possible)
- Parameters:
-
id string the id of the image target string the directory to deploy the image to,
- Return value:
-
true on success
UnDeploy an image temporarily (if possible, only for the FS images)
- Parameters:
-
id string the id of the image target string the directory to deploy the image to,
- Return value:
-
true on success
Loads non-mandatory details for every single selected image.
Deploy all images
- Parameters:
-
images a list of images to deploy target string directory where to deploy the images
Returns the intersection of both patterns supported by the imageset and patterns going to be installed.
- Parameters:
-
imageset_patterns installed_patterns
Find a set of images which suites selected patterns
- Parameters:
-
patterns a list of patterns which are selected
- Return value:
-
true on success or when media does not contain any images
Returns map with description which images will be used
Structure $[
"deploying_enabled" : boolean, "images" : returned by GetCurrentImages() ]
- Return value:
-
with description
Copy a subtree, limit to a single filesystem
- Parameters:
-
from string source directory to string target directory progress_start progress_finish
- Return value:
-
true on success
List of all handled types.
Map that stores all the requested states of all handled/supported types.
Function stores all new/requested states of all handled/supported types.
- Parameters:
-
one_object one_type
- Return value:
-
whether the package should be additionally installed
Restores packages statuses from 'objects_state': Selects packages for removal, installation, upgrade.
- Return value:
-
if successful