From ecea9f4b2ef543efa020d63bee333f906cf37a61 Mon Sep 17 00:00:00 2001 From: Logan Blyth Date: Tue, 22 Oct 2024 10:22:04 -0400 Subject: [PATCH 1/2] build usb image by default --- cmd/hhfab/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/hhfab/main.go b/cmd/hhfab/main.go index 48a7091..f370132 100644 --- a/cmd/hhfab/main.go +++ b/cmd/hhfab/main.go @@ -472,10 +472,10 @@ func Run(ctx context.Context) error { Flags: append(defaultFlags, hMode, &cli.BoolFlag{ Name: FlagNameControlsUSB, - Aliases: []string{"usb"}, + Aliases: []string{"no-usb"}, Usage: "use installer USB image for control node(s)", EnvVars: []string{"HHFAB_CONTROL_USB"}, - Value: false, + Value: true, }, ), Before: before(false), @@ -547,10 +547,10 @@ func Run(ctx context.Context) error { }, &cli.BoolFlag{ Name: FlagNameControlsUSB, - Aliases: []string{"usb"}, + Aliases: []string{"no-usb"}, Usage: "use installer USB image for control node(s)", EnvVars: []string{"HHFAB_CONTROL_USB"}, - Value: false, + Value: true, }, &cli.BoolFlag{ Name: FlagNameFailFast, From 6120df669e469274959fe5c14634d3d1dc5f3174 Mon Sep 17 00:00:00 2001 From: Logan Blyth Date: Tue, 22 Oct 2024 10:56:30 -0400 Subject: [PATCH 2/2] don't change the flag --- cmd/hhfab/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/hhfab/main.go b/cmd/hhfab/main.go index f370132..b52c9a2 100644 --- a/cmd/hhfab/main.go +++ b/cmd/hhfab/main.go @@ -472,7 +472,7 @@ func Run(ctx context.Context) error { Flags: append(defaultFlags, hMode, &cli.BoolFlag{ Name: FlagNameControlsUSB, - Aliases: []string{"no-usb"}, + Aliases: []string{"usb"}, Usage: "use installer USB image for control node(s)", EnvVars: []string{"HHFAB_CONTROL_USB"}, Value: true, @@ -547,7 +547,7 @@ func Run(ctx context.Context) error { }, &cli.BoolFlag{ Name: FlagNameControlsUSB, - Aliases: []string{"no-usb"}, + Aliases: []string{"usb"}, Usage: "use installer USB image for control node(s)", EnvVars: []string{"HHFAB_CONTROL_USB"}, Value: true,