diff options
author | Erik Troan <ewt@redhat.com> | 1999-09-23 00:18:44 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-09-23 00:18:44 +0000 |
commit | 87126a5bc810ff66ac4f15111f4f2e0510a82076 (patch) | |
tree | 82af2763b764425c7e8d7811e0a10219d2d2830d | |
parent | ecef0556876e3f62752cc13ef6b83c85e6d5bf0e (diff) | |
download | anaconda-87126a5bc810ff66ac4f15111f4f2e0510a82076.tar.gz anaconda-87126a5bc810ff66ac4f15111f4f2e0510a82076.tar.xz anaconda-87126a5bc810ff66ac4f15111f4f2e0510a82076.zip |
reset mount partitions before adding new mount points
-rw-r--r-- | iw/rootpartition.py | 2 | ||||
-rw-r--r-- | textw/partitioning.py | 1 | ||||
-rw-r--r-- | todo.py | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/iw/rootpartition.py b/iw/rootpartition.py index 9b0e2263c..92005b5f9 100644 --- a/iw/rootpartition.py +++ b/iw/rootpartition.py @@ -74,13 +74,13 @@ class PartitionWindow (InstallWindow): bootPartition = None rootPartition = None + self.todo.resetMounts() for (partition, mount, fsystem, size) in fstab: self.todo.addMount(partition, mount, fsystem) if mount == "/": rootPartition = partition elif mount == "/boot": bootPartition = partition - (drives, raid) = self.todo.ddruid.partitionList() diff --git a/textw/partitioning.py b/textw/partitioning.py index cd3d030b4..732493d68 100644 --- a/textw/partitioning.py +++ b/textw/partitioning.py @@ -124,6 +124,7 @@ class PartitionWindow: if not todo.getSkipPartitioning(): dir = todo.ddruid.edit () + todo.resetMounts() for partition, mount, fstype, size in todo.ddruid.getFstab (): todo.addMount(partition, mount, fstype) @@ -646,6 +646,9 @@ class ToDo: reformat = 1 self.mounts[location] = (device, fsystem, reformat) + def resetMounts(self): + self.mounts = {} + def writeFstab(self): format = "%-23s %-23s %-7s %-15s %d %d\n"; |