summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcomponents/9990-misc-helpers.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index 87d33da..bb1cf21 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -721,16 +721,16 @@ mount_persistence_media ()
raid_drives=$(cat /proc/partitions | awk '{ if ($4!="name") { print $4 } }' \
| grep "md" | egrep -v "^$")
- disks=()
- for raid_drive in $raid_drives; do
- disks+=`ls /sys/block/$raid_drive/slaves`
- done
-
- for disk in ${disks[@]}; do
- if [ "/dev/${disk}" = "${device}" ]
- then
- return 1
- fi
+ for raid_drive in $raid_drives
+ do
+ disks=`ls /sys/block/$raid_drive/slaves`
+ for disk in ${disks}
+ do
+ if [ "/dev/${disk}" = "${device}" ]
+ then
+ return 1
+ fi
+ done
done
backing="/live/persistence/"