Skip to content

Commit 1164dfc

Browse files
committed
lib/runners/cloud-hypervisor: work around unbound variable $NOTIFY_SOCKET
1 parent c9fe9b9 commit 1164dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/runners/cloud-hypervisor.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ in {
107107
rm -f notify.vsock notify.vsock_8888
108108
109109
# Start socat to forward systemd notify socket over vsock
110-
if [ -n "$NOTIFY_SOCKET" ]; then
110+
if [ -n "''${NOTIFY_SOCKET:-}" ]; then
111111
# -T2 is required because cloud-hypervisor does not handle partial
112112
# shutdown of the stream, like systemd v256+ does.
113113
${pkgs.socat}/bin/socat -T2 UNIX-LISTEN:notify.vsock_8888,fork UNIX-SENDTO:$NOTIFY_SOCKET &

0 commit comments

Comments
 (0)