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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user