[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#574407: os-prober does not detect 64bit systems like Fedora 64



Package: os-prober
Version: 1.36
Severity: normal
Tags: patch

Hi,

os-prober does not detect 64bit systems like Fedora 64.
The /usr/lib/os-probes/mounted/90linux-distro script only checks
"$dir"/lib/ld*.so* but to detect Fedora 64 correctly it must check
"$dir"/lib64/ld*.so* too.
After that 1 line fix os-prober detects Fedora 64 fine.

Maximilian Gerhard
--- /usr/lib/os-probes/mounted/90linux-distro	2008-12-26 14:48:07.000000000 +0100
+++ /home/max/Desktop/90linux-distro	2010-03-17 20:47:10.000000000 +0100
@@ -13,7 +13,7 @@
 # better. Make sure this test has a high number so that more accurate tests
 # can come first.
 # TODO: look for ld-linux.so on arches that have it
-if ls $dir/lib/ld*.so* >/dev/null 2>/dev/null; then
+if ls "$dir"/lib/ld*.so* >/dev/null 2>/dev/null || ls "$dir"/lib64/ld*.so* >/dev/null 2>/dev/null; then
 	if [ -e "$dir/etc/debian_version" ]; then
 		short="Debian"
 		long=$(printf "Debian GNU/Linux (%s)\n" "$(cat $dir/etc/debian_version)")

Reply to: