InstallScript
Object Hierarchy:
Description:
Namespace: Osinfo
Package: libosinfo-1.0
Content:
Properties:
- public AvatarFormat avatar_format { get; }
- public InstallScriptInstallationSource installation_source { get; }
- public PathFormat path_format { get; }
- public InstallScriptInjectionMethod preferred_injection_method { get; set; }
- public string product_key_format { get; }
- public string profile { get; construct; }
- public string template_data { get; construct; }
- public string template_uri { get; construct; }
Creation methods:
- public InstallScript (string id)
- public InstallScript.data (string id, string profile, string templateData)
Construct a new install script from stylesheet data
- public InstallScript.uri (string id, string profile, string templateUri)
Construct a new install script from a stylesheet URI
Methods:
- public string generate (Os os, InstallConfig config, Cancellable? cancellable = null) throws Error
Creates an install script.
- public async string generate_async (Os os, InstallConfig config, Cancellable? cancellable) throws Error
Asynchronous variant of generate().
- public string generate_command_line (Os os, InstallConfig config)
Some install scripts need to pass a command line to the kernel, Such install scripts belong to OSs that provide paths to the kernel and initrd files that can be used to directly boot (http://wiki.
- public string generate_command_line_for_media (Media media, InstallConfig config)
Some install scripts need to pass a command line to the kernel, Such install scripts belong to OSs that provide paths to the kernel and initrd files that can be used to directly boot (http://wiki.
- public string generate_command_line_for_tree (Tree tree, InstallConfig config)
Some install scripts need to pass a command line to the kernel, Such install scripts belong to OSs that provide paths to the kernel and initrd files that can be used to directly boot (http://wiki.
- public string generate_for_media (Media media, InstallConfig config, Cancellable? cancellable = null) throws Error
Creates an install script.
- public async string generate_for_media_async (Media media, InstallConfig config, Cancellable? cancellable) throws Error
Asynchronous variant of generate_for_media().
- public string generate_for_tree (Tree tree, InstallConfig config, Cancellable? cancellable = null) throws Error
Creates an install script.
- public async string generate_for_tree_async (Tree tree, InstallConfig config, Cancellable? cancellable) throws Error
Asynchronous variant of generate_for_tree().
- public File generate_output (Os os, InstallConfig config, File output_dir, Cancellable? cancellable = null) throws Error
Creates an install script that is written to the returned file.
- public async File generate_output_async (Os os, InstallConfig config, File output_dir, Cancellable? cancellable) throws Error
Asynchronous variant of generate_output().
- public File generate_output_for_media (Media media, InstallConfig config, File output_dir, Cancellable? cancellable = null) throws Error
Creates an install script that is written to the returned file.
- public async File generate_output_for_media_async (Media media, InstallConfig config, File output_dir, Cancellable? cancellable) throws Error
Asynchronous variant of generate_output_for_media().
- public File generate_output_for_tree (Tree tree, InstallConfig config, File output_dir, Cancellable? cancellable = null) throws Error
Creates an install script that is written to the returned file.
- public async File generate_output_for_tree_async (Tree tree, InstallConfig config, File output_dir, Cancellable? cancellable) throws Error
Asynchronous variant of generate_output_for_tree().
- public unowned AvatarFormat get_avatar_format ()
Some install scripts have restrictions on the format of the user avatar.
- public bool get_can_post_install_drivers ()
Whether install script can install drivers at the very end of installation This can be used for installing devices which the OS in question does not have out of the box support.
- public bool get_can_pre_install_drivers ()
Whether install script can install drivers at the very beginning of installation.
- public InstallConfigParam get_config_param (string name)
Get a config param from the config param's list
- public List<unowned InstallScript> get_config_param_list ()
Get the list of valid config parameters for this .
- public unowned InstallConfigParamList get_config_params ()
Get the list of valid config parameters for this .
- public unowned string get_expected_filename ()
Some operating systems (as Windows) expect that script filename has particular name to work.
- public InstallScriptInjectionMethod get_injection_methods ()
Retrieve the supported method to inject the script in to the installation process.
- public InstallScriptInstallationSource get_installation_source ()
- public bool get_needs_internet ()
Some install scripts cannot ensure that they work without an internet connection.
- public unowned string get_output_filename ()
Some operating systems are able to use any script filename, allowing the application to set the filename as desired.
- public unowned string get_output_prefix ()
- public PathFormat get_path_format ()
Returns the path format to be used for the files and disks which will be used during the installation.
- public DeviceDriverSigningReq get_post_install_drivers_signing_req ()
If install script can install drivers at the end of installation, this function retrieves the requirement about signed status of drivers.
- public DeviceDriverSigningReq get_pre_install_drivers_signing_req ()
If install script can install drivers at the very beginning of installation, this function retrieves the requirement about signed status of drivers.
- public InstallScriptInjectionMethod get_preferred_injection_method ()
- public unowned string get_product_key_format ()
If this function returns a non-NULL string, it means that the this requires you to specify product registration key through InstallConfig instance passed to script generation methods.
- public unowned string get_profile ()
Returns a string representing the install script profile that's going to be used.
- public unowned string get_template_data ()
Returns the stylesheet data used to construct the install script.
- public unowned string get_template_uri ()
Returns the stylesheet URI used to construct the install script.
- public bool has_config_param (InstallConfigParam config_param)
Returns whether the this has the
config_param
searched or not. - public bool has_config_param_name (string name)
Returns whether the this has a configuration parameter matching
name
or not. - public void set_installation_source (InstallScriptInstallationSource source)
Set the installation source to be used with the this.
- public void set_output_prefix (string prefix)
Mind that not all installers support any name for the installer scripts.
- public void set_preferred_injection_method (InstallScriptInjectionMethod method)
Set the preferred injection method to be used with the this
Inherited Members:
All known members inherited from class Osinfo.Entity
All known members inherited from class GLib.Object