Commits

Rodrigo Bistolfi committed 328bffb

mountpoints: mkdir TARGET if needed

  • Participants
  • Parent commits 8d8c01f

Comments (0)

Files changed (1)

vinstall/controller/mountpoints.py

         """
         #XXX better data structure for not iterating twice
         target = "/mnt/TARGET"
+        if not os.path.exists(target):
+            os.mkdir(target)
         root = next(p for p, m in data if m == "/")
         root.mount(target)
         for partition, mountpoint in data: