remove raid check in blockdevices, complete raid disks are not supported and not recommended at all

This commit is contained in:
Tobias Powalowski 2013-07-20 08:41:10 +02:00
parent 675e0d5881
commit fb1c3817ed

View file

@ -426,11 +426,9 @@ blockdevices() {
# all available block disk devices
for dev in $(${_LSBLK} NAME,TYPE | grep "disk$" | cut -d' ' -f1); do
# exclude checks:
#- exclude complete disks as raid_devices
# $(cat /proc/mdstat 2>/dev/null | grep "$(basename ${dev}\\[)")
#- dmraid_devices
# $(${_LSBLK} TYPE ${dev} | grep dmraid
if ! [[ "$(cat /proc/mdstat 2>/dev/null | grep "$(basename ${dev}\\[)")" || "$(${_LSBLK} TYPE ${dev} | grep "dmraid")" ]]; then
if ! [[ "$(${_LSBLK} TYPE ${dev} | grep "dmraid")" ]]; then
echo "${dev}"
[[ "${1}" ]] && echo ${1}
fi