bootc-image-builder
bootc-image-builder copied to clipboard
--local usage was broken on latest bib build with error: unknown flag: --type
- pull bootc image:
podman pull quay.io/centos-bootc/centos-bootc:stream10
- run bib command to build qcow image:
sudo podman run --rm -it --privileged --pull=newer --security-opt label=type:unconfined_t -v /var/lib/libvirt/images/output:/output -v /var/lib/containers/storage:/var/lib/containers/storage -v /var/lib/libvirt/images/auth.json:/run/containers/0/auth.json quay.io/centos-bootc/bootc-image-builder:latest --type qcow2 --tls-verify=true --local quay.io/centos-bootc/centos-bootc:stream10
- Actually it throw below error message:
sudo podman run --rm -it --privileged --pull=newer --security-opt label=type:unconfined_t -v /var/lib/libvirt/images/output:/output -v /var/lib/containers/storage:/var/lib/containers/storage -v /var/lib/libvirt/images/auth.json:/run/containers/0/auth.json quay.io/centos-bootc/bootc-image-builder:latest --type qcow2 --tls-verify=true --local quay.io/centos-bootc/centos-bootc:stream10
Usage:
bootc-image-builder [command]
Available Commands:
build
completion Generate the autocompletion script for the specified shell
help Help about any command
manifest
Flags:
-h, --help help for bootc-image-builder
--log-level string logging level (debug, info, error); default error
Use "bootc-image-builder [command] --help" for more information about a command.
2024/08/21 02:09:35 error: unknown flag: --type
@mvo5 please help take a look
Em, it looks like this only happens if you put --local as the last argument, otherwise it's fine.
Hi @mvo5, this issue is already in bootc-image-builder:rhel-9.5. We need a downstream release to fix this issue.
If you want to use --local, use this image: sha256-5ccc2079c6e28eb96df3a63e5babe221c8a28c5367aec8f9613cc126e729f76d
From my testing, this is the last image to work with this flag.
Hopefully, it will be fixed in the next release.