summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-20 05:07:15 +0000
committerMike Fulbright <msf@redhat.com>2001-07-20 05:07:15 +0000
commitc9d4bac54e0d29664e5df0125d118836fcdecd79 (patch)
tree03dfabcc7458367bfdc6747a627f2f4344a5ccf8 /packages.py
parenta3a6f9b11794a0c834b3612ba449bffc26c5a156 (diff)
downloadanaconda-c9d4bac54e0d29664e5df0125d118836fcdecd79.tar.gz
anaconda-c9d4bac54e0d29664e5df0125d118836fcdecd79.tar.xz
anaconda-c9d4bac54e0d29664e5df0125d118836fcdecd79.zip
handle migration during upgrades and rewrite fstab appropriately
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index 916babb18..1582ae98a 100644
--- a/packages.py
+++ b/packages.py
@@ -304,6 +304,10 @@ class rpmErrorClass:
def __init__(self, f):
self.f = f
+def doMigrateFilesystems(dir, thefsset, diskset, upgrade, instPath):
+ thefsset.migrateFilesystems (instPath)
+
+
def turnOnFilesystems(dir, thefsset, diskset, upgrade, instPath):
if dir == DISPATCH_BACK:
thefsset.umountFilesystems(instPath)
@@ -317,7 +321,6 @@ def turnOnFilesystems(dir, thefsset, diskset, upgrade, instPath):
thefsset.checkBadblocks(instPath)
thefsset.formatSwap(instPath)
thefsset.turnOnSwap(instPath)
- thefsset.migrateFilesystems (instPath)
thefsset.makeFilesystems (instPath)
thefsset.mountFilesystems (instPath)
@@ -425,6 +428,8 @@ def doPreInstall(method, id, intf, instPath, dir):
# write out the fstab
if not upgrade:
id.fsset.write(instPath)
+ else:
+ id.fsset.migratewrite(instPath)
def doInstall(method, id, intf, instPath):
if flags.test: