From 703a6e0404b9c27c30b5e14a2e1f747ec9f5a72d Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Tue, 5 Sep 2023 11:55:58 -0500 Subject: [PATCH] Add xvda support to Template device parition rendering Signed-off-by: Chris Doherty --- internal/workflow/template_funcs.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/workflow/template_funcs.go b/internal/workflow/template_funcs.go index 46d39fa5c..a51967557 100644 --- a/internal/workflow/template_funcs.go +++ b/internal/workflow/template_funcs.go @@ -25,7 +25,10 @@ func formatPartition(dev string, partition int) string { switch { case strings.HasPrefix(dev, "/dev/nvme"): return fmt.Sprintf("%vp%v", dev, partition) - case strings.HasPrefix(dev, "/dev/sd"), strings.HasPrefix(dev, "/dev/vd"), strings.HasPrefix(dev, "/dev/hd"): + case strings.HasPrefix(dev, "/dev/sd"), + strings.HasPrefix(dev, "/dev/vd"), + strings.HasPrefix(dev, "/dev/xvd"), + strings.HasPrefix(dev, "/dev/hd"): return fmt.Sprintf("%v%v", dev, partition) } return dev