@@ -6,12 +6,6 @@ set -exuo pipefail
66
77# If provided should be of the form fedora-42 or centos-10
88target=${1:- }
9-
10- bcvk=$( which bcvk 2> /dev/null || true)
11- if test -z " ${bcvk} " && test " $( id -u) " ! = 0; then
12- echo " This script currently requires full root" ; exit 1
13- fi
14-
159build_args=()
1610if test -n " ${target:- } " ; then
1711 shift
@@ -39,31 +33,4 @@ just build-integration-test-image
3933# Host builds will have this already, but we use it as a general dumping space
4034# for output artifacts
4135mkdir -p target
42-
43- SIZE=10G
44- DISK=target/bootc-integration-test.qcow2
45- rm -vf " ${DISK} "
46- # testcloud barfs on .raw
47- if test -n " ${bcvk} " ; then
48- bcvk to-disk --format=qcow2 --disk-size " ${SIZE} " --filesystem ext4 localhost/bootc-integration " ${DISK} "
49- else
50- TMPDISK=target/bootc-integration-test.raw
51- truncate -s " ${SIZE} " " ${TMPDISK} "
52- podman run \
53- --rm \
54- --privileged \
55- --pid=host \
56- --security-opt label=type:unconfined_t \
57- -v /var/lib/containers:/var/lib/containers \
58- -v /dev:/dev \
59- -v $( pwd) /target:/target \
60- localhost/bootc-integration \
61- bootc install to-disk \
62- --filesystem " ext4" \
63- --karg=console=ttyS0,115200n8 \
64- --generic-image \
65- --via-loopback \
66- /target/$( basename ${TMPDISK} )
67- qemu-img convert -f raw -O qcow2 ${TMPDISK} ${DISK}
68- rm -f " ${TMPDISK} "
69- fi
36+ just build-disk-image localhost/bootc-integration target/bootc-integration-test.qcow2
0 commit comments