YaST2 Developers Documentation: yast2

yast2

modules/Mode.ycp
Installation mode
  • Klaus Kaempf

This module has an unstable interface.

Provide installation mode information. Mostly values from /etc/install.inf See linuxrc documentation for detailed docs about this.

Global Functions

Local Variables

local _mode -> string

Current mode

local _test -> string

Current testing mode

local test_autochecked -> boolean

We do one automatic check whether _test should be set to testsuite.

local _ui -> string

Current UI mode

global Initialize () -> void

initialize everything from command-line of y2base

global mode () -> string

Returns the current mode name. It's one of "installation", "normal", "update", "repair", "autoinstallation", "autoinst_config"

global ui () -> string

Returns the current UI mode. It's one of "commandline", "dialog", "none"

global installation () -> boolean

we're doing a fresh installation

global live_installation () -> boolean

we're doing a fresh installation from live CD/DVD

global update () -> boolean

we're doing an update

global normal () -> boolean

normal, running system

global repair () -> boolean

start repair module

global autoinst () -> boolean

doing auto-installation

global autoupgrade () -> boolean

doing auto-upgrade

global config () -> boolean

configuration for auto-installation, only in running system

global test () -> boolean

Just testing. See installation/Test-Scripts/doit*

global screen_shot () -> boolean

dump screens to /tmp. Implies demo . See installation/Test-Scripts/yast2-screen-shots*

global testsuite () -> boolean

Returns whether running in testsuite.

global commandline () -> boolean

we're running in command line interface

Return value:
true if command-line is running