Skip to content

install to-disk fails with invalid skopeo call #2518

Description

@Max-F-Helm

When I try to install a bootc image to an img file with a build of the latest main branch, it fails mid-run (was working in the past with the same command, though I can't remember the still-working bootc commit).

Command: sudo podman run --rm --privileged --pid=host -it -v /var/lib/containers:/var/lib/containers:Z -v /etc/containers:/etc/containers:Z -v /sys/fs/selinux:/sys/fs/selinux --security-opt label=type:unconfined_t -v /dev:/dev -e RUST_LOG=debug -v ".:/data" "<image_name>:latest" bootc install to-disk --composefs-backend --via-loopback /data/bootable.img --filesystem ext4 --wipe --bootloader systemd

Log:

DEBUG argv0="bootc"
INFO Starting disk installation from none to /data/bootable.img message_id="8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2" bootc.source_image="none" bootc.target_device="/data/bootable.img" bootc.via_loopback="true"
Automatically enabling --generic-image when installing via loopback
DEBUG rootless=0
DEBUG Finding digest for image ID c01b54f5b2c2cbc63da59846f222ec59f4a7b09339bce4043dcba1e0dadb71a1
DEBUG No install configuration found
DEBUG Target image reference: ostree-unverified-registry:localhost/<image_name>:latest
DEBUG Composefs required: false
DEBUG Already mounted from host: /dev
DEBUG Already mounted from host: /var/lib/containers
DEBUG Propagating host mount: /var/tmp
DEBUG Propagating host mount: /run/udev
DEBUG Already in a mount namespace
DEBUG Setting up sys mounts
DEBUG SELinux state: Disabled
Installing image: docker://localhost/<image_name>:latest
Digest: sha256:56a92279b261a603cbb18b9ceb0feea59d8ef3d8ba7276ddbabba8230f09eda9
 INFO ComposeFS install prep allow_missing_fsverity=false uki=false
DEBUG Allocated loopback /dev/loop0
DEBUG exec: "lsblk" "-J" "-b" "-O" "/dev/loop0"

...

DEBUG exec: "mkfs.fat" "/dev/loop0p2" "-n" "EFI-SYSTEM"
DEBUG new_with_config: Spawned skopeo pid=69942 config=ImageProxyConfig { authfile: None, auth_data: None, auth_anonymous: true, certificate_directory: None, decryption_keys: None, insecure_skip_tls_verification: None, insecure_policy: None, user_agent_prefix: Some("bootc/1.16.14"), debug: false, skopeo_cmd: None }
DEBUG new_with_config: Remote protocol version: 0.2.8 config=ImageProxyConfig { authfile: None, auth_data: None, auth_anonymous: true, certificate_directory: None, decryption_keys: None, insecure_skip_tls_verification: None, insecure_policy: None, user_agent_prefix: Some("bootc/1.16.14"), debug: false, skopeo_cmd: None }
DEBUG open_image_ref:open_image: opening image self=ImageProxy imgref=ImageReference { transport: ContainerStorage, name: "c01b54f5b2c2cbc63da59846f222ec59f4a7b09339bce4043dcba1e0dadb71a1" } self=ImageProxy imgref="containers-storage:c01b54f5b2c2cbc63da59846f222ec59f4a7b09339bce4043dcba1e0dadb71a1"
error: Installing to disk: Getting container info: Opening image containers-storage:c01b54f5b2c2cbc63da59846f222ec59f4a7b09339bce4043dcba1e0dadb71a1: failed to invoke method OpenImage: parsing named reference "c01b54f5b2c2cbc63da59846f222ec59f4a7b09339bce4043dcba1e0dadb71a1": invalid repository name (c01b54f5b2c2cbc63da59846f222ec59f4a7b09339bce4043dcba1e0dadb71a1), cannot specify 64-byte hexadecimal strings

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions