You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
414 B
14 lines
414 B
#!/bin/bash |
|
|
|
# if we don't have dmraid installed on the host system, no point |
|
# in trying to support it in the initramfs. |
|
which dmraid >/dev/null 2>&1 || exit 1 |
|
|
|
# Hostonly checking should really fail if the root device is not on a |
|
# dmraid volume. I am lazy. Therefore, fail the hostonly check only |
|
# if we are not using dmraid right now. |
|
if [[ $1 = -h ]]; then |
|
dmraid -r | grep -q ok || exit 1 |
|
fi |
|
|
|
exit 0
|
|
|