remove breakpoints, and use log instead of print when possible
[bootmanager.git] / source / steps / InstallInit.py
index 32fbafe..db21464 100644 (file)
@@ -16,7 +16,7 @@ def Run( vars, log ):
     """
     Setup the install environment:
     - unmount anything in the temp/sysimg path (possible from previous
-      aborted installs
+      aborted installs)
     - create temp directories
     
     Expect the following variables from the store:
@@ -64,9 +64,13 @@ def Run( vars, log ):
     except OSError, e:
         pass
 
+    # NOTE: added /sys and /dev b/c some nodes fail due to this when disk is
+    # nearly full.
     utils.sysexec_noerr( "umount %s/proc" % SYSIMG_PATH , log )
     utils.sysexec_noerr( "umount %s/mnt/cdrom" % SYSIMG_PATH , log )
     utils.sysexec_noerr( "umount %s/vservers" % SYSIMG_PATH , log )
+    utils.sysexec_noerr( "umount %s/sys" % SYSIMG_PATH , log )
+    utils.sysexec_noerr( "umount %s/dev" % SYSIMG_PATH , log )
     utils.sysexec_noerr( "umount %s" % SYSIMG_PATH , log )
     vars['ROOT_MOUNTED']= 0