17 lines
790 B
Diff
17 lines
790 B
Diff
diff -Nru calamares-3.2.24.orig/src/modules/partition/core/PartitionLayout.cpp calamares-3.2.24/src/modules/partition/core/PartitionLayout.cpp
|
|
--- calamares-3.2.24.orig/src/modules/partition/core/PartitionLayout.cpp 2020-05-23 12:11:51.000000000 +0200
|
|
+++ calamares-3.2.24/src/modules/partition/core/PartitionLayout.cpp 2020-05-23 12:26:41.560000000 +0200
|
|
@@ -195,6 +195,12 @@
|
|
minSize = 0;
|
|
}
|
|
|
|
+ if ( availableSize < 5 * 1024 * 1024) {
|
|
+ cWarning() << "Partition" << part.partMountPoint << "available size"
|
|
+ << "is insufficient to add partition, skipping...";
|
|
+ continue;
|
|
+ }
|
|
+
|
|
if ( part.partMaxSize.isValid() )
|
|
{
|
|
maxSize = part.partMaxSize.toSectors( totalSize, dev->logicalSize() );
|