diff options
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/upgrade.py b/upgrade.py index fc2b07f8f..2da1bc062 100644 --- a/upgrade.py +++ b/upgrade.py @@ -142,6 +142,7 @@ def mountRootPartition(anaconda, rootInfo, oldfsset, allowDirty = 0, dirtyDevs = oldfsset.hasDirtyFilesystems(anaconda.rootPath) if not allowDirty and dirtyDevs != []: + lvm.vgdeactivate() diskset.stopMdRaid() diskset.stopDmRaid() diskset.stopMPath() @@ -162,11 +163,6 @@ def mountRootPartition(anaconda, rootInfo, oldfsset, allowDirty = 0, if rc == 0: return -1 - # FIXME: diskset.getLabels() called from readFstab up above turns off LVM - # so we have to call this yet again. Really need a better fix though. - lvm.vgscan() - lvm.vgactivate() - if flags.setupFilesystems: oldfsset.mountFilesystems(anaconda, readOnly = readOnly) |