OSTree.BootconfigParser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class OSTree.BootconfigParser(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod new()¶
- Return type:
- clone()¶
- Returns:
Copy of self
- Return type:
- get(key)¶
- Parameters:
key (
str
) – the key name to retrieve- Returns:
The corresponding value, or
None
if the key hasn’t been found.- Return type:
Get the value corresponding to key from the boot configuration dictionary.
- get_overlay_initrds()¶
-
New in version 2020.7.
- parse(path, cancellable)¶
- Parameters:
path (
Gio.File
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- parse_at(dfd, path, cancellable)¶
- Parameters:
dfd (
int
) – Directory fdpath (
str
) – File pathcancellable (
Gio.Cancellable
orNone
) – Cancellable
- Raises:
- Return type:
Initialize a bootconfig from the given file.
- set(key, value)¶
-
Set the key/value pair to the boot configuration dictionary.
- set_overlay_initrds(initrds)¶
-
These are rendered as additional
initrd
keys in the final bootloader configs. The base initrd is part of the primary keys.New in version 2020.7.
- write(output, cancellable)¶
- Parameters:
output (
Gio.File
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type:
- write_at(dfd, path, cancellable)¶
- Parameters:
dfd (
int
) –path (
str
) –cancellable (
Gio.Cancellable
orNone
) –
- Raises:
- Return type: