YaST2 Developers Documentation: Initial HW info module

Initial HW info module

This module has an unstable interface.

Collect and store hardware information.

Imports

  • Arch
  • Confirm
  • Progress
  • String
  • SystemSettings

Includes

  • hwinfo/routines.ycp

Global Functions

global Initialize (boolean force) -> boolean

Start hardware detection (only CPU and main memory)

Parameters:
force If true then start detection again (discard cached values)
Return value:
True on success
global MakeProposal (boolean reset) -> list<string>

Return short system description

Parameters:
reset If reset is true then always do hardware detection
Return value:
(string) list of hardware desciptions
global DetectedHardware (boolean force, block<boolean> abort) -> list<map>

Detect all hardware present in the system

Parameters:
force If force is true then detection is always started (cached value is discarded)
abort
Return value:
list of maps - detected hardware items ()