systemd
Utilities for reading systemd/OS configuration files.
Types
| Type | Description |
|---|---|
OsRelease |
Parsed operating-system identification data with standard-aware projections. |
ExtensionScope |
A system- or configuration-extension scope. An unrecognized scope is kept as written. |
ExtensionScope = (:SYSTEM: | :INITRD: | :PORTABLE: | Str)
A system- or configuration-extension scope. An unrecognized scope is kept as written.
Functions
os_release … -> OsRelease
Returns parsed OS-identification data from an os-release file.
Parameters
| Name | Type | Description |
|---|---|---|
:path? |
(Str | fs.Path) |
File to read. Defaults to
/etc/os-release, falling back to /usr/lib/os-release as required by
the os-release specification. |