diff options
author | Christian Poessinger <christian@poessinger.com> | 2017-12-27 23:33:48 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2017-12-27 23:33:48 +0100 |
commit | 04982592bfeeb70929afb73c93eb117a5ebca875 (patch) | |
tree | aaa114e2b5190ae3a90b7d6815eb9c02bef8a6de /scripts/install-system | |
parent | 9499b3e5f88ce72054046ac8a6c0da305f1b5fa4 (diff) | |
parent | 28ab553cfbe8d682314d61d0bac520deacfa14c7 (diff) | |
download | vyatta-cfg-system-04982592bfeeb70929afb73c93eb117a5ebca875.tar.gz vyatta-cfg-system-04982592bfeeb70929afb73c93eb117a5ebca875.zip |
Merge branch 't496-remove-raid1-diag-partition' into current
* t496-remove-raid1-diag-partition:
T496: remove diagnostic partition for RAID1 installs
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-x | scripts/install-system | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/scripts/install-system b/scripts/install-system index 108153da..e8464951 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -399,7 +399,7 @@ check_for_new_raid () { # # Partition creation variables are in units of megabytes. part_start_offset=2 - part_diag_size=60 + data_dev=1 if [ $drivesize1 -lt $drivesize2 ]; then root_size=$drivesize1 @@ -407,25 +407,6 @@ check_for_new_raid () { root_size=$drivesize2 fi - let min_size_with_diag=${MIN_ROOT}+${part_diag_size} - if [ $root_size -ge $min_size_with_diag ]; then - echo "Would you like me to create a $part_diag_size MB partition for diagnostics?" - echo -n "(Yes/No) [No]: " - diag_response=$(get_response "No" "Yes No Y N") - if [ "$diag_response" == "yes" ] || [ "$diag_response" == "y" ]; then - for drive in $drives - do - echo "Creating diag partition on drive $drive" - create_partitions "$drive" $part_diag_size $part_start_offset "no" - sfdisk --change-id /dev/$drive 1 0x6 - done - data_dev=2 - let part_start_offset+=$part_diag_size - else - data_dev=1 - fi - fi - let root_size-=$part_start_offset for drive in $drives |