Repository navigation
feat: add linuxfabrik-release, the repository setup package - #36
Merged
Merged
Conversation
Like epel-release: the repository configuration for repo.linuxfabrik.ch
(release enabled, testing disabled) and the signing key, built per
distro for RHEL 8-10, Fedora 44, SLES/Leap 15 and 16, Debian 12/13 and
Ubuntu 22.04-26.04. publish.sh keeps linuxfabrik-release-latest-<distro>
links in the webroot for the first install, and replays releases oldest
first.
The SUSE path is sle/<version>/ instead of sles/ from GitLab
001/project-big-picture#1252: one path serves SLES, SLED and openSUSE
Leap, as repo.linuxfabrik.ch/monitoring-plugins/sle/ does today.
Build fixes found on the way: SLES builds in /usr/src/packages unless
%_topdir is pinned; SLES has no %{dist}, so its builds get .sle15 and
.sle16; packages without an upstream take their source from
PKG_SOURCE_DIR. publish.sh writes gzip metadata, because libdnf on
Rocky 8 aborts on the zstd default of createrepo_c 1.x.
Tested on fresh VMs of all 11 targets (Leap 15.5/16.0 for SLE) against
a Rocky 10 test server with real GitHub attestations; zypper and dnf
reject bad signatures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
linuxfabrik-release, the counterpart toepel-releasefor repo.linuxfabrik.ch (GitLab001/project-big-picture#1257, #650 step 2.2).What it does
1017377FDD935D369CCD0C59F27988EC39D17A78)./etc/yum.repos.d/linuxfabrik.repo(EL, Fedora) or/etc/zypp/repos.d/linuxfabrik.repo(SLES/Leap), key in/etc/pki/rpm-gpg/,gpgcheck=1andrepo_gpgcheck=1. EL gets the major version at build time (EL 8 has no$releasever_major) and an epel-release styleRequiresonredhat-releaseof that major./etc/apt/sources.list.d/linuxfabrik.sourceswithSigned-By: /usr/share/keyrings/linuxfabrik.gpg, testing stanzaEnabled: no.publish.shkeeps bootstrap linkslinuxfabrik-release-latest-<distro>.<ext>in the webroot (EPEL'sepel-release-latest-10.noarch.rpmmodel) and replays releases oldest first. Usage is documented in the README.The SUSE repository path is
sle/<version>/instead ofsles/from #1252: one path for SLES, SLED and openSUSE Leap, as the monitoring-plugins repository does today.Fixes found on the way
create-rpm.sh: pin%_topdir, SLES builds in/usr/src/packagesotherwise; give SLES builds.sle15/.sle16, since SLES has no%{dist}and both releases would share a file name.create-package.sh:PKG_SOURCE_DIRfor packages without an upstream.publish.sh: gzip repository metadata;libdnfon Rocky 8 aborts on the zstd default ofcreaterepo_c1.x.Tested
On fresh VMs cloned from the templates of all 11 targets (Leap 15.5/16.0 standing in for SLES) against a Rocky 10 test server set up like 001-p-repo51 (freight, Apache with TLS for repo.linuxfabrik.ch):
-latest-link, metadata refresh with signature checks, reinstall from the repository; glances fromtestingon Rocky 10, Fedora 44, Debian 13 and Ubuntu 24.04publish.shagainst the real GitHub releaseglances-4.5.8-1with realgh attestation verifyrepomd.xml.ascdoes not matchMerging this changes
packages/linuxfabrik-release/and creates the prereleaselinuxfabrik-release-1-1.