Skip to content

Commit a3aea8e

Browse files
committed
test workaround
1 parent f222915 commit a3aea8e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tmt/tests/booted/test-switch-to-unified.nu

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ def main [] {
2525
}
2626

2727
def first_boot [] {
28-
tap begin "onboard to unified storage and build derived image"
28+
tap begin "copy image to podman storage, switch, then onboard to unified storage"
2929

30-
# Get the booted image name to use as base for the build
31-
let booted_image = $booted.image.image
32-
print $"Booted image: ($booted_image)"
30+
# Copy the image from host storage to podman storage
31+
podman --storage-opt additionalimagestore=/run/virtiofs-mnt-hoststorage \
32+
pull containers-storage:localhost/bootc
33+
34+
# Switch to the base image using containers-storage transport
35+
bootc switch --transport containers-storage localhost/bootc
3336

3437
# Onboard to unified storage - this pulls the booted image into bootc storage
3538
bootc image set-unified
@@ -43,7 +46,7 @@ def first_boot [] {
4346

4447
# Build a derived image with a marker file to verify we switched
4548
# Use bootc image cmd build which builds directly into bootc storage
46-
$"FROM ($booted_image)
49+
$"FROM localhost/bootc
4750
RUN echo 'unified-storage-test-marker' > /usr/share/unified-storage-test.txt
4851
" | save Dockerfile
4952

0 commit comments

Comments
 (0)