add bm version
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 14 Feb 2011 16:11:15 +0000 (17:11 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 14 Feb 2011 16:11:15 +0000 (17:11 +0100)
source/steps/InstallBootstrapFS.py

index 8d8d917..ccfad6b 100644 (file)
@@ -11,6 +11,7 @@ import os, sys, string
 import popen2
 import shutil
 import traceback 
+import time
 
 from Exceptions import *
 import utils
@@ -51,6 +52,8 @@ def Run( vars, log ):
         if NODE_ID == "":
             raise ValueError, "NODE_ID"
 
+        VERSION=vars['VERSION'] or 'unknown'
+
     except KeyError, var:
         raise BootManagerException, "Missing variable in vars: %s\n" % var
     except ValueError, var:
@@ -185,7 +188,8 @@ def Run( vars, log ):
     // keep a log on the installed hdd
     stamp=file(SYSIMG_PATH + "/bm-install.txt",'w')
     now=time.strftime("%Y-%b-%d @ %H:%M %Z", time.gmtime())
-    stamp.write("BootManager finished reinstall from bootstrapfs on %s\n"%now)
+    stamp.write("Hard drive installed by BootManager %s\n"%VERSION)
+    stamp.write("Finished extraction of bootstrapfs on %s\n"%now)
     stamp.write("Using nodefamily %s\n"%nodefamily)
     stamp.close()