Expand description
Β§Bootable container image CLI
Command line tool to manage bootable ostree-based containers.
StructsΒ§
- Edit
Opts π - Perform an edit operation
- Progress
Options π - Shared progress options
- Rollback
Opts π - Options controlling rollback
- Status
Opts π - Perform an status operation
- Switch
Opts π - Perform an switch operation
- Upgrade
Opts π - Perform an upgrade operation
EnumsΒ§
- Container
Opts π - Subcommands which can be executed as part of a container build.
- Fsverity
Opts π - Options for consistency checking
- Image
CmdOpts π - Subcommands which operate on images.
- Image
List πFormat - Image
List πType - Image
Opts π - Subcommands which operate on images.
- Install
Opts π - Internals
Opts π - Hidden, internal only options
- Opt π
- Deploy and transactionally in-place with bootable container images.
- Output
Format π - Schema
Type π - Soft
Reboot πMode - State
Opts π
FunctionsΒ§
- callname_
from_ πargv0 - Find the base binary name from argv0 (without a full path). The empty string is never returned; instead a fallback string is used. If the input is not valid UTF-8, a default is used.
- edit π
- Implementation of the
bootc editCLI command. - edit_
ostree π - Implementation of the
bootc editCLI command for ostree backend. - ensure_
self_ πunshared_ mount_ namespace - Ensure weβve entered a mount namespace, so that we can remount
/sysrootread-write TODO use https://github.com/ostreedev/ostree/pull/2779 once we can depend on a new enough ostree - get_
storage π - Load global storage state, expecting that weβre booted into a bootc system. This prepares the process for write operations (re-exec, mount namespace, etc).
- global_
init - Perform process global initialization. This should be called as early as possible
in the standard
mainfunction. - handle_
soft_ πreboot - Handle soft reboot based on the configured mode
- handle_
staged_ πsoft_ reboot - Handle soft reboot for staged deployments (used by upgrade and switch)
- has_
soft_ πreboot_ capability - Check if a deployment has soft reboot capability
- imgref_
for_ πswitch - prepare_
for_ πwrite - A few process changes that need to be made for writing. IMPORTANT: This may end up re-executing the current process, so anything that happens before this should be idempotent.
- prepare_
soft_ πreboot - Prepare a soft reboot for the given deployment
- require_
root π - rollback π
- Implementation of the
bootc rollbackCLI command. - rollback_
ostree π - Implementation of the
bootc rollbackCLI command for ostree backend. - run_
from_ iter - Parse the provided arguments and execute.
Calls [
clap::Error::exit] on failure, printing the error message and aborting the program. - run_
from_ πopt - Internal (non-generic/monomorphized) primary CLI entrypoint
- soft_
reboot_ πrollback - Perform a soft reboot for a rollback deployment
- soft_
reboot_ πstaged - Perform a soft reboot for a staged deployment
- switch π
- Implementation of the
bootc switchCLI command. - switch_
ostree π - Implementation of the
bootc switchCLI command for ostree backend. - upgrade π
- Implementation of the
bootc upgradeCLI command. - usroverlay π
- Implementation of
bootc usroverlay