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

wrong size is displayed when uploading quay.io/centos-bootc/fedora-bootc:eln AMI image to AWS

Open chunfuwen opened this issue 8 months ago • 3 comments

Steps:

  1. Run below command:
sudo podman run --rm -it --privileged --pull=newer --security-opt label=type:unconfined_t -v /var/lib/libvirt/images/output:/output -v /var/lib/libvirt/images/config.json:/config.json   --env-file=/var/lib/libvirt/images/aws.secrets  quay.io/centos-bootc/bootc-image-builder:latest  --type ami --tls-verify=true  --config /config.json  --aws-ami-name install_upstream_bib-fedora-component-bootc-ami_x86_64_803 --aws-bucket bib-component-test --aws-region us-east-1  quay.io/centos-bootc/fedora-bootc:eln  --chown 107:107
  1. The actual generate ami image size is about 1.3G:
(.libvirt-ci-venv-ci-runtest-i0mfwt) [root@dell-xx-005 image]# pwd
/var/lib/libvirt/images/output/image
(.libvirt-ci-venv-ci-runtest-i0mfwt) [root@dell-xx-005 image]# du -h disk.raw
1.3G	disk.raw

  1. podman run command show image size is about 10.0GB, see attach picture

chunfuwen avatar Jun 14 '24 02:06 chunfuwen