summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-09-08 14:17:42 -0700
committerBob Gilligan <gilligan@vyatta.com>2008-09-08 14:17:42 -0700
commit3cf0113adb105bb45fda536bcc9db1d8456486a3 (patch)
tree4447e1ee196b19f9231115cf0234b0d34c45012c /scripts
parenta684eb06761896b0236619b9506d6699a98af2ba (diff)
downloadvyatta-cfg-quagga-3cf0113adb105bb45fda536bcc9db1d8456486a3.tar.gz
vyatta-cfg-quagga-3cf0113adb105bb45fda536bcc9db1d8456486a3.zip
Account for size of diag partition when calculating disk size, which is needed
in order to create the data partition.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-system1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 3b13a254..978627c9 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -357,6 +357,7 @@ check_for_new_raid () {
do
echo "Creating data partition: /dev/${drive}${data_dev}"
size=$(get_drive_size $drive)
+ let size-=$part_start_offset
create_partitions "$drive" $size $part_start_offset "no"
sfdisk --change-id /dev/$drive $data_dev 0xfd
done