commit: 8d6d17462775a88220078b4ae38e4e6228164a75 Author: Peter Levine <plevine457 <AT> gmail <DOT> com> AuthorDate: Tue Dec 21 00:36:36 2021 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Wed Dec 22 12:33:49 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d6d1746
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 <plevine457 <AT> gmail.com> Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> .../os-prober/files/os-prober-1.79-detect-void.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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"