diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-09 01:27:29 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-09 01:27:29 +0000 |
commit | 30b06571c537b320ce8efcf3f127869341d22893 (patch) | |
tree | c678476d7320a358022faf61077e2b8c0521a4bc /upgrade.py | |
parent | 6e98490008acd04f8cb2179ba89c4e498fce1c41 (diff) | |
download | anaconda-30b06571c537b320ce8efcf3f127869341d22893.tar.gz anaconda-30b06571c537b320ce8efcf3f127869341d22893.tar.xz anaconda-30b06571c537b320ce8efcf3f127869341d22893.zip |
rescue mode/upgrades don't actually work with lvm, yet, but this is the start. fsset.py's readFstab() still needs work
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py index 04fee81dd..698f0862d 100644 --- a/upgrade.py +++ b/upgrade.py @@ -22,6 +22,7 @@ import sys import os.path import partedUtils import string +import lvm from flags import flags from fsset import * from partitioning import * @@ -66,7 +67,10 @@ def mountRootPartition(intf, rootInfo, oldfsset, instPath, allowDirty = 0, diskset = partedUtils.DiskSet() diskset.openDevices() diskset.startAllRaid() + lvm.vgscan() + lvm.vgactivate() + log("going to mount %s on %s as %s" %(root, instPath, rootFs)) isys.mount(root, instPath, rootFs) oldfsset.reset() @@ -74,12 +78,14 @@ def mountRootPartition(intf, rootInfo, oldfsset, instPath, allowDirty = 0, for entry in newfsset.entries: oldfsset.add(entry) + log("now unmounting") isys.umount(instPath) dirtyDevs = oldfsset.hasDirtyFilesystems(instPath) if not allowDirty and dirtyDevs != []: import sys diskset.stopAllRaid() + lvm.vgdeactivate() intf.messageWindow(_("Dirty Filesystems"), _("The following filesystems for your Linux system " "were not unmounted cleanly. Please boot your " @@ -98,6 +104,7 @@ def mountRootPartition(intf, rootInfo, oldfsset, instPath, allowDirty = 0, return -1 if flags.setupFilesystems: + lvm.vgscan() oldfsset.mountFilesystems(instPath, readOnly = readOnly) # XXX we should properly support 'auto' at some point |