diff options
author | Kim <UnicronNL@users.noreply.github.com> | 2017-03-20 21:26:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 21:26:35 +0100 |
commit | e121ff7ee674797223aa4bdfbeef674e5faab330 (patch) | |
tree | 4307cc42f1de53f5974fecebffe00cfa1975c086 /scripts/install | |
parent | 0aa4d99cfb96b8ca61c0524aefa3a77761a13e86 (diff) | |
download | vyatta-cfg-system-e121ff7ee674797223aa4bdfbeef674e5faab330.tar.gz vyatta-cfg-system-e121ff7ee674797223aa4bdfbeef674e5faab330.zip |
exclude install medium from raid disk count
Diffstat (limited to 'scripts/install')
-rwxr-xr-x | scripts/install/install-get-partition | 8 |
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 |