summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-02-20 14:51:39 -0600
committerDavid Lehman <dlehman@redhat.com>2008-02-20 14:52:11 -0600
commitbd670a65f58430de55534e2cfb7dae6214f80f24 (patch)
tree804332620c08f642d78d270a1ed67632792e96c4 /partedUtils.py
parent5e859d6918ffb6fcdc8fc9ca361ae270f5981e4e (diff)
downloadanaconda-bd670a65f58430de55534e2cfb7dae6214f80f24.tar.gz
anaconda-bd670a65f58430de55534e2cfb7dae6214f80f24.tar.xz
anaconda-bd670a65f58430de55534e2cfb7dae6214f80f24.zip
Use full path to device for mount in findExistingRootPartitions.
Thanks to Joel for spotting it.
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/partedUtils.py b/partedUtils.py
index 78145d6ff..639c25d46 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -870,7 +870,9 @@ class DiskSet:
# because that'll throw up a useless error message.
if not protected or theDev not in protected:
try:
- isys.mount(theDev, self.anaconda.rootPath, fstype)
+ isys.mount("/dev/%s" % (theDev,),
+ self.anaconda.rootPath,
+ fstype)
checkRoot = self.anaconda.rootPath
except SystemError, (errno, msg):
part = disk.next_partition(part)
@@ -888,7 +890,8 @@ class DiskSet:
except:
label = None
- rootparts.append ((theDev, fstype, relstr, label))
+ rootparts.append (("/dev/%s" % (theDev,),
+ fstype, relstr, label))
if not protected or node not in protected:
isys.umount(self.anaconda.rootPath)