Skip to content

Commit

Permalink
Merge pull request #11700 from ashley-cui/3.4stream
Browse files Browse the repository at this point in the history
[3.4] Fix machine image
  • Loading branch information
openshift-merge-robot authored Sep 22, 2021
2 parents f935008 + 3bd3c62 commit 20587df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/markdown/podman-machine-init.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ do these things manually or handle otherwise.
#### **--image-path**

Fully qualified path or URL to the VM image.
Can also be set to `testing` or `stable` to pull down default image.
Can also be set to `testing`, `next`, or `stable` to pull down default image.
Defaults to `testing`.

#### **--memory**, **-m**=*number*
Expand Down
2 changes: 2 additions & 0 deletions pkg/machine/fcos.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func getFCOSDownload(imageStream string) (*fcosDownloadInfo, error) {
)
switch imageStream {
case "testing", "":
streamType = fedoracoreos.StreamTesting
case "next":
streamType = fedoracoreos.StreamNext
case "stable":
streamType = fedoracoreos.StreamStable
Expand Down
2 changes: 1 addition & 1 deletion pkg/machine/qemu/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (v *MachineVM) Init(opts machine.InitOptions) error {
v.IdentityPath = filepath.Join(sshDir, v.Name)

switch opts.ImagePath {
case "testing", "stable", "":
case "testing", "next", "stable", "":
// Get image as usual
dd, err := machine.NewFcosDownloader(vmtype, v.Name, opts.ImagePath)
if err != nil {
Expand Down

0 comments on commit 20587df

Please sign in to comment.