Test for /servers instead of /servers/exec to avoid starting an translator in the mounted system. Furthermore, avoid testing for a specific Hurd component (previously, the script used /hurd/init, which incidentally has been renamed recently, and the replacement program might be phased out at least on Debian/Hurd). --- os-probes/mounted/x86/70hurd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/os-probes/mounted/x86/70hurd b/os-probes/mounted/x86/70hurd index ffc0a44..af29ff5 100755 --- a/os-probes/mounted/x86/70hurd +++ b/os-probes/mounted/x86/70hurd @@ -7,7 +7,7 @@ partition="$1" dir="$2" type="$3" -if [ -e "$dir/servers/exec" ] && [ -x "$dir/hurd/init" ]; then +if [ -d "$dir/servers" ] && [ -d "$dir/hurd" ]; then label="$(count_next_label Hurd)" result "$partition:GNU/Hurd:$label:hurd" exit 0 -- 2.6.1