Skip to content

many: drop ISORootKickstart#1769

Merged
supakeen merged 1 commit intoosbuild:mainfrom
supakeen:drop-isorootkickstart
Aug 21, 2025
Merged

many: drop ISORootKickstart#1769
supakeen merged 1 commit intoosbuild:mainfrom
supakeen:drop-isorootkickstart

Conversation

@supakeen
Copy link
Member

@supakeen supakeen commented Aug 19, 2025

Since a while we've had a boolean option that determines if the kickstart file we write for certain image types ends up in the root of an ISO or in the /usr/share/anaconda/interactive-defaults.ks path.

This changes things only for the minimal-installer in Fedora as all other installer adjacent image types had this set to true.

I've tested the minimal-installer to still function.

Historically we introduced the minimal-installer (then called image-installer) to test the Anaconda webui. At that point in time the webui didn't support any kickstarts excepts the one in interactive-defaults.ks.

Right now it only leads to confusion. I'll likely re-introduce the ability to modify the kickstart path(s) through the installer configs in the image definitions at a later point in time if we need it instead of having a boolean toggle.


Note that with this change the InteractiveDefaults name no longer really makes any sense; I might add a commit or two to rename it once I think about better names but I'll likely do that in a follow-up as it's all quite intertwined with eachother.

Note that the minimal-installer image type for which checksums change isn't one that we ship or publish anywhere.

@supakeen supakeen requested a review from a team as a code owner August 19, 2025 07:36
@supakeen supakeen marked this pull request as draft August 19, 2025 07:37
Since a while we've had a boolean option that determines if the
kickstart file we write for certain image types ends up in the root of
an ISO or in the `/usr/share/anaconda/interactive-defaults.ks` path.

This changes things only for the `minimal-installer` in Fedora as all
other installer adjacent image types had this set to `true`.

I've tested the `minimal-installer` to still function.

Historically we introduced the `minimal-installer` (then called
`image-installer`) to test the Anaconda webui. At that point in time the
webui didn't support any kickstarts excepts the one in
`interactive-defaults.ks`.

Right now it only leads to confusion. I'll likely re-introduce the
ability to modify the kickstart path(s) through the installer configs in
the image definitions at a later point in time if we need it instead of
having a boolean toggle.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
@supakeen supakeen force-pushed the drop-isorootkickstart branch from d6a6a6c to 126bef5 Compare August 19, 2025 07:42
@supakeen supakeen marked this pull request as ready for review August 19, 2025 07:47
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

You could have also deleted

KickstartPathInteractiveDefaults = "/usr/share/anaconda/interactive-defaults.ks"

assert.Contains(t, mfs, fmt.Sprintf(`"inst.stage2=hd:LABEL=%s"`, isolabel))
assert.Contains(t, mfs, fmt.Sprintf("%q", osbuild.KickstartPathInteractiveDefaults))
assert.NotContains(t, mfs, "osbuild.ks") // no mention of the default (custom) value
assert.Contains(t, mfs, fmt.Sprintf(`"inst.ks=hd:LABEL=%s:/osbuild.ks"`, isolabel))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Shouldn't the unit test consider img.Kickstart.Path value? 🤔

@supakeen
Copy link
Member Author

LGTM.

You could have also deleted

KickstartPathInteractiveDefaults = "/usr/share/anaconda/interactive-defaults.ks"

I'll do that as part of the entire "InteractiveDefaults" cleanup!

@supakeen supakeen added this pull request to the merge queue Aug 21, 2025
Merged via the queue into osbuild:main with commit 8210e1f Aug 21, 2025
25 checks passed
@supakeen supakeen deleted the drop-isorootkickstart branch August 21, 2025 06:57
croissanne added a commit to croissanne/osbuild-composer that referenced this pull request Aug 21, 2025
Changes with 0.178.0
----------------
  - Update osbuild dependency commit ID to latest (osbuild/images#1763)
    - Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - many: drop `ISORootKickstart` (osbuild/images#1769)
    - Author: Simon de Vlieger, Reviewers: Brian C. Lane, Tomáš Hozza
  - many: drop the workload.Workload type entirely (osbuild/images#1770)
    - Author: Michael Vogt, Reviewers: Simon de Vlieger, Tomáš Hozza
  - platform: drop hardcoded platforms and rename PlatformConf (osbuild/images#1739)
    - Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger
  - rhel: fix openscap profile allowlists (HMS-9095) (osbuild/images#1778)
    - Author: Sanne Raymaekers, Reviewers: Michael Vogt, Simon de Vlieger

— Somewhere on the Internet, 2025-08-21
croissanne added a commit to osbuild/osbuild-composer that referenced this pull request Aug 21, 2025
Changes with 0.178.0
----------------
  - Update osbuild dependency commit ID to latest (osbuild/images#1763)
    - Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger
  - many: drop `ISORootKickstart` (osbuild/images#1769)
    - Author: Simon de Vlieger, Reviewers: Brian C. Lane, Tomáš Hozza
  - many: drop the workload.Workload type entirely (osbuild/images#1770)
    - Author: Michael Vogt, Reviewers: Simon de Vlieger, Tomáš Hozza
  - platform: drop hardcoded platforms and rename PlatformConf (osbuild/images#1739)
    - Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger
  - rhel: fix openscap profile allowlists (HMS-9095) (osbuild/images#1778)
    - Author: Sanne Raymaekers, Reviewers: Michael Vogt, Simon de Vlieger

— Somewhere on the Internet, 2025-08-21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants