Skip to content

Conversation

@pendo324
Copy link
Member

Description of changes

Adds scripts, configuration, and a GitHub workflow for building Finch OS images using mkosi.

Testing done

Created working images for macOS and Windows using the GitHub Workflow: https://github.com/pendo324/finch-core/actions/runs/19875268071?pr=1

TODO

These are items which need to be done, but have been split off from this PR because it has already gotten too large:

  • Integrate these images with our existing tooling in finch/finch-core (e.g. make sure these images are tested)

  • Set up a schedule / triggers for automatically rebuilding the OS image

    • Make the workflow only run when needed, instead of on every PR
  • Integrate the dependencies in these images with existing version control / tracking mechanisms

    • Upload build results to S3
    • Update the full-os.conf and rootfs.conf files
  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@pendo324 pendo324 self-assigned this Dec 12, 2025
@pendo324 pendo324 requested a review from a team as a code owner December 12, 2025 22:05
@@ -0,0 +1,305 @@
From 4597a8c36a5cd043fa27acfe90297a80c9a59f59 Mon Sep 17 00:00:00 2001
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this Patch required because mkosi doesnt have support for Amazon linux?
If yes what is the maintenance overhead for the patch, in the sense do we need to change if mkosi gets updated or changes some pattern?

This is a bit concerning if this is the case.

Copy link
Member Author

Choose a reason for hiding this comment

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

The patch is taken from a PR which got abandoned. I don't anticipate much maintenance burden in mkosi since Amazon Linux is essentially treated as Fedora by mkosi, with a few small changes.

systemd/mkosi#3784

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add documentation about the reference for the patch in readme.
And probably also the caveats for fixes done for AL2023.

Lets say a new AL version comes out do we have to redo the changes, but probably not relevant as don't see Al2023 going out of life any time soon

@@ -0,0 +1,120 @@
name: Build OS
Copy link
Contributor

@Shubhranshu153 Shubhranshu153 Dec 16, 2025

Choose a reason for hiding this comment

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

Seems to have many parts, although it doesnt serves our use case but would using fedora have solved the different patches and configs we have to set?

My concern is maintainability of this infra.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you be more specific?

Copy link
Contributor

Choose a reason for hiding this comment

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

If we had taken fedora would it have made the configs simpler?


### Custom Package Building

- **`al2023-build/`**: Directory containing infrastructure for building custom AL2023 packages
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: folder rename to al2023-custom-package-build

@@ -0,0 +1,204 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

this script probably can be split into single responsibility parts.

Shubhranshu153
Shubhranshu153 previously approved these changes Dec 16, 2025
Signed-off-by: Justin Alvarez <[email protected]>
@pendo324
Copy link
Member Author

@Shubhranshu153 addressed comments in latest revision. Had to rebase to fix the commit name

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.

2 participants