Skip to content

Commit

Permalink
Fedora: Enable remote in iot-installer kickstart
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Whalen <[email protected]>
  • Loading branch information
Paul Whalen committed Jan 8, 2024
1 parent d04b0ff commit 26676d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/distro/fedora/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ func iotInstallerImage(workload workload.Workload,
img.ISOLabelTempl = d.isolabelTmpl
img.Product = d.product
img.Variant = "IoT"
img.OSName = "fedora"
img.OSName = "fedora-iot"
img.Remote = "fedora-iot"
img.OSVersion = d.osVersion
img.Release = fmt.Sprintf("%s %s", d.product, d.osVersion)

Expand Down
2 changes: 2 additions & 0 deletions pkg/image/anaconda_ostree_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type AnacondaOSTreeInstaller struct {
OSName string
OSVersion string
Release string
Remote string

Commit ostree.SourceSpec

Expand Down Expand Up @@ -120,6 +121,7 @@ func (img *AnacondaOSTreeInstaller) InstantiateManifest(m *manifest.Manifest,
isoTreePipeline.PartitionTable = rootfsPartitionTable
isoTreePipeline.Release = img.Release
isoTreePipeline.OSName = img.OSName
isoTreePipeline.Remote = img.Remote
isoTreePipeline.Users = img.Users
isoTreePipeline.Groups = img.Groups

Expand Down
3 changes: 3 additions & 0 deletions pkg/manifest/anaconda_installer_iso_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type AnacondaInstallerISOTree struct {
// TODO: review optional and mandatory fields and their meaning
OSName string
Release string
Remote string
Users []users.User
Groups []users.Group

Expand Down Expand Up @@ -336,6 +337,7 @@ func (p *AnacondaInstallerISOTree) serialize() osbuild.Pipeline {
p.Groups,
makeISORootPath(p.PayloadPath),
p.ostreeCommitSpec.Ref,
p.Remote,
p.OSName)

if err != nil {
Expand Down Expand Up @@ -370,6 +372,7 @@ func (p *AnacondaInstallerISOTree) serialize() osbuild.Pipeline {
path.Join("/run/install/repo", p.PayloadPath),
"oci",
"",
"",
"")

Check failure on line 376 in pkg/manifest/anaconda_installer_iso_tree.go

View workflow job for this annotation

GitHub Actions / ⌨ Lint

too many arguments in call to osbuild.NewKickstartStageOptionsWithOSTreeContainer

Check failure on line 376 in pkg/manifest/anaconda_installer_iso_tree.go

View workflow job for this annotation

GitHub Actions / ⌨ Lint

too many arguments in call to osbuild.NewKickstartStageOptionsWithOSTreeContainer

Check failure on line 376 in pkg/manifest/anaconda_installer_iso_tree.go

View workflow job for this annotation

GitHub Actions / ⌨ Lint

too many arguments in call to osbuild.NewKickstartStageOptionsWithOSTreeContainer

if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions pkg/osbuild/kickstart_stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type LiveIMGOptions struct {

type OSTreeCommitOptions struct {
OSName string `json:"osname"`
Remote string `json:"remote"`
URL string `json:"url"`
Ref string `json:"ref"`
GPG bool `json:"gpg"`
Expand Down Expand Up @@ -77,6 +78,7 @@ func NewKickstartStageOptionsWithOSTreeCommit(
groupCustomizations []users.Group,
ostreeURL string,
ostreeRef string,
ostreeRemote string,
osName string) (*KickstartStageOptions, error) {

options, err := NewKickstartStageOptions(path, userCustomizations, groupCustomizations)
Expand All @@ -88,6 +90,7 @@ func NewKickstartStageOptionsWithOSTreeCommit(
if ostreeURL != "" {
ostreeCommitOptions := &OSTreeCommitOptions{
OSName: osName,
Remote: ostreeRemote,
URL: ostreeURL,
Ref: ostreeRef,
GPG: false,
Expand Down

0 comments on commit 26676d8

Please sign in to comment.