summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2021-12-20 19:36:36 -0500
committerBen Kohler <bkohler@gentoo.org>2021-12-22 06:33:49 -0600
commit8d6d17462775a88220078b4ae38e4e6228164a75 (patch)
tree384160c4241e955b5b0d6648bba706c75269b4b2 /sys-boot/os-prober/files
parentsys-boot/os-prober: add subsequent whitespace commit (diff)
downloadgentoo-8d6d17462775a88220078b4ae38e4e6228164a75.tar.gz
gentoo-8d6d17462775a88220078b4ae38e4e6228164a75.tar.bz2
gentoo-8d6d17462775a88220078b4ae38e4e6228164a75.zip
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@gmail.com> Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-boot/os-prober/files')
-rw-r--r--sys-boot/os-prober/files/os-prober-1.79-detect-void.patch20
1 files changed, 20 insertions, 0 deletions
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"