Commits

Rodrigo Bistolfi committed f865e00

automatic: create /dev. use glob instead os.walk for xzm files

Comments (0)

Files changed (1)

vinstall/controller/automatic.py

             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"):
+            for d in ("tmp", "mnt", "sys", "proc", "dev"):
                 d2 = os.path.join(root, d)
                 os.mkdir(d2)
             for d in ("cdrom", "cdwriter", "dvd", "dvdwriter", "floppy", "hd",
         edition
         
         """
-        for root, dirs, files in os.walk("/mnt/SOURCE"):
-            for file in files:
-                fname, fext = os.path.splitext(file)
-                if fext in (".xzm"):
-                    yield os.path.join(root, file)
+        return glob.glob("/mnt/SOURCE/*/base/*xzm")
 
     def live_installpkg(self, package, disk):
         """Install a package from a Live install media (usually a bulk)