YaST2 Developers Documentation: Auto-Installation

Auto-Installation

modules/AutoinstStorage.ycp
Storage
  • Anas Nashif

This module has an unstable interface.

Imports

  • AutoinstData
  • FileSystems
  • Installation
  • Mode
  • Partitions
  • Partitions
  • Popup
  • Report
  • RootPart
  • Storage
  • Storage
  • Summary

Includes

  • autoinstall/autoinst_dialogs.ycp
  • autoinstall/autopart.ycp

Global Functions

Local Functions

global SetModified () -> void

Function sets internal variable, which indicates, that any settings were modified, to "true"

global GetModified () -> boolean

Functions which returns if the settings were modified

Return value:
settings were modified
global humanStringToByte (string s, boolean b) -> integer

Wrapper function for the LibStorage call that can't be used directly in YCP

Parameters:
s
b
Return value:
local set_devices (list<map> storage_config) -> map<string, map>

Pre-process partition plan and prepare for creating partitions.

Parameters:
storage_config
global mountBy (list<map> settings) -> list<map>

if mountby is used, we will search for the matching partition here.

Parameters:
settings
global Import (list<map> settings) -> boolean

Get all the configuration from a map. When called by inst_auto (preparing autoinstallation data) the list may be empty.

Parameters:
settings a list [...]
Return value:
success
global ImportAdvanced (map settings) -> boolean

Import Fstab data

Parameters:
settings Settings Map
Return value:
true on success
global Summary () -> string

return Summary of configuration

Return value:
configuration summary dialog
local handle_fstab () -> boolean

Handle /etc/fstab usage

global Write () -> boolean

Create partition plan

local build_id (string disk_dev_name, any nr) -> string

Build the id for a partition entry in the man table.

Parameters:
disk_dev_name
nr
Return value:
e.g.: 01./dev/hda
global Overview () -> list

Partitioning Overview

Return value:
Overview