Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
For sanity sake, don't try to do installs to disks < 4GB
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Aug 14, 2013
1 parent fdb09c1 commit 454e8cd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src-qt4/pc-installgui/wizardDisk.cpp
Expand Up @@ -246,13 +246,11 @@ bool wizardDisk::validatePage()

}

// Comment out this disk space check
// We will warn the user right before install if the selected
// Disk / partition looks too small
//if ( ! checkDiskSpace() ) {
// button(QWizard::NextButton)->setEnabled(false);
// return false;
//}
// If the select partition is just too small, we can stop here
if ( ! checkDiskSpace() ) {
button(QWizard::NextButton)->setEnabled(false);
return false;
}

// if we get this far, all the fields are filled in
button(QWizard::NextButton)->setEnabled(true);
Expand Down Expand Up @@ -341,7 +339,7 @@ void wizardDisk::populateZFSDisks()

bool wizardDisk::checkDiskSpace()
{
if ( getDiskSliceSize() < 10000 )
if ( getDiskSliceSize() < 4000 )
return false;

return true;
Expand Down

0 comments on commit 454e8cd

Please sign in to comment.