Skip to content

Commit fa4a952

Browse files
committed
chore(image): add example how to create an image with uefi disabled
Signed-off-by: Alexander Dahmen <[email protected]>
1 parent 97596bd commit fa4a952

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/stackit_image_create.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ stackit image create [flags]
1818
1919
Create an image with name 'my-new-image' from a qcow2 image read from '/my/qcow2/image' with labels describing its contents
2020
$ stackit image create --name my-new-image --disk-format=qcow2 --local-file-path=/my/qcow2/image --labels os=linux,distro=alpine,version=3.12
21+
22+
Create an image with name 'my-new-image' from a raw disk image located in '/my/raw/image' with uefi disabled
23+
$ stackit image create --name my-new-image --disk-format=raw --local-file-path=/my/raw/image --uefi=false
2124
```
2225

2326
### Options

internal/cmd/image/create/create.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
9999
`Create an image with name 'my-new-image' from a qcow2 image read from '/my/qcow2/image' with labels describing its contents`,
100100
`$ stackit image create --name my-new-image --disk-format=qcow2 --local-file-path=/my/qcow2/image --labels os=linux,distro=alpine,version=3.12`,
101101
),
102+
examples.NewExample(
103+
`Create an image with name 'my-new-image' from a raw disk image located in '/my/raw/image' with uefi disabled`,
104+
`$ stackit image create --name my-new-image --disk-format=raw --local-file-path=/my/raw/image --uefi=false`,
105+
),
102106
),
103107
RunE: func(cmd *cobra.Command, _ []string) (err error) {
104108
ctx := context.Background()

0 commit comments

Comments
 (0)