summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vmdb/plugins/mount_plugin.py7
-rw-r--r--vmdb/plugins/virtualfs_plugin.py3
2 files changed, 5 insertions, 5 deletions
diff --git a/vmdb/plugins/mount_plugin.py b/vmdb/plugins/mount_plugin.py
index 699ffc5..b8ebcb1 100644
--- a/vmdb/plugins/mount_plugin.py
+++ b/vmdb/plugins/mount_plugin.py
@@ -15,7 +15,6 @@
#
# =*= License: GPL-3+ =*=
-
import logging
import os
import tempfile
@@ -61,8 +60,10 @@ class MountStepRunner(vmdb.StepRunnerInterface):
if not state.tags.has_tag(mount_on):
raise Exception("cannot find tag {}".format(mount_on))
- mount_point = os.path.join(
- state.tags.get_builder_mount_point(mount_on), "./" + dirname
+ mount_point = os.path.normpath(
+ os.path.join(
+ state.tags.get_builder_mount_point(mount_on), "./" + dirname
+ )
)
if not os.path.exists(mount_point):
diff --git a/vmdb/plugins/virtualfs_plugin.py b/vmdb/plugins/virtualfs_plugin.py
index 9f440f8..6416a12 100644
--- a/vmdb/plugins/virtualfs_plugin.py
+++ b/vmdb/plugins/virtualfs_plugin.py
@@ -54,8 +54,7 @@ class VirtualFilesystemMountStepRunner(vmdb.StepRunnerInterface):
if not hasattr(state, "virtuals"):
state.virtuals = []
- for device, mount_point, fstype in self.virtuals:
- path = os.path.join(rootfs, "./" + mount_point)
+ path = os.path.normpath(os.path.join(rootfs, "./" + mount_point))
if not os.path.exists(path):
os.mkdir(path)
vmdb.runcmd(["mount", "-t", fstype, device, path])