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 b61a65db01
commit 77be24858c
No known key found for this signature in database
GPG key ID: C65C7A89A8FFC56E

View file

@ -498,3 +498,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)