This file is indexed.

/sbin/mdadm-startall is in mdadm 3.2.5-5.

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
#!/bin/sh
#
# startall -- starts all existing arrays after creating mdadm.conf
#             overrides the AUTOSTART variable in /etc/default/mdadm
#
# Copyright © martin f. krafft <madduck@madduck.net>
# distributed under the terms of the Artistic Licence 2.0
#
set -eu

CONFIG=/etc/mdadm/mdadm.conf
ALTCONFIG=/etc/mdadm.conf

modprobe -q md 2>/dev/null || :

[ ! -f $CONFIG ] && [ -f $ALTCONFIG ] && CONFIG=$ALTCONFIG

if ! grep -q '^ARRAY' $CONFIG 2>/dev/null; then
  /usr/share/mdadm/mkconf force-generate || ret=$?
  case ${ret:-0} in
    0) :;;
    *)
      echo E: mdadm: mdadm.conf creation failed, aborting. >&2
      exit $ret
      ;;
  esac
else
  echo W: mdadm: using ARRAYs defined in existing mdadm.conf. >&2
fi

MDADM_FORCE_AUTOSTART__=1 exec /etc/init.d/mdadm-raid start