bootc-image-builder
bootc-image-builder copied to clipboard
wrong size is displayed when uploading quay.io/centos-bootc/fedora-bootc:eln AMI image to AWS
Steps:
- 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
- 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
- podman run command show image size is about 10.0GB, see attach picture