OSTree.BootconfigParser

g GObject.Object GObject.Object OSTree.BootconfigParser OSTree.BootconfigParser GObject.Object->OSTree.BootconfigParser

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

clone ()

get (key)

get_overlay_initrds ()

parse (path, cancellable)

parse_at (dfd, path, cancellable)

set (key, value)

set_overlay_initrds (initrds)

write (output, cancellable)

write_at (dfd, path, cancellable)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class OSTree.BootconfigParser(**kwargs)
Bases:

GObject.Object

Abstract:

No

classmethod new()
Return type:

OSTree.BootconfigParser

clone()
Returns:

Copy of self

Return type:

OSTree.BootconfigParser

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:

str or None

Get the value corresponding to key from the boot configuration dictionary.

get_overlay_initrds()
Returns:

Array of initrds or None if none are set.

Return type:

[str] or None

New in version 2020.7.

parse(path, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool

parse_at(dfd, path, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool

Initialize a bootconfig from the given file.

set(key, value)
Parameters:
  • key (str) – the key

  • value (str) – the key

Set the key/value pair to the boot configuration dictionary.

set_overlay_initrds(initrds)
Parameters:

initrds ([str] or None) – Array of overlay initrds or None to unset.

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:
Raises:

GLib.Error

Return type:

bool

write_at(dfd, path, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool