YaST2 Developers Documentation: Auto-installation



functions
files
intro

Auto-installation

modules/AutoInstall.ycp
Auto-installation related functions module Author: Anas Nashif

Imports

  • BootGRUB
  • BootLILO
  • Installation
  • Language
  • Mode
  • ModulesConf
  • Report
  • X11Version
  • XML

Includes

  • autoinstall/io.ycp

Functions

global AutoInstall () -> void

Constructer

global ProcessProfile () -> boolean

Parse profile and set some values

global Restore () -> boolean

Restore the the current data from a file that has been saved before. @param -

Return value:
true - Data base file found. Restore successful. false - No data base file found.
See:
save()

global Save () -> void

Save the current data into a file to be read after a reboot. @param -

Return value:
-
See:
Restore()

global ParseCmdLine () -> boolean

Return location of profile from command line.

Return value:
with protocol, server, path
Example:
  autoyast=http://www.server.com/profiles/

global fstabSettings () -> list

Parse and prepare fstab settings

fstab["/dev/pts"] = $["spec":"devpts", "file":"/dev/pts", "vfstype":"devpts",
  "mntops":"defaults", "freq":0, "passno":0];

Return value:
fstab list to be used by write_fstab

global generalSettings () -> void

Configure general settings @param void

global bootloaderSettings () -> void

Configure bootloader settings @param void

global postPackageList () -> list

Return post package list

Return value:
post packages

global packageList () -> list

Parse package list

Return value:
Packages

global softwareSettings () -> boolean

Configure software settings @param void

global Finalize () -> void

Finalize autoinst settings @param

global sysconfigSettings () -> void

Write sysconfig variables @param void

global scriptSettings (string type) -> void

Execute pre scripts

Parameters:
type of script

global lvmSettings () -> void

Create LVM partition plans @param void

global raidSettings () -> void

Create RAID partition plans @param void

global CopyFiles () -> void

Copy custom configuration files to system. @param void

local WriteSysconfigValue (string file, string key, string value) -> void

Write a single sysconfig value

Parameters:
file filename to write to
key of sysconfig variable
value of sysconfig variable

local ReadMenuEntries () -> list

read_plugins() Read plugin configuration file @return: map

global addSysconfigVar (string file, string key, string value, string package) -> void

Add a single entry to the Sysconfig list of variables

Parameters:
file
key
value
package

global saveMiscData () -> void

Save misc autoinstallation data


YaST2 Developers Documentation