From 22581f516301d61d778b8b76a3e0b233e91832a5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 24 Jul 2014 15:28:12 +0200 Subject: [PATCH] installer: Reserve some space for RAID metadata. --- src/install+setup/install/hw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/install+setup/install/hw.c b/src/install+setup/install/hw.c index 77d024535a..a88e5567d3 100644 --- a/src/install+setup/install/hw.c +++ b/src/install+setup/install/hw.c @@ -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; } -- 2.39.2