fix: clean up stale schelk state before bench mount (#22837)

Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
This commit is contained in:
Derek Cofausper
2026-03-06 05:09:33 -08:00
committed by GitHub
parent 6ca9856ce9
commit 0da679f87c

View File

@@ -58,6 +58,11 @@ cleanup() {
TAIL_PID=
trap cleanup EXIT
# Clean up stale schelk state from a previous cancelled run.
# If schelk thinks it's still mounted (e.g. a cancelled run skipped cleanup),
# recover first to reset state.
sudo schelk recover -y -k || true
# Mount
sudo schelk mount -y
sync