don't show raid in blockdevices_partitions

This commit is contained in:
Tobias Powalowski 2022-01-27 09:45:16 +01:00
parent 4e84bfff8e
commit 8a9b1e5623

View file

@ -248,7 +248,7 @@ blockdevices_partitions() {
# all available block devices partitions # all available block devices partitions
# printk off needed cause of parted usage # printk off needed cause of parted usage
printk off printk off
for part in $(${_LSBLK} NAME,TYPE | grep "part$"| cut -d' ' -f1); do for part in $(${_LSBLK} NAME,TYPE | grep -v '^md' | grep "part$"| cut -d' ' -f1); do
# exclude checks: # exclude checks:
#- part of raid device #- part of raid device
# ${_LSBLK} FSTYPE ${part} | grep "linux_raid_member" # ${_LSBLK} FSTYPE ${part} | grep "linux_raid_member"