[Pkg-uml-commit] r93 - trunk/src/rootstrap

Mattia Dongili malattia at costa.debian.org
Tue May 23 20:22:12 UTC 2006


Author: malattia
Date: 2006-05-23 20:22:12 +0000 (Tue, 23 May 2006)
New Revision: 93

Modified:
   trunk/src/rootstrap/builder
   trunk/src/rootstrap/rootstrap.conf
Log:
introduce a parameter to enable a debug console if a module fails

Modified: trunk/src/rootstrap/builder
===================================================================
--- trunk/src/rootstrap/builder	2006-05-23 20:17:11 UTC (rev 92)
+++ trunk/src/rootstrap/builder	2006-05-23 20:22:12 UTC (rev 93)
@@ -44,7 +44,8 @@
             print "Using rootstrap module %s from:\n\t%s" % (module,script)
             status = os.spawnle(os.P_WAIT, script, script, vars)
             if status != 0:
-		os.system("/bin/sh")
+	        if "debug" in vars and vars["debug"] == "true":
+		    status = os.spawnle(os.P_WAIT, "/bin/sh", "/bin/sh", vars)
                 raise "rootstrap: Module '%s' failed, status: %d" % (module,status)
             return
 

Modified: trunk/src/rootstrap/rootstrap.conf
===================================================================
--- trunk/src/rootstrap/rootstrap.conf	2006-05-23 20:17:11 UTC (rev 92)
+++ trunk/src/rootstrap/rootstrap.conf	2006-05-23 20:22:12 UTC (rev 93)
@@ -25,6 +25,11 @@
 # unnecessarily.  I use squid.
 #http_proxy=http://192.168.10.1:3128
 
+# Debugging stuff, if a rootstrap module fails spawn a shell to allow
+# investigating. Set the following variable to "true" if you want 
+# such behaviour.
+#debug=true
+
 #
 # Networking
 #




More information about the Pkg-uml-commit mailing list