diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-12 15:50:19 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-12 15:50:19 -0500 |
commit | e88dffe61aa8ac671160bc6e0c7d861d222f1cde (patch) | |
tree | 1fde3565da35808307fcbacd2a05245e624c2fc3 /fsset.py | |
parent | 62ac419cecb7873bb3678ca8d5370791cadd9b7e (diff) | |
download | anaconda-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.py | 19 |
1 files changed, 5 insertions, 14 deletions
@@ -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 |