summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-02-12 15:50:19 -0500
committerJeremy Katz <katzj@redhat.com>2008-02-12 15:50:19 -0500
commite88dffe61aa8ac671160bc6e0c7d861d222f1cde (patch)
tree1fde3565da35808307fcbacd2a05245e624c2fc3 /fsset.py
parent62ac419cecb7873bb3678ca8d5370791cadd9b7e (diff)
downloadanaconda-e88dffe61aa8ac671160bc6e0c7d861d222f1cde.tar.gz
anaconda-e88dffe61aa8ac671160bc6e0c7d861d222f1cde.tar.xz
anaconda-e88dffe61aa8ac671160bc6e0c7d861d222f1cde.zip
Move migration to before mounting filesystems
By migrating before we enable filesystems, we can actually mount as the migration target. This helps a lot for ext4
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py19
1 files changed, 5 insertions, 14 deletions
diff --git a/fsset.py b/fsset.py
index 982fa7894..91d955490 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2107,20 +2107,11 @@ class FileSystemSetEntry:
def mount(self, chroot='/', devPrefix='/dev', readOnly = 0):
device = self.device.setupDevice(chroot, devPrefix=devPrefix)
- # FIXME: we really should migrate before turnOnFilesystems.
- # but it's too late now
- if (self.migrate == 1) and (self.origfsystem is not None):
- self.origfsystem.mount(device, "%s" % (self.mountpoint,),
- readOnly = readOnly,
- bindMount = isinstance(self.device,
- BindMountDevice),
- instroot = chroot)
- else:
- self.fsystem.mount(device, "%s" % (self.mountpoint,),
- readOnly = readOnly,
- bindMount = isinstance(self.device,
- BindMountDevice),
- instroot = chroot)
+ self.fsystem.mount(device, "%s" % (self.mountpoint,),
+ readOnly = readOnly,
+ bindMount = isinstance(self.device,
+ BindMountDevice),
+ instroot = chroot)
self.mountcount = self.mountcount + 1