public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/os-prober] f45: Fix windows detection on aarch64
@ 2026-11-19 2:40 Dennis Gilmore
0 siblings, 0 replies; only message in thread
From: Dennis Gilmore @ 2026-11-19 2:40 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-19 2:40 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:40 [rpms/os-prober] f45: Fix windows detection on aarch64 Dennis Gilmore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox