summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-19 17:07:27 +0000
committerErik Troan <ewt@redhat.com>2000-05-19 17:07:27 +0000
commite9a58d1860528110b55bf8ccdcd66f5fa46e1f74 (patch)
tree98ea2725797059aaa593503ca8625a84fcaf034d /isys
parent4a0fe533b4b8f27fbce148b2c4f2ef25450e6752 (diff)
downloadanaconda-e9a58d1860528110b55bf8ccdcd66f5fa46e1f74.tar.gz
anaconda-e9a58d1860528110b55bf8ccdcd66f5fa46e1f74.tar.xz
anaconda-e9a58d1860528110b55bf8ccdcd66f5fa46e1f74.zip
normalize mount paths for mount cache
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index c6d276e50..e95c67ecd 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -82,6 +82,8 @@ def ddfile(file, megs, pw = None):
os.close(fd)
def mount(device, location, fstype = "ext2", readOnly = 0):
+ location = os.path.normpath(location)
+
if device != "/proc":
devName = "/dev/%s" % device
makeDevInode(device, devName)
@@ -102,6 +104,8 @@ def mount(device, location, fstype = "ext2", readOnly = 0):
return rc
def umount(what, removeDir = 1):
+ what = os.path.normpath(what)
+
if not os.path.isdir(what):
raise ValueError, "isys.umount() can only umount by mount point"