public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/os-prober] rawhide: Rework the Shell finding code to work correctly
@ 2026-11-19  2:22 Dennis Gilmore
  0 siblings, 0 replies; only message in thread
From: Dennis Gilmore @ 2026-11-19  2:22 UTC (permalink / raw)
  To: git-commits

            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
 +

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19  2:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  2:22 [rpms/os-prober] rawhide: Rework the Shell finding code to work correctly Dennis Gilmore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox