Skip to content

Commit 753d5b7

Browse files
committed
test: workaround the failed error
Add workaround to fix error ``` content: error: Installing to filesystem: Gathering source info from container env: Subprocess failed: ExitStatus(unix_wait_status(256)) content: error: readdir: Too many open files ``` Signed-off-by: Huijing Hei <hhei@redhat.com>
1 parent 82209b9 commit 753d5b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tmt/tests/examples/test-on-ostree/test-install-on-ostree.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ if [ "$TMT_REBOOT_COUNT" -eq 0 ]; then
3131
stateroot=$(bootc status --json | jq -r .status.booted.ostree.stateroot)
3232

3333
# Need bind mount for /run/host-container-storage
34-
podman run --rm --privileged \
34+
podman run \
35+
--rm --privileged \
3536
-v /dev:/dev \
37+
-v /var/lib/containers:/var/lib/containers \
3638
-v /run/host-container-storage:/run/host-container-storage:ro \
3739
-v /:/target \
3840
--pid=host \
3941
--security-opt label=type:unconfined_t \
4042
${BOOTC_target} \
41-
env BOOTC_BOOTLOADER_DEBUG=1 STORAGE_OPTS=additionalimagestore=/run/host-container-storage \
43+
env STORAGE_OPTS=additionalimagestore=/run/host-container-storage \
4244
bootc install to-existing-root \
4345
--stateroot=${stateroot} \
4446
--skip-fetch-check \

0 commit comments

Comments
 (0)