public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bryn M. Reeves <bmr@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/snapm] rawhide: Work around missing uname detection on Fedora ELN
Date: Wed, 18 Nov 2026 12:28:06 GMT	[thread overview]
Message-ID: <179500488672.1.7176278852837515007.rpms-snapm-e539ca3297db@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/snapm
            Branch : rawhide
            Commit : e539ca3297db9ce2981e1c43fbeba339be7f4eed
            Author : Bryn M. Reeves <bmr@redhat.com>
            Date   : 2026-11-17T19:04:42+00:00
            Stats  : +12/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/snapm/c/e539ca3297db9ce2981e1c43fbeba339be7f4eed?branch=rawhide

            Log:
            Work around missing uname detection on Fedora ELN

Currently boom-boot does not support automatic --uname-pattern for
Fedora ELN hosts:

  https://github.com/snapshotmanager/boom-boot/issues/427

Work around this temporarily in the TMT plan by conditionally adding an
explicit --uname-pattern when setting up the OsProfile.

---
diff --git a/plans/main.fmf b/plans/main.fmf
index 125c446..da3acf1 100644
--- a/plans/main.fmf
+++ b/plans/main.fmf
@@ -24,4 +24,15 @@ prepare:
   - name: Create boom OsProfile
     how: shell
     script: |
-        boom profile create --from-host
+        # Fedora ELN uses an unstable, rolling elnXXX dist tag: boom's
+        # automatic uname pattern detection (_uname_heuristic()) does
+        # not currently support this:
+        # https://github.com/snapshotmanager/boom-boot/issues/427
+        # Override --uname-pattern selectively when running on ELN.
+        UNAME_PATTERN=""
+        if rpm --eval '%{?dist}' | grep -q '^\.eln' ||
+           grep -q 'platform:eln' /etc/os-release 2>/dev/null ||
+           uname -r | grep -q '\.eln[0-9]*\.'; then
+             UNAME_PATTERN="--uname-pattern eln"
+        fi
+        boom profile create --from-host ${UNAME_PATTERN}

                 reply	other threads:[~2026-11-18 12:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179500488672.1.7176278852837515007.rpms-snapm-e539ca3297db@fedoraproject.org \
    --to=bmr@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox