Skip to main content

Module utils

Module utils 

Source

EnumsΒ§

EfiError

FunctionsΒ§

async_task_with_spinner πŸ”’
Call an async task function, and write a message to stderr with an automatic spinner to show that we’re not blocked. Note that generally the called function should not output anything to stderr as this will interfere with the spinner.
deployment_fd πŸ”’
digested_pullspec πŸ”’
Given a possibly tagged image like quay.io/foo/bar:latest and a digest 0ab32…, return the digested form quay.io/foo/bar:latest@sha256:0ab32… If the image already has a digest, it will be replaced.
executable_candidates πŸ”’
find_mount_option πŸ”’
Given an mount option string list like foo,bar=baz,something=else,ro parse it and find the first entry like $optname= This will not match a bare optname without an equals.
have_executable
have_executable_in_root
Like have_executable, but checks inside a filesystem root (e.g. a container image) rather than the host’s $PATH.
medium_visibility_warning πŸ”’
Output a warning message that we want to be quite visible. The process (thread) execution will be delayed for a short time.
open_dir_remount_rw πŸ”’
Given a target directory, if it’s a read-only mount, then remount it writable
origin_has_rpmostree_stuff πŸ”’
Try to look for keys injected by e.g. rpm-ostree requesting machine-local changes; if any are present, return true.
parse_efi_var πŸ”’
Parse the raw contents of an efivarfs EFI variable into its string value.
path_relative_to πŸ”’
Computes a relative path from from to to.
read_uefi_var
remove_immutability πŸ”’
Given a target path, remove its immutability if present
sigpolicy_from_opt πŸ”’
Convert a combination of values (likely from CLI parsing) into a signature source
spawn_editor πŸ”’
sysroot_dir πŸ”’
sysroot_fd πŸ”’