Author: shadzik
Date: Thu Jan 20 14:47:57 2011
New Revision: 12064

Modified:
   PLDLiveInstaller/trunk/PLDLiveInstaller.cpp
Log:
- umount all mounted partitions from the destination disk when autopartitioning


Modified: PLDLiveInstaller/trunk/PLDLiveInstaller.cpp
==============================================================================
--- PLDLiveInstaller/trunk/PLDLiveInstaller.cpp (original)
+++ PLDLiveInstaller/trunk/PLDLiveInstaller.cpp Thu Jan 20 14:47:57 2011
@@ -1722,6 +1722,12 @@
     
     if(entireDisk->isChecked())
     {
+      qDebug() << "Trying to umount all mounted devices";
+      foreach (Solid::Device partDev, 
Solid::Device::listFromType(Solid::DeviceInterface::Block, 
selectedBlockDev.udi() ))
+      {
+       if(isMounted(partDev))
+         umountDev(partDev);
+      }
       qDebug() << "starting partitioning";
       installBootLoader = false;
       selFS="ext4";
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to