From 0cec848adc249ef19a459d76d859d520fbdd3846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Fri, 2 Jan 2026 13:44:05 +0100 Subject: [PATCH] build-support/vm: Fix missing sleep command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/build-support/vm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index c4ddc1f91ee5..bb877c2a7ae3 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -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