File os-prober-lsb-long.patch of Package os-prober
Index: os-prober/os-probes/mounted/common/40lsb
===================================================================
--- os-prober.orig/os-probes/mounted/common/40lsb
+++ os-prober/os-probes/mounted/common/40lsb
@@ -19,17 +19,20 @@
exit 1
fi
+codename=$(lsb_field "$file" DISTRIB_CODENAME)
release=$(lsb_field "$file" DISTRIB_RELEASE)
if [ -z "$release" ]; then
release=$(lsb_field "$file" DISTRIB_CODENAME)
fi
description=$(lsb_field "$file" DISTRIB_DESCRIPTION)
if [ -z "$description" ]; then
- description=$(lsb_field "$file" DISTRIB_CODENAME)
+ description=$codename
fi
if [ -n "$description" ]; then
- if [ -n "$release" ]; then
+ if [ -n "$codename" ]; then
+ long="$description ($codename)"
+ elif [ -n "$release" ]; then
long="$description ($release)"
else
long="$description"