Commit 0cec848a authored by Marcel Müller's avatar Marcel Müller
Browse files

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: default avatarMarcel Müller <neikos@neikos.email>
parent 4a8c6e7f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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