Skip to content

bootc install doesn't work with skopeo docker-daemon:// source-imgrefs #2318

Description

@eadwu

Not sure exactly why, all of this is running within a container with bootc and all directories necessary are mapped to the container because running skopeo manually works fine.

This works fine

skopeo copy docker-daemon:bootc:latest oci-archive:/output/bootc.tar:bootc:latest
bootc install to-disk --disable-selinux --composefs-backend --allow-missing-verity --bootloader systemd \
    --via-loopback /output/bootable.img --filesystem ext4 --wipe \
    --source-imgref oci-archive:/output/bootc.tar:bootc:latest \
    --karg console=tty0 --karg console=ttyS0,115200 --karg selinux=0

This fails

bootc install to-disk --disable-selinux --composefs-backend --allow-missing-verity --bootloader systemd \
    --via-loopback /output/bootable.img --filesystem ext4 --wipe \
    --source-imgref docker-daemon:bootc:latest \
    --karg console=tty0 --karg console=ttyS0,115200 --karg selinux=0

with

error: Installing to disk: Getting container info: failed to invoke method GetBlob: Unknown blob sha256:529a7c28bf7fe83341ce9296a990df37a497e58a900cbedccdd814b6a52d6a45

So I'm assuming it is a bootc issue. Docker registry works (docker://ghcr.io/jmarrero/ubuntu-bootc:latest) but not docker-daemon.

The following are bind mounted

    -v /var/lib/docker:/var/lib/docker \
    -v /var/lib/containerd:/var/lib/containerd \
    -v /var/run/docker.sock:/var/run/docker.sock \

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