From c39893283700dcc2b4c510555d03843e44656c14 Mon Sep 17 00:00:00 2001 From: Andrea Fasano Date: Fri, 14 Nov 2025 07:07:41 -0500 Subject: [PATCH] avoid creating unnecessary vfs folder when not needed buildah command with --storage-driver create unconditionally vfs folder in the graphRoot storage dir --- agent/cleanup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/cleanup.sh b/agent/cleanup.sh index 98f3f0a93..a42f32baf 100755 --- a/agent/cleanup.sh +++ b/agent/cleanup.sh @@ -67,6 +67,6 @@ if [[ "${AGENT_E2E_TEST_BOOT_MODE}" == "ISCSI" ]]; then agent_remove_iscsi_disks worker $NUM_WORKERS fi -if sudo buildah images --storage-driver vfs | grep -q "localhost/appliance-test"; then - sudo buildah rmi -f --storage-driver vfs localhost/appliance-test +if [[ -d "$(sudo buildah info --format '{{.store.GraphRoot}}')/vfs" ]] ; then + sudo buildah rmi -f --storage-driver vfs localhost/appliance-test >/dev/null 2>&1 || true fi