From a5def0ec5aba7288aacec3d3d312edee977950bb Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Tue, 6 Feb 2024 13:23:10 +0100 Subject: [PATCH] fix disk selection --- talos-bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talos-bootstrap b/talos-bootstrap index 5e6a304..0b5186e 100755 --- a/talos-bootstrap +++ b/talos-bootstrap @@ -217,7 +217,7 @@ default_hostname=$(talosctl -e "${node}" -n "${node}" get hostname ${OPTS} -o js hostname=$(dialog --keep-tite --title talos-bootstrap --inputbox "Enter hostname:" 8 40 "${default_hostname}" 3>&1 1>&2 2>&3) || exit 0 # Screen: Select disk to install -disks_list=$(talosctl -e "${node}" -n "${node}" disks ${OPTS} | awk 'NR>1 {sub(/^[^/]*/, ""); print}' | awk 'NR>1 {printf "\"" $1 "\""; $1=""; print " \"" $0 "\""}') +disks_list=$(talosctl -e "${node}" -n "${node}" disks ${OPTS} | awk 'NR>1 {sub(/^[^/]*/, ""); print}' | awk '{printf "\"" $1 "\""; $1=""; print " \"" $0 "\""}') disk=$(echo "${disks_list}" | dialog --keep-tite --title talos-bootstrap --menu "Select disk to install" 0 0 0 --file /dev/stdin 3>&1 1>&2 2>&3) || exit 0 # Screen: Select interface