From f9aa35d786497abf3ab32e846fbfb45c82728d03 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 28 Jun 2023 22:10:28 +0200 Subject: [PATCH] silence checks --- usr/lib/archboot/installer/blockdevices.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index 2f1248803..84397931a 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -134,13 +134,13 @@ _partitionable_raid_devices_partitions() { _dmraid_devices() { # isw_raid_member, managed by mdadm for dev in $(${_LSBLK} NAME,TYPE 2>"${_NO_LOG}" | grep " raid.*$" | cut -d' ' -f 1 | sort -u); do - if ${_LSBLK} NAME,FSTYPE -s "${dev}" | grep "isw_raid_member$"; then + if ${_LSBLK} NAME,FSTYPE -s "${dev}" | grep -q "isw_raid_member$"; then ${_LSBLK} NAME,SIZE -d "${dev}" fi done # ddf_raid_member, managed by mdadm for dev in $(${_LSBLK} NAME,TYPE 2>"${_NO_LOG}" | grep " raid.*$" | cut -d' ' -f 1 | sort -u); do - if ${_LSBLK} NAME,FSTYPE -s "${dev}" | grep "ddf_raid_member$"; then + if ${_LSBLK} NAME,FSTYPE -s "${dev}" | grep -q "ddf_raid_member$"; then ${_LSBLK} NAME,SIZE -d "${dev}" fi done