When trying to explore the images that bootc generates to explore how/if bootc-image-builder could use it directly (or for a start ensure the generated images are similar enough) I ran into the following issue on a standard Debian/unstable system:
$ podman --version
podman version 4.8.3
$ truncate -s 10G test-disk.img
$ sudo losetup -f test-disk.img
$ sudo podman run --env RUST_LOG=error,bootc_lib::install=debug --rm --privileged --pid=host --security-opt label=type:unconfined_t quay.io/centos-bootc/fedora-bootc:eln bootc install to-disk /dev/loop2
DEBUG Target image reference: ostree-unverified-registry:quay.io/centos-bootc/fedora-bootc:eln
DEBUG Fetched manifest with digest sha256:145383779c284eab7e8067219dd0249532b4d9d77861bd74c029a53e07b59ce9
DEBUG Retargeting /tmp to host
DEBUG Retargeting /var/tmp to host
Mounting selinuxfs
DEBUG Target has SELinux, host=true
DEBUG Target image reference: ostree-unverified-registry:quay.io/centos-bootc/fedora-bootc:eln
DEBUG Fetched manifest with digest sha256:145383779c284eab7e8067219dd0249532b4d9d77861bd74c029a53e07b59ce9
DEBUG Target has SELinux, host=true
DEBUG Loaded install configuration
Mounting devtmpfs
Initializing partitions
DEBUG Created partition table
ERROR Creating rootfs: Rereading partition table: couldn't reread partition table: device may not support partitions: EINVAL: Invalid argument
Maybe related to using a loop device for testing? I looked at tests/kolainst/install and there /dev/vda is used instead.
When trying to explore the images that bootc generates to explore how/if
bootc-image-buildercould use it directly (or for a start ensure the generated images are similar enough) I ran into the following issue on a standard Debian/unstable system:Maybe related to using a loop device for testing? I looked at
tests/kolainst/installand there/dev/vdais used instead.