/usr/share/initramfs-tools/scripts/mdadm-functions is in mdadm 3.2.5-5ubuntu4.
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 | #!/bin/sh
txt_message ()
{
if [ -x /bin/plymouth ] && plymouth --ping; then
return 0
else
echo "$@" >&2
fi
return 0
}
message()
{
if [ -x /bin/plymouth ] && plymouth --ping; then
plymouth message --text="$@"
else
echo "$@" >&2
fi
return 0
}
mountroot_fail()
{
message "Incrementally starting RAID arrays..."
if mdadm --incremental --run --scan; then
message "Incrementally started RAID arrays."
return 0
else
if mdadm --assemble --scan --run; then
message "Assembled and started RAID arrays."
return 0
else
message "Could not start RAID arrays in degraded mode."
fi
fi
return 1
}
|