2013-01-31 20:28:53 +00:00
|
|
|
diff -up os-prober-1.57/os-probes/mounted/common/90linux-distro.usrmovefix os-prober-1.57/os-probes/mounted/common/90linux-distro
|
|
|
|
--- os-prober-1.57/os-probes/mounted/common/90linux-distro.usrmovefix 2013-01-23 00:39:20.333616357 +0330
|
|
|
|
+++ os-prober-1.57/os-probes/mounted/common/90linux-distro 2013-01-23 00:39:51.834222545 +0330
|
|
|
|
@@ -17,7 +17,7 @@ type="$3"
|
|
|
|
# symlinks we need to also check in $dir/usr/lib* for distributions that
|
|
|
|
# moved /lib* to /usr and only left symlinks behind.
|
2012-06-02 15:54:31 +00:00
|
|
|
# TODO: look for ld-linux.so on arches that have it
|
2013-01-31 20:28:53 +00:00
|
|
|
-if (ls "$dir"/lib*/ld*.so* || ls "$dir"/usr/lib*/ld*.so*) >/dev/null 2>/dev/null; then
|
|
|
|
+if (ls "$dir"/lib*/ld*.so* && [ -d "$dir/boot" ] || ls "$dir"/usr/lib*/ld*.so*) >/dev/null 2>/dev/null; then
|
2012-06-02 15:54:31 +00:00
|
|
|
if [ -e "$dir/etc/debian_version" ]; then
|
|
|
|
short="Debian"
|
|
|
|
long="$(printf "Debian GNU/Linux (%s)\n" "$(cat "$dir/etc/debian_version")")"
|