Fedora obs-repos fails with systemd.gpg not found

Open Beginner friendly
#169 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
linux, shell

Research direction

Start with mkosi.profiles/obs-repos/mkosi.conf.d/fedora/mkosi.conf.d/rawhide-tools.conf and compare the referenced paths with the other files in that directory. Check how the obs-repos profile resolves systemd.gpg and rawhide.repo for Fedora rawhide. Done means the shown mkosi.local.conf configuration no longer fails with “systemd.gpg not found.”

Written by the indexing model from the issue text.

Description

On a clean particleos system, setting mkosi.local.conf to

[Distribution]
Distribution=fedora
[Config]
Profiles=obs-repos

results in systemd.gpg not found.

Looking at mkosi.profiles/obs-repos/mkosi.conf.d/fedora/mkosi.conf.d/rawhide-tools.conf, which contains

# SPDX-License-Identifier: LGPL-2.1-or-later

[Match]
ToolsTreeDistribution=fedora
ToolsTreeRelease=rawhide

[Build]
ToolsTreeSandboxTrees=systemd.gpg:/usr/share/pki/rpm-gpg/systemd.gpg
                      rawhide.repo:/etc/yum.repos.d/systemd.repo

We can see it is looking for these in mkosi.profiles/obs-repos/mkosi.conf.d/fedora/ not mkosi.profiles/obs-repos/systemd.gpg and mkosi.profiles/obs-repos/mkosi.conf.d/fedora/mkosi.conf.d/rawhide.repo. Confusingly other files in the same directory look to different locations.

Dominant language
Shell
Stars
607
Forks
67
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from systemd/particleos

All issues in systemd/particleos

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.