Author: shadzik
Date: Thu Jan 13 15:55:14 2011
New Revision: 12040

Modified:
   PLDLiveInstaller/trunk/PLDLiveInstaller.cpp
Log:
- implement autopartitioning for the lazy/newbie ones
- HIGHLY experimental, not tested
- might even not work at all


Modified: PLDLiveInstaller/trunk/PLDLiveInstaller.cpp
==============================================================================
--- PLDLiveInstaller/trunk/PLDLiveInstaller.cpp (original)
+++ PLDLiveInstaller/trunk/PLDLiveInstaller.cpp Thu Jan 13 15:55:14 2011
@@ -1587,6 +1587,24 @@
     if(isMounted(destPartition))
       umountDev(destPartition);
     
+    if(entireDisk->isChecked())
+    {
+      installBootLoader = false;
+      selFS="ext4";
+      doFormat=true;
+      Solid::Device partitions[2];
+      int i = 0;
+      QString tmpDev = selectedBlockDev.as<Solid::Block>()->device();
+      destroyPartitionTable(tmpDev);
+      createPartitionTable(tmpDev);
+      foreach (Solid::Device partDev, 
Solid::Device::listFromType(Solid::DeviceInterface::Block, 
selectedBlockDev.udi() ))
+      {
+       partitions[i++]=partDev;
+      }
+      destPartition=partitions[1];
+      destSwap=partitions[0];
+    }
+    
     if(doFormat) {
       if(cont && !makeFS(destPartition)) {
        cont = false;
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to