From fa4a952639594aa47d7653a9ebf0b8d91815373e Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Fri, 15 Aug 2025 11:52:20 +0200 Subject: [PATCH] chore(image): add example how to create an image with uefi disabled Signed-off-by: Alexander Dahmen --- docs/stackit_image_create.md | 3 +++ internal/cmd/image/create/create.go | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/stackit_image_create.md b/docs/stackit_image_create.md index 1dbfc5278..eb8a0a3e9 100644 --- a/docs/stackit_image_create.md +++ b/docs/stackit_image_create.md @@ -18,6 +18,9 @@ stackit image create [flags] Create an image with name 'my-new-image' from a qcow2 image read from '/my/qcow2/image' with labels describing its contents $ stackit image create --name my-new-image --disk-format=qcow2 --local-file-path=/my/qcow2/image --labels os=linux,distro=alpine,version=3.12 + + Create an image with name 'my-new-image' from a raw disk image located in '/my/raw/image' with uefi disabled + $ stackit image create --name my-new-image --disk-format=raw --local-file-path=/my/raw/image --uefi=false ``` ### Options diff --git a/internal/cmd/image/create/create.go b/internal/cmd/image/create/create.go index 0e0a84cbb..3ffe26a68 100644 --- a/internal/cmd/image/create/create.go +++ b/internal/cmd/image/create/create.go @@ -99,6 +99,10 @@ func NewCmd(params *params.CmdParams) *cobra.Command { `Create an image with name 'my-new-image' from a qcow2 image read from '/my/qcow2/image' with labels describing its contents`, `$ stackit image create --name my-new-image --disk-format=qcow2 --local-file-path=/my/qcow2/image --labels os=linux,distro=alpine,version=3.12`, ), + examples.NewExample( + `Create an image with name 'my-new-image' from a raw disk image located in '/my/raw/image' with uefi disabled`, + `$ stackit image create --name my-new-image --disk-format=raw --local-file-path=/my/raw/image --uefi=false`, + ), ), RunE: func(cmd *cobra.Command, _ []string) (err error) { ctx := context.Background()