installer: Reserve some space for RAID metadata.

This commit is contained in:
Michael Tremer
2014-07-24 15:28:12 +02:00
parent f5007e9c99
commit 22581f5163

View File

@@ -341,6 +341,10 @@ static int hw_calculate_partition_table(struct hw_destination* dest) {
if (dest->is_raid) {
dest->size = (dest->disk1->size >= dest->disk2->size) ?
dest->disk1->size : dest->disk2->size;
// The RAID will install some metadata at the end of the disk
// and we will save up some space for that.
dest->size -= MB2BYTES(2);
} else {
dest->size = dest->disk1->size;
}