Commits

Rodrigo Bistolfi  committed e545ff1

mountpoints.py: fix name error and handle swap

  • Participants
  • Parent commits 884b141

Comments (0)

Files changed (1)

File vinstall/controller/mountpoints.py

         root = next(p for p, m in data if m == "/")
         root.mount(target)
         for partition, mountpoint in data:
-            if mountpoint != "/":
+            if mountpoint not in ("/", "swap"):
                 d = os.path.join(target, mountpoint)
                 if not os.path.exists(d):
                     os.mkdir(d)
         """Store mount in the config object for writting to fstab later
         
         """
-        mount = (device, mountpoint, filesystem)
+        mount = (device, mountpoint, fs)
         self.config["mountpoints"].append(mount)