Permalink
Browse files

Update Installer GUI, don't allow the "Force4K" option when using

GPT mode. It mangles the partition entries and cause boot to fail.

Revist once we have a non-dirty-hack way to force 4K mode
  • Loading branch information...
1 parent d9f825f commit ef5392adb2fa00ab2169b03e5ad02c7ec0d2fb65 @kmoore134 kmoore134 committed Oct 11, 2013
Showing with 15 additions and 0 deletions.
  1. +14 −0 src-qt4/pc-installgui/wizardDisk.cpp
  2. +1 −0 src-qt4/pc-installgui/wizardDisk.h
View
14 src-qt4/pc-installgui/wizardDisk.cpp
@@ -23,6 +23,7 @@ void wizardDisk::programInit()
populateDiskInfo();
//connect(pushClose, SIGNAL(clicked()), this, SLOT(slotClose()));
+ connect(checkGPT, SIGNAL(clicked()), this, SLOT(slotGPTClicked()));
connect(pushSwapSize, SIGNAL(clicked()), this, SLOT(slotSwapSize()));
connect(pushRemoveMount, SIGNAL(clicked()), this, SLOT(slotRemoveFS()));
connect(pushAddMount, SIGNAL(clicked()), this, SLOT(slotAddFS()));
@@ -1085,3 +1086,16 @@ void wizardDisk::setRestoreMode()
{
restoreMode=true;
}
+
+void wizardDisk::slotGPTClicked()
+{
+ // Right now we can't do the dirty "gnop" trick on GPT
+ // Mangles the partitions and fails to boot
+ if ( checkGPT->isChecked() )
+ {
+ checkForce4K->setChecked(false);
+ checkForce4K->setEnabled(false);
+ } else {
+ checkForce4K->setEnabled(true);
+ }
+}
View
1 src-qt4/pc-installgui/wizardDisk.h
@@ -39,6 +39,7 @@ private slots:
void slotTreeMountsRightClick();
void slotTerminal();
void slotSwapSize();
+ void slotGPTClicked();
// QMenu slots
void slotZCMON();

0 comments on commit ef5392a

Please sign in to comment.