This file is indexed.

/usr/lib/os-probes/mounted/90bsd-distro is in os-prober 1.51ubuntu3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
# Test for *BSD distributions.
set -e

. /usr/share/os-prober/common.sh

partition="$1"
dir="$2"
type="$3"

# Weed out stuff that doesn't apply to us
case "$type" in
  ufs|ufs1|ufs2) ;;
  *) exit 1 ;;
esac

disk=$(echo $partition | gawk '{ match($0, /([[:alpha:][:punct:]]+)[[:digit:]]+/, disk); print disk[1] }')

if [ ! -z "$disk" ]; then
  tpartition=$(echo $partition | sed 's|\/|\\/|g')

  system=$(fdisk -l $disk | awk '/'$tpartition'[[:blank:]]+\*[[:blank:]]+.+[[:blank:]]+.+BSD/ {print $7}')

  if [ ! -z "$system" ]; then
    title=

    if [ -f $dir/etc/motd ]; then
      case $system in
      FreeBSD | NetBSD | OpenBSD) title=$(cat $dir/etc/motd | gawk '{ match($0, /('$system')[[:blank:]]+([[:graph:]]+)[[:blank:]]+(\([[:print:]]+\))/, title); print title[1], title[2], title[3]; exit 0}')
				  ;;
      esac
    fi

    if [ -z "$title" ]; then
      title="$system"
    fi

    label="$(count_next_label "$system")"
    echo "$partition:$title:$label:chain"

    exit 0
  else
    exit 1
  fi
else
  exit 1
fi