...
 
Commits (1)
...@@ -14,16 +14,16 @@ log_output () { ...@@ -14,16 +14,16 @@ log_output () {
fi fi
} }
: >"$OS_PROBER_TMP/dmraid-map"
DMRAID=$(type dmraid >/dev/null 2>&1 || true)
if [ "$DMRAID" ]; then
dmraid -r -c >"$OS_PROBER_TMP/dmraid-map"
fi
on_sataraid () { on_sataraid () {
type dmraid >/dev/null 2>&1 || return 1
local parent="${1%/*}" local parent="${1%/*}"
local device="/dev/${parent##*/}" local device="/dev/${parent##*/}"
if grep -q "$device" "$OS_PROBER_TMP/dmraid-map"; then
local mapcache="$OS_PROBER_TMP/dmraid-map"
[ -f "$mapcache" ] ||
dmraid -r -c >"$mapcache" 2>/dev/null || true
if grep -q "$device" "$mapcache"; then
return 0 return 0
fi fi
return 1 return 1
......