A couple of minor bugs fixed. lxcbuild
authorXavi Leon <xleon@ac.upc.edu>
Tue, 29 Nov 2011 22:59:12 +0000 (17:59 -0500)
committerXavi Leon <xleon@ac.upc.edu>
Tue, 29 Nov 2011 22:59:12 +0000 (17:59 -0500)
source/steps/InstallBootstrapFS.py
source/steps/ValidateNodeInstall.py

index d8d3911..bc46450 100644 (file)
@@ -174,7 +174,7 @@ def Run( vars, log ):
         shutil.copy("/usr/bootme/pubring.gpg", SYSIMG_PATH + "/usr/boot/pubring.gpg")
     
     # Creating /cgroup directory
-    if not os.path.exists(SYSIMG_PATH + "/cgroup")
+    if not os.path.exists(SYSIMG_PATH + "/cgroup"):
         utils.makedirs(SYSIMG_PATH + "/cgroup")
 
     # For backward compatibility
index dfe52bb..49ce35b 100644 (file)
@@ -83,7 +83,7 @@ def Run( vars, log ):
             
         utils.makedirs( SYSIMG_PATH )
 
-        for filesystem in ("root"):
+        for filesystem in ["root"]:
             try:
                 # first run fsck to prevent fs corruption from hanging mount...
                 log.write( "fsck %s file system\n" % filesystem )