YaST2 Developers Documentation: yast2

yast2

modules/Mode.ycp
Installation mode

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 _ui -> string

Current UI mode

global Initialize () -> void

initialize everything from command-line of y2base

global installation () -> boolean

we're doing a fresh installation

global update () -> boolean

we're doing an update

global normal () -> boolean

normal, running system

global repair () -> boolean

start repair module

global autoinst () -> boolean

do auto-installation

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 commandline () -> boolean

we're running in command line interface

Return value:
true if command-line is running