bootc-image-builder icon indicating copy to clipboard operation
bootc-image-builder copied to clipboard

--local usage was broken on latest bib build with error: unknown flag: --type

Open chunfuwen opened this issue 1 year ago • 3 comments

  1. pull bootc image:
podman pull quay.io/centos-bootc/centos-bootc:stream10

  1. 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

  1. 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

chunfuwen avatar Aug 21 '24 02:08 chunfuwen

@mvo5 please help take a look

chunfuwen avatar Aug 21 '24 02:08 chunfuwen

Em, it looks like this only happens if you put --local as the last argument, otherwise it's fine.

shi2wei3 avatar Aug 21 '24 02:08 shi2wei3

Hi @mvo5, this issue is already in bootc-image-builder:rhel-9.5. We need a downstream release to fix this issue.

henrywang avatar Aug 23 '24 00:08 henrywang

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.

ghost avatar Aug 24 '24 14:08 ghost