summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-26 17:20:14 +0000
committerChris Lumens <clumens@redhat.com>2006-05-26 17:20:14 +0000
commit4a9f8bf457e5dc799671dfda4b0c6125917b714d (patch)
tree496c191f0c121888ced7304b6aba7db7fd2284b9 /fsset.py
parentdf43bd85d5940ae14fbd7517787b2c46a955e447 (diff)
downloadanaconda-4a9f8bf457e5dc799671dfda4b0c6125917b714d.tar.gz
anaconda-4a9f8bf457e5dc799671dfda4b0c6125917b714d.tar.xz
anaconda-4a9f8bf457e5dc799671dfda4b0c6125917b714d.zip
Don't try to mount protected partitions again, as this will cause an error
since they are already mounted as the installation source.
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/fsset.py b/fsset.py
index 886830175..d26fe2df5 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1698,13 +1698,18 @@ MAILADDR root
self.migratedfs = 1
- def mountFilesystems(self, instPath = '/', raiseErrors = 0, readOnly = 0):
+ def mountFilesystems(self, anaconda, raiseErrors = 0, readOnly = 0):
+ protected = anaconda.method.protectedPartitions()
+
for entry in self.entries:
- if not entry.fsystem.isMountable():
+ # Don't try to mount a protected partition, since it will already
+ # have been mounted as the installation source.
+ if not entry.fsystem.isMountable() or (protected and entry.device.getDevice() in protected):
continue
+
try:
log.info("trying to mount %s on %s" %(entry.device.getDevice(), entry.mountpoint))
- entry.mount(instPath, readOnly = readOnly)
+ entry.mount(anaconda.rootPath, readOnly = readOnly)
self.mountcount = self.mountcount + 1
except OSError, (num, msg):
if self.messageWindow:
@@ -1742,7 +1747,7 @@ MAILADDR root
entry.mountpoint, msg))
sys.exit(0)
- self.makeLVMNodes(instPath)
+ self.makeLVMNodes(anaconda.rootPath)
def makeLVMNodes(self, instPath, trylvm1 = 0):
# XXX hack to make the device node exist for the root fs if