Commits

Uelsk8s  committed 4d743dd

fix mounting extra partitions

  • Participants
  • Parent commits 83bcd31

Comments (0)

Files changed (2)

File vinstall/backend/mountpoints.py

 
 """
 
-
+import os
 from vinstall.backend.media import Partition
 
 class MountPoints(object):
         """Declare a mountpoint for a partition
 
         """
-        self.mapping[partition][0] = mountpoint
+        self.mapping[partition][0] = os.path.join("/", mountpoint)
 
     def clear_mount(self, partition):
         """Declare that a partition shouldnt be mounted anymore

File vinstall/controller/mountpoints.py

         """Store mount in the config object for writting to fstab later
 
         """
+        if mountpoint not in ("/", "swap"):
+	    mountpoint = os.path.join("/", mountpoint)
         mount = (device, mountpoint, fs)
         self.config["mountpoints"].append(mount)