On 12/10/15 21:50, Cyril Brulebois wrote:
Hi,
David Hare <davidah...@gmail.com> (2015-10-12):
Package: os-prober
Version: 1.65
Severity: normal
Tags: patch
When invoking 'update-grub' an installation of Devuan on another partition
is identified by os-prober as 'unknown Linux distribution'. It does have an
/etc/devuan_version file. By contrast, os-prober supports detection of other
OS's (including some Debian derivatives).
Please resolve this for future versions. A simple 3-line patch to
/usr/lib/os-probes/mounted/90linux-distro (enclosed) has been observed to
work (by myself only so far).
David Hare
127a128,130
elif [ -e "$dir/etc/devuan_version" ]; then
short="Devuan"
long="$(printf "Devuan GNU/Linux (%s)\n" "$(cat
"$dir/etc/devuan_version")")"
Thanks, but please use diff -u or git format-patch. Having the context
around is always a good idea; having a patch ready to apply even more so.
Mraw,
KiBi.
My apologies for not using diff -u .. updated patch enclosed, hope that
helps better. Thanks for taking note of this issue.
David
--- /home/user/90linux-distro_orig 2012-11-27 02:02:01.000000000 +0000
+++ /home/user/90linux-distro_new 2015-10-07 16:00:11.469011017 +0100
@@ -125,6 +125,9 @@
elif [ -e "$dir/etc/meego-release" ]; then
short="MeeGo"
long="$(head -1 "$dir/etc/meego-release")"
+ elif [ -e "$dir/etc/devuan_version" ]; then
+ short="Devuan"
+ long="$(printf "Devuan GNU/Linux (%s)\n" "$(cat "$dir/etc/devuan_version")")"
else
short="Linux"
long="unknown Linux distribution"