public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dennis Gilmore <dennis@ausil.us>
To: git-commits@fedoraproject.org
Subject: [rpms/os-prober] rawhide: Rework the Shell finding code to work correctly
Date: Thu, 19 Nov 2026 02:22:54 GMT	[thread overview]
Message-ID: <179505497447.1.13990653256169840841.rpms-os-prober-fc28df1125d3@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/os-prober
            Branch : rawhide
            Commit : fc28df1125d36203fd73fdf4c575ebe600a0be93
            Author : Dennis Gilmore <dennis@ausil.us>
            Date   : 2026-11-14T12:56:40-06:00
            Stats  : +6/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/os-prober/c/fc28df1125d36203fd73fdf4c575ebe600a0be93?branch=rawhide

            Log:
            Rework the Shell finding code to work correctly

The old form gave non existant paths in its mangling

Signed-off-by: Dennis Gilmore <dennis@ausil.us>

---
diff --git a/os-prober-efi-shell.patch b/os-prober-efi-shell.patch
index 66ab7b2..a1bef9f 100644
--- a/os-prober-efi-shell.patch
+++ b/os-prober-efi-shell.patch
@@ -1,9 +1,9 @@
 diff --git a/os-probes/mounted/common/efi/05shell b/os-probes/mounted/common/efi/05shell
 new file mode 100755
-index 0000000..d4233c0
+index 0000000..0000000
 --- /dev/null
 +++ b/os-probes/mounted/common/efi/05shell
-@@ -0,0 +1,24 @@
+@@ -0,0 +1,23 @@
 +#!/usr/bin/sh
 +# Detects a shell.efi bootloader on a EFI System Partition
 +
@@ -11,14 +11,13 @@ index 0000000..d4233c0
 +
 +found=
 +
-+efi_shell=`find $1 -iname "shell.efi"`
++efi_shell=$(find "$1" -iname 'shell.efi' -type f 2>/dev/null | head -1)
 +if [ -n "${efi_shell}" ]; then
-+	bdir="${efi_shell%/*}"
-+	bdir="${efi_shell##*/}"
-+	filename=`basename ${efi_shell}`
++	# the path must be relative to the EFI directory we were handed, since
++	# 05efi prefixes it with "<partition>@/<efi dir>/"
++	path="${efi_shell#"$1"/}"
 +	long="EFI firmware management shell"
 +	short="EFI_SHELL"
-+	path=${bdir}/${filename}
 +	found=true
 +fi
 +

                 reply	other threads:[~2026-11-19  2:22 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=179505497447.1.13990653256169840841.rpms-os-prober-fc28df1125d3@fedoraproject.org \
    --to=dennis@ausil.us \
    --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