From 8d6d17462775a88220078b4ae38e4e6228164a75 Mon Sep 17 00:00:00 2001 From: Peter Levine Date: Mon, 20 Dec 2021 19:36:36 -0500 Subject: sys-boot/os-prober: add void linux detection patch Bug: https://bugs.gentoo.org/817905 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Peter Levine Signed-off-by: Ben Kohler --- .../os-prober/files/os-prober-1.79-detect-void.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sys-boot/os-prober/files/os-prober-1.79-detect-void.patch diff --git a/sys-boot/os-prober/files/os-prober-1.79-detect-void.patch b/sys-boot/os-prober/files/os-prober-1.79-detect-void.patch new file mode 100644 index 000000000000..9d7855906b78 --- /dev/null +++ b/sys-boot/os-prober/files/os-prober-1.79-detect-void.patch @@ -0,0 +1,20 @@ +Handle Void Linux detection. From upstream https://github.com/void-linux/void-packages/blob/2fd8d4df94855a157a4de16c61d54153e16ef185/srcpkgs/os-prober/patches/detect-void.patch + +Bug: https://bugs.gentoo.org/817905 + +--- a/os-probes/mounted/common/90linux-distro ++++ b/os-probes/mounted/common/90linux-distro +@@ -116,6 +116,13 @@ + elif [ -e "$dir/sbin/pkgtool" ]; then + short="Slackware" + long="Slackware Linux" ++ elif [ -e "$dir/sbin/xbps-install" ]; then ++ short="Void" ++ if file "$dir/sbin/xbps-install"|grep -q 32-bit; then ++ long="Void Linux 32" ++ else ++ long="Void Linux 64" ++ fi + elif grep -qs OpenLinux "$dir/etc/issue"; then + short="Caldera" + long="Caldera OpenLinux" -- cgit v1.2.3-65-gdbad