File os-prober-SUSE.patch of Package os-prober
Index: os-prober/os-probes/mounted/common/90linux-distro
===================================================================
--- os-prober.orig/os-probes/mounted/common/90linux-distro
+++ os-prober/os-probes/mounted/common/90linux-distro
@@ -80,8 +80,8 @@
short="RedHat"
long="$(cat "$dir/etc/redhat-release")"
elif [ -e "$dir/etc/SuSE-release" ]; then
- short="SuSE"
- long="$(head -n 1 "$dir/etc/SuSE-release")"
+ short="SUSE"
+ long="$(sed '1s/[()]//g;s/CODENAME *= *\(.*\)/ (\1)/;/VERSION/d' $dir/etc/SuSE-release | tr -d "\n")"
elif [ -e "$dir/etc/gentoo-release" ]; then
short="Gentoo"
long="$(cat "$dir/etc/gentoo-release")"