Commits

Rodrigo Bistolfi committed b5abcd6

Create base directory tree in live

Comments (0)

Files changed (1)

vinstall/controller/automatic.py

         packages first.
 
         """
-        aaa = glob.glob("/mnt/SOURCE/packages/a/aaa_base-*.t?z")[0]
-        self.installpkg(aaa, "/mnt/TARGET")
+        root = "/mnt/TARGET"
+        if not self.is_live():
+            aaa = glob.glob("/mnt/SOURCE/packages/a/aaa_base-*.t?z")[0]
+            self.installpkg(aaa, "/mnt/TARGET")
+        else:
+            for d in ("tmp", "mnt", "sys", "proc"):
+                d2 = os.path.join(root, d)
+                os.mkdir(d2)
+            for d in ("cdrom", "cdwriter", "dvd", "dvdwriter", "floppy", "hd",
+                    "linux", "loop", "memory", "pendrive", "tmp", "vl-hot",
+                    "win", "zip"):
+                d2 = os.path.join(root, "mnt", d)
+                os.mkdir(d2)
 
     def postinstall(self):
         """Run after installing packages, use for packages needing to be