smah.settings.system.operating_system.info.linux_info
Classes
|
Represents Linux-specific OS details. |
- class smah.settings.system.operating_system.info.linux_info.LinuxInfo(config_data=None, fetch=False)[source]
Bases:
BaseInfoRepresents Linux-specific OS details.
- errors
List of errors encountered during initialization.
- Type:
list
- source
The source of the OS details.
- Type:
str
- details
The OS details.
- Type:
dict
- vsn
Version string.
- Type:
str
- configured
Indicates if the details are configured.
- Type:
bool
- static kind()[source]
Returns the kind of the OS details.
- Returns:
The kind of the OS details.
- Return type:
str
- static os_release_details() Tuple | None[source]
Retrieves OS release details from /etc/os-release.
- Returns:
A tuple containing the source and details dictionary.
- Return type:
tuple