File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ def main [] {
2525}
2626
2727def 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
4750RUN echo 'unified-storage-test-marker' > /usr/share/unified-storage-test.txt
4851" | save Dockerfile
4952
You can’t perform that action at this time.
0 commit comments