Provide a simple function to install the shipped tarball.

It leaves in `dangerzone.updater.install_local_container_tar()`
This commit is contained in:
Alexis Métaireau 2025-04-17 17:23:31 +02:00
parent a5636b5e74
commit 1079f1335b
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -499,3 +499,11 @@ def upgrade_container_image(
# Store the signatures just now to avoid storing them unverified
store_signatures(signatures, manifest_digest, pubkey)
return manifest_digest
def install_local_container_tar(
pubkey: Optional[str] = DEFAULT_PUBKEY_LOCATION,
) -> None:
tarball_path = get_resource_path("container.tar")
log.debug("Installing container image %s", tarball_path)
upgrade_container_image_airgapped(tarball_path, pubkey)