Skip to content

Commit

Permalink
Give the raw disk image a more meaningful name
Browse files Browse the repository at this point in the history
This makes it easier to see what types of OSes are running and provide a
little more detail from the "Volumes" view in PowerVS.

IBM i, for example, names their .raw files "IBMi-<version>-img.raw".

Signed-off-by: Christy Norman <christy@linux.vnet.ibm.com>
  • Loading branch information
clnperez committed Dec 7, 2023
1 parent 52fcec3 commit cc2069d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/image/qcow2ova/qcow2ova.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Qcow2 images location:
return err
}

rawImg := filepath.Join(ovaImgDir, ova.VolNameRaw)
rawImg := filepath.Join(ovaImgDir, fmt.Sprintf("%s-%s", opt.ImageName, ova.VolNameRaw))

klog.Infof("Converting Qcow2(%s) image to raw(%s) format", qcow2Img, rawImg)
err = qemuImgConvertQcow2Raw(qcow2Img, rawImg)
Expand Down

0 comments on commit cc2069d

Please sign in to comment.