@@ -6,12 +6,6 @@ set -exuo pipefail
6
6
7
7
# If provided should be of the form fedora-42 or centos-10
8
8
target=${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
-
15
9
build_args=()
16
10
if test -n " ${target:- } " ; then
17
11
shift
@@ -39,31 +33,4 @@ just build-integration-test-image
39
33
# Host builds will have this already, but we use it as a general dumping space
40
34
# for output artifacts
41
35
mkdir -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