diff options
author | Mike Fulbright <msf@redhat.com> | 2001-07-20 05:07:15 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-07-20 05:07:15 +0000 |
commit | c9d4bac54e0d29664e5df0125d118836fcdecd79 (patch) | |
tree | 03dfabcc7458367bfdc6747a627f2f4344a5ccf8 /iw | |
parent | a3a6f9b11794a0c834b3612ba449bffc26c5a156 (diff) | |
download | anaconda-c9d4bac54e0d29664e5df0125d118836fcdecd79.tar.gz anaconda-c9d4bac54e0d29664e5df0125d118836fcdecd79.tar.xz anaconda-c9d4bac54e0d29664e5df0125d118836fcdecd79.zip |
handle migration during upgrades and rewrite fstab appropriately
Diffstat (limited to 'iw')
-rw-r--r-- | iw/upgrade_migratefs_gui.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/iw/upgrade_migratefs_gui.py b/iw/upgrade_migratefs_gui.py index 9018aec95..1db36a30c 100644 --- a/iw/upgrade_migratefs_gui.py +++ b/iw/upgrade_migratefs_gui.py @@ -41,13 +41,19 @@ class UpgradeMigrateFSWindow (InstallWindow): req.format = 0 req.migrate = 1 req.fstype = fileSystemTypeGet("ext3") - + + entry = self.fsset.getEntryByDeviceName(req.device) + entry.setFileSystemType(fileSystemTypeGet("ext3")) + entry.setFormat(0) + entry.setMigrate(1) + return None def getScreen (self, fsset, partitions): - self.migratereq = partitions.getMigratableRequests() - + self.migratereq = partitions.getMigratableRequests(fsset) + self.fsset = fsset + box = GtkVBox (FALSE, 5) box.set_border_width (5) @@ -74,9 +80,10 @@ class UpgradeMigrateFSWindow (InstallWindow): entry = fsset.getEntryByDeviceName(req.device) if not entry: - mntpt = "" + # only show partitions in current fstab + continue else: - mntpt =entry.mountpoint + mntpt = entry.mountpoint cb = GtkCheckButton("%s - %s - %s" % (req.device, req.origfstype.getName(), |