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] f45: Fix windows detection on aarch64
Date: Thu, 19 Nov 2026 02:40:48 GMT	[thread overview]
Message-ID: <179505604899.1.8544406122430352505.rpms-os-prober-e2411c0a4ff3@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/os-prober
            Branch : f45
            Commit : e2411c0a4ff39d78a41a582c1ef4d6252bbef655
            Author : Dennis Gilmore <dennis@ausil.us>
            Date   : 2026-11-14T11:18:24-06:00
            Stats  : +39/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/os-prober/c/e2411c0a4ff39d78a41a582c1ef4d6252bbef655?branch=f45

            Log:
            Fix windows detection on aarch64

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

---
diff --git a/os-prober-arm64-efi-fd-result-fix.patch b/os-prober-arm64-efi-fd-result-fix.patch
new file mode 100644
index 0000000..efd3720
--- /dev/null
+++ b/os-prober-arm64-efi-fd-result-fix.patch
@@ -0,0 +1,30 @@
+arm64: fix the os-prober record emitted for EFI bootloaders
+
+The factor-out-logger patch redirects result() to fd_result, which os-prober
+exports as 3 and maps onto real stdout. 05efi captures its EFI subtests with
+command substitution, so the subtest record escaped straight into os-prober's
+output and $entry stayed empty: os-prober emitted the bare
+"<path>:<long>:<label>" record instead of
+"<partition>@/<efi dir>/<path>:<long>:<label>:efi", which grub2-mkconfig
+cannot use ("cannot find a GRUB drive for ...",
+"... is not yet supported by grub-mkconfig").
+
+os-prober-factored-logger-efi-fix.patch does this for the x86 copy of 05efi
+only; do the same for the arm64 copy.
+
+diff --git a/os-probes/mounted/arm64/05efi b/os-probes/mounted/arm64/05efi
+index fcf3697..493a23e 100755
+--- a/os-probes/mounted/arm64/05efi
++++ b/os-probes/mounted/arm64/05efi
+@@ -59,7 +59,11 @@ ret=1
+ for test in /usr/lib/os-probes/mounted/efi/*; do
+ 	debug "running subtest $test"
+ 	if [ -f "$test" ] && [ -x "$test" ]; then
++		# we need results of subtest in stdout
++		orig_fd_res=$fd_result
++		export fd_result=1
+ 		entry=$("$test" "$mpoint/$efi")
++		export fd_result=$orig_fd_res
+ 		if [ -n "$entry" ]; then
+ 			debug "bootloader $entry found by subtest $test"
+ 			ret=0

diff --git a/os-prober.spec b/os-prober.spec
index 583dcaa..a277c9d 100644
--- a/os-prober.spec
+++ b/os-prober.spec
@@ -1,6 +1,6 @@
 Name:           os-prober
 Version:        1.81
-Release:        12%{?dist}
+Release:        13%{?dist}
 Summary:        Probes disks on the system for installed operating systems
 
 # For more information about licensing, see copyright file.
@@ -25,6 +25,7 @@ Patch12:        os-prober-efi-shell.patch
 Patch13:        os-prober-trap_unmount.patch
 Patch14:        os-prober-90fallback-include-possible-kernel-parameters-from-g.patch
 Patch15:        os-prober-common.sh-do-not-resolve-symbolic-link-on-mapped-dev.patch
+Patch16:        os-prober-arm64-efi-fd-result-fix.patch
 
 Requires:       udev coreutils util-linux
 Requires:       grep /bin/sed /sbin/modprobe
@@ -71,6 +72,9 @@ ARCH=sparc
 %ifarch %{ix86} x86_64
 ARCH=x86
 %endif
+%ifarch aarch64
+ARCH=arm64
+%endif
 
 for probes in os-probes os-probes/mounted os-probes/init \
               linux-boot-probes linux-boot-probes/mounted; do
@@ -94,6 +98,10 @@ fi
 %{_var}/lib/%{name}
 
 %changelog
+* Sat Nov 14 2025 Dennis Gilmore <dennis@ausil.us> - 1.81-13
+- set ARCH=arm64 on aarch64 builds
+- Add patch to apply the same logic on Arm as x86 for 05efi
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.81-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-11-19  2:40 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=179505604899.1.8544406122430352505.rpms-os-prober-e2411c0a4ff3@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