Skip to content

Add support for Fedora - #28

Merged
efrecon merged 19 commits into
masterfrom
feature/fedora
Sep 1, 2026
Merged

efrecon merged 19 commits into
masterfrom
feature/fedora

Conversation

@efrecon

@efrecon efrecon commented Sep 1, 2026 •

Copy link
Copy Markdown
Owner

In addition:

  • A number of bug fixes
  • Add a step to announce the hostname on the local hetwork
  • Enforce tests to be run on PRs
  • Turn off deprecated tests

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The updated user creation logic in libexec/auth.sh can regress Debian/Ubuntu behavior, and the dnf wrapper currently suppresses stderr even in debug mode, reducing diagnosability.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds Fedora support across Primer’s OS/package/network abstractions and related steps, while also addressing a few usability/compatibility bugs in host/user handling.

Changes:

  • Add Fedora support to OS update/upgrade/package operations (dnf) and network dependency resolution (iproute).
  • Update steps to better support Fedora (timezone handling, machinery Tcl deps, Docker package guessing).
  • Fix hostname resolution and users/auth option/behavior issues (e.g., --ext parsing, group membership command usage).
File summaries
File Description
primer Switch hostname reporting/token substitution to primer_net_hostname for consistency/portability.
libexec/steps/users.sh Fix --ext option assignment and add --groups option wiring.
libexec/steps/timezone.sh Treat Fedora like Debian/Ubuntu for tzdata + /etc/localtime symlink approach.
libexec/steps/machinery.sh Add Fedora-specific Tcl dependency list for machinery install.
libexec/steps/docker.sh Expand Docker package candidates (incl. moby-engine) and add trace logging during detection.
libexec/os.sh Implement Fedora flows for update/upgrade/install/remove/list/search and add a dnf wrapper.
libexec/net.sh Add distro-aware ip dependency installation and introduce primer_net_hostname.
libexec/auth.sh Adjust group membership command selection and reorder user creation paths (now preferring useradd).
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread libexec/auth.sh Outdated
Comment thread libexec/os.sh
@efrecon
efrecon merged commit faab1a1 into master Sep 1, 2026
1 check passed
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