diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-26 17:20:14 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-26 17:20:14 +0000 |
commit | 4a9f8bf457e5dc799671dfda4b0c6125917b714d (patch) | |
tree | 496c191f0c121888ced7304b6aba7db7fd2284b9 /fsset.py | |
parent | df43bd85d5940ae14fbd7517787b2c46a955e447 (diff) | |
download | anaconda-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.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |