SVN: PLDLiveInstaller/trunk/PLDLiveInstaller.cpp

shadzik shadzik at pld-linux.org
Thu Jan 20 14:47:57 CET 2011


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";


More information about the pld-cvs-commit mailing list