Skip to content

Commit 37a0427

Browse files
Johan-Liebert1cgwalters
authored andcommitted
cfs/test: Fix ro /sysroot problem
The `bootc internals cfs` test was running into an issue where pulling an image into a composefs repository at `/sysroot/composefs` was failing due to /sysroot being mounted ro. We did remount it rw in an earlier cmd, but that was in a separate mount ns which did not carry over to the next commands Instead of globally remounting /sysroot as rw, we now simply create a new repository at /var/tmp/sysroot/composefs and perform all operations there. Also, pass in `--insecure` to `bootc internals cfs ...` as in the ostree case we're testing in xfs which does not support fs-verity Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
1 parent 4fc39c3 commit 37a0427

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tmt/tests/booted/readonly/030-test-composefs.nu

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ if $is_composefs {
3939
# When not on composefs, run the full test including initialization
4040
bootc internals test-composefs
4141
bootc internals cfs --help
42-
bootc internals cfs oci pull docker://busybox busybox
43-
test -L /sysroot/composefs/streams/refs/busybox
42+
43+
# We use a separate `/sysroot` as we need rw access to the repo which
44+
# we can't get from `bootc internals cfs ...`
45+
mkdir /var/tmp/sysroot/composefs
46+
bootc internals cfs --insecure --repo /var/tmp/sysroot/composefs oci pull docker://busybox busybox
47+
test -L /var/tmp/sysroot/composefs/streams/refs/oci/busybox
4448
}
4549

4650
tap ok

0 commit comments

Comments
 (0)