summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-23 19:21:14 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-23 19:21:14 +0000
commit8b395c1e3d5ebd2bf49e238c670c1f51681232c4 (patch)
tree18341835f0eed93120ae95caaf4b4d6181cea407 /upgrade.py
parent5f45d0c5f3dcfde1d94a912681409116a01d62d7 (diff)
downloadanaconda-8b395c1e3d5ebd2bf49e238c670c1f51681232c4.tar.gz
anaconda-8b395c1e3d5ebd2bf49e238c670c1f51681232c4.tar.xz
anaconda-8b395c1e3d5ebd2bf49e238c670c1f51681232c4.zip
new step: find root parts, remove those bits from the interfaces for
findinstall, hook up kickstart upgrade, mounting the root for an upgrade will mount the first in the list (which if you've gone through the interface is the only one, but if kickstart, upgrades the first install found)
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/upgrade.py b/upgrade.py
index 09b5ca8f3..0c4a79b19 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -27,6 +27,10 @@ from partitioning import *
from log import log
from translate import _
+def findRootParts(intf, id, chroot):
+ parts = findExistingRoots(intf, id, chroot)
+ id.upgradeRoot = parts
+
def findExistingRoots (intf, id, chroot):
if not flags.setupFilesystems: return [ (chroot, 'ext2') ]
@@ -196,7 +200,7 @@ def upgradeMountFilesystems(intf, rootInfo, oldfsset, instPath):
if flags.setupFilesystems:
try:
- mountRootPartition(intf, rootInfo, oldfsset, instPath,
+ mountRootPartition(intf, rootInfo[0], oldfsset, instPath,
allowDirty = 0)
except SystemError, msg:
intf.messageWindow(_("Dirty Filesystems"),