summaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authorKim <UnicronNL@users.noreply.github.com>2017-03-20 21:26:35 +0100
committerGitHub <noreply@github.com>2017-03-20 21:26:35 +0100
commite121ff7ee674797223aa4bdfbeef674e5faab330 (patch)
tree4307cc42f1de53f5974fecebffe00cfa1975c086 /scripts/install
parent0aa4d99cfb96b8ca61c0524aefa3a77761a13e86 (diff)
downloadvyatta-cfg-system-e121ff7ee674797223aa4bdfbeef674e5faab330.tar.gz
vyatta-cfg-system-e121ff7ee674797223aa4bdfbeef674e5faab330.zip
exclude install medium from raid disk count
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/install-get-partition8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition
index b17aa563..0ddbd443 100755
--- a/scripts/install/install-get-partition
+++ b/scripts/install/install-get-partition
@@ -195,6 +195,14 @@ check_for_new_raid () {
drives=$(cat /proc/partitions | awk '{ if ($4!="name") { print $4 } }' \
| egrep -v "[0-9]$" | egrep -v "^$")
+ for instdrv in $drives
+ do
+ if mount | grep iso9660 | grep -q $instdrv
+ then
+ drives=${drives//"$instdrv"/}
+ fi
+ done
+
numdrives=`echo $drives | wc -w`
# Need at least two drives for RAID-1. We don't yet have the code