mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
remove raid check in blockdevices, complete raid disks are not supported and not recommended at all
This commit is contained in:
parent
675e0d5881
commit
fb1c3817ed
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue