Adds Installer information to release-info output - #553
Conversation
49074bc to
a474e40
Compare
|
While this is true, when running Since the field is labeled Alternatively, we could provide the |
|
@ipetrov117 thank you for the explanation. 👍🏽
I'd prefer this. Personally, my workflow is:
I don't see a reason right now, but at some point I feel it'll be valuable to add a flag to |
davidcassany
left a comment
There was a problem hiding this comment.
I am also unsure about this change, I think the Operating System should point to the OS image. However I see the benefits of having the ISO listed too, so I think the ISO deserves another field or making the Operator System a multi value stanza. I am not sure what would be the best approach. IMHO release info should give the references of both, the installer image and the OS image.
|
Agree with both Ivo & David here. Adding |
This helps people use `release-info` output to download the required images before running `customize` with `--local` flag as the image referred to by Installer is used when building a VM using `customize`. Signed-off-by: Dharmit Shah <dharmit.shah@suse.com>
|
Updated the PR such that |
| if cm.Components.OperatingSystem.Image.ISO != "" { | ||
| installerVersion := "Unknown" | ||
| parts := strings.Split(cm.Components.OperatingSystem.Image.ISO, ":") | ||
| if len(parts) > 1 { | ||
| installerVersion = "SLES" + " " + strings.Split(parts[1], "-")[0] | ||
| } | ||
| data = append(data, []string{"Installer", installerVersion, cm.Components.OperatingSystem.Image.ISO}) | ||
| } |
There was a problem hiding this comment.
Feels misconstructed to me. Initialising the value and setting it should happen outside of the conditional.
| if cm.Components.OperatingSystem.Image.ISO != "" { | |
| installerVersion := "Unknown" | |
| parts := strings.Split(cm.Components.OperatingSystem.Image.ISO, ":") | |
| if len(parts) > 1 { | |
| installerVersion = "SLES" + " " + strings.Split(parts[1], "-")[0] | |
| } | |
| data = append(data, []string{"Installer", installerVersion, cm.Components.OperatingSystem.Image.ISO}) | |
| } | |
| installerVersion := "Unknown" | |
| if cm.Components.OperatingSystem.Image.ISO != "" { | |
| parts := strings.Split(cm.Components.OperatingSystem.Image.ISO, ":") | |
| if len(parts) > 1 { | |
| installerVersion = "SLES" + " " + strings.Split(parts[1], "-")[0] | |
| } | |
| } | |
| data = append(data, []string{"Installer", installerVersion, cm.Components.OperatingSystem.Image.ISO}) |
| installerVersion := "Unknown" | ||
| parts := strings.Split(cm.Components.OperatingSystem.Image.ISO, ":") | ||
| if len(parts) > 1 { | ||
| installerVersion = "SLES" + " " + strings.Split(parts[1], "-")[0] |
There was a problem hiding this comment.
Not sure how to approach this version. This is the installer which is based on SLES 16, not SLES 16 itself. Any thoughts?
There was a problem hiding this comment.
I think we should leave it blank using a hyphen in that case.
│ Installer │ - │ registry.suse.com/elemental/base-os-kernel-default-iso:16.0-3.15 │
Or hardcode it to N/A.
│ Installer │ N/A │ registry.suse.com/elemental/base-os-kernel-default-iso:16.0-3.15 │
This helps people use
release-infooutput to download the requiredimages before running
customizewith--localflag as the imagereferred to by Installer is used when building a VM using
customize.Example output: