build-support/vm: Fix missing sleep command

The sleep command is not a bash built-in, so when a VM does not have
coreutils in their PATH this script will break. The fix is to refer to
it directly.

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller
2026-01-02 13:44:05 +01:00
parent 4a8c6e7f05
commit 0cec848adc
+2 -2
View File
@@ -298,8 +298,8 @@ rec {
${pkgs.virtiofsd}/bin/virtiofsd --xattr --socket-path virtio-xchg.sock --sandbox none --seccomp none --shared-dir xchg &
# Wait until virtiofsd has created these sockets to avoid race condition.
until [[ -e virtio-store.sock ]]; do sleep 1; done
until [[ -e virtio-xchg.sock ]]; do sleep 1; done
until [[ -e virtio-store.sock ]]; do ${coreutils}/bin/sleep 1; done
until [[ -e virtio-xchg.sock ]]; do ${coreutils}/bin/sleep 1; done
${qemuCommand}
EOF