Skip to content

fedora: Add riscv64 image configuration - #188

Draft
xjamesmorris wants to merge 1 commit into
systemd:mainfrom
xjamesmorris:fedora-44-riscv64
Draft

fedora: Add riscv64 image configuration#188
xjamesmorris wants to merge 1 commit into
systemd:mainfrom
xjamesmorris:fedora-44-riscv64

Conversation

@xjamesmorris

@xjamesmorris xjamesmorris commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Add Fedora 44 riscv64 support for ParticleOS.

  • Select Fedora 44 only for riscv64; Fedora x86-64 remains on Rawhide.
  • Require Add support for Fedora riscv64 mkosi#4450 commit
    0808f37d8c9d74c337b341f6b519279b74a0bccf only for riscv64; all other
    architectures retain the packaged-mkosi-compatible MinimumVersion=26~devel.
  • Expose QEMU's software TPM through the RISC-V device tree with
    tpm-tis-device and acpi=off.
  • Disable expected-PCR signing on RISC-V because Fedora's RISC-V EDK2 firmware
    does not initialize measured-boot PCRs.
  • Use the default systemd device and service timeouts.

TPM-backed root and swap encryption, Secure Boot signing, the signed UKI, and
dm-verity-protected /usr remain enabled.

Validation

Validated with systemd/mkosi at
0808f37d8c9d74c337b341f6b519279b74a0bccf:

  • mkosi summary resolves Fedora riscv64 to Fedora 44, the required commit
    minimum, a disk image, Secure Boot enabled, expected-PCR signing disabled,
    and the intended TPM/QEMU device-tree settings.
  • The equivalent Fedora x86-64 configuration resolves to Rawhide with
    MinimumVersion=26~devel, expected-PCR signing enabled, TPM auto-detection,
    and no commit pin or RISC-V QEMU arguments.
  • mkosi -B -f builds the complete signed and verity-protected image.
  • mkosi vm discovers /dev/tpm0, completes systemd-repart, unlocks the
    TPM-encrypted root and swap volumes, mounts verity-protected /usr, reaches
    network-online.target and multi-user.target, and permits serial login.
  • The final runtime configuration was rebuilt and booted after removing the
    timeout overrides; the encrypted systemd-homed account was active and login
    succeeded with the default systemd timeouts.
  • The dependency-scoping cleanup changes no effective RISC-V runtime settings,
    so it was revalidated with resolved configuration checks rather than another
    full VM boot.
  • git diff --check passes.

The only failed unit was authselect-apply-changes.service. The same failure
reproduces on Fedora x86-64, so it is tracked separately as a Fedora-wide issue.
This PR does not change authselect, and the failure did not block networking,
login, or multi-user.target.

Dependency

RISC-V support depends on systemd/mkosi#4450. The RISC-V-only pin currently
names a commit in that PR's history. If upstream rebases or squash-merges the
PR, update MinimumVersion= to a reachable landed commit before merging this
PR.

AI assistance

GitHub Copilot was used to develop, debug, review, and validate this change.

Add Fedora 44 RISC-V image support with the required mkosi development commit scoped to riscv64, while retaining the packaged-mkosi-compatible global minimum for other architectures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant