Commits

Uelsk8s committed e7a939e

fixed isomount in automatic

  • Participants
  • Parent commits d722619

Comments (0)

Files changed (2)

File vinstall/controller/automatic.py

             os.mkdir(mountpoint)
         install_media = self.config["install_media"]
         if install_media.is_iso():
+            if not os.path.exists(install_media.path):
+                print "mount container here"
+		mntpoint = install_media.path.rsplit("/", 1)[0]
+		dev = mntpoint.replace("/mnt", "/dev")
+            	utils.mount(dev, mntpoint)
             utils.mountiso(install_media.path, mountpoint)
         else:
             utils.mount(install_media.path, mountpoint, filesystem="auto")

File vinstall/controller/packages.py

                 print "mount container here"
 		mntpoint = install_media.path.rsplit("/", 1)[0]
 		dev = mntpoint.replace("/mnt", "/dev")
-            	utils.mount(dev, mountpoint)
+            	utils.mount(dev, mntpoint)
             utils.mountiso(install_media.path, mountpoint)
         else:
             utils.mount(install_media.path, mountpoint, filesystem="auto")