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

Mattia Dongili malattia at costa.debian.org
Mon May 22 23:04:53 UTC 2006


Author: malattia
Date: 2006-05-22 23:04:52 +0000 (Mon, 22 May 2006)
New Revision: 82

Modified:
   trunk/src/rootstrap/builder
Log:
- use our own /dev in a temporary filesystem, no need to poke in the host's
- make kernel modules available early
- provide a shell for debugging purposes on script error (needs a switch to disable)


Modified: trunk/src/rootstrap/builder
===================================================================
--- trunk/src/rootstrap/builder	2006-05-21 22:38:53 UTC (rev 81)
+++ trunk/src/rootstrap/builder	2006-05-22 23:04:52 UTC (rev 82)
@@ -10,8 +10,11 @@
 os.system("mount -t tmpfs tmpfs /etc")
 os.mkdir("/etc/rootstrap")
 os.system("mount -t hostfs hostfs -o /etc/rootstrap /etc/rootstrap")
+os.system("mount -t tmpfs tmpfs /dev")
 os.system("mount -t proc proc /proc")
 os.system("mount -t tmpfs tmpfs /tmp")
+os.system("mount -t tmpfs tmpfs /lib/modules")
+os.system("mount -t hostfs hostfs -o /usr/lib/uml/modules /lib/modules")
 os.mkdir("/tmp/target")
 os.mkdir("/tmp/host")
 os.system("mount -t hostfs hostfs /tmp/host")
@@ -41,6 +44,7 @@
             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")
                 raise "rootstrap: Module '%s' failed, status: %d" % (module,status)
             return
 




More information about the Pkg-uml-commit mailing list