From f17f4079b4b96669f36758a5e791a74ed3c9c562 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 12 Oct 2022 17:08:33 +0100 Subject: [PATCH] test_data: Use bash TCP support instead of netcat for boot check This means that the guest image does not need to have netcat installed making it easier to use unmodified images. See https://www.gnu.org/software/bash/manual/html_node/Redirections.html Signed-off-by: Rob Bradford --- test_data/cloud-init/ubuntu/user-data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_data/cloud-init/ubuntu/user-data b/test_data/cloud-init/ubuntu/user-data index b248fbed6..d2c7ac71c 100644 --- a/test_data/cloud-init/ubuntu/user-data +++ b/test_data/cloud-init/ubuntu/user-data @@ -73,4 +73,4 @@ write_files: #!/bin/bash set -e - echo -n "@DEFAULT_TCP_LISTENER_MESSAGE" | nc -w0 @HOST_IP @TCP_LISTENER_PORT + echo -n "@DEFAULT_TCP_LISTENER_MESSAGE" > /dev/tcp/@HOST_IP/@TCP_LISTENER_PORT