diff options
author | Mike Fulbright <msf@redhat.com> | 2001-07-19 20:03:43 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-07-19 20:03:43 +0000 |
commit | 5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114 (patch) | |
tree | b8f066c2e0355875bcd8228f6f46f5b258984467 /textw/partition_text.py | |
parent | 0e82660641f9f1e38c27fa102eae106804c90737 (diff) | |
download | anaconda-5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114.tar.gz anaconda-5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114.tar.xz anaconda-5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114.zip |
fix behavior so we warn user if they are using a preexisting as a system directory and NOT formatting, as well as if they are formatting a preexsting, since it will destroy the data
Diffstat (limited to 'textw/partition_text.py')
-rw-r--r-- | textw/partition_text.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py index efe93de09..6582b8798 100644 --- a/textw/partition_text.py +++ b/textw/partition_text.py @@ -706,10 +706,14 @@ class PartitionWindow: "%s" % (err)) continue - if origrequest.format == None and request.format: + if not origrequest.format and request.format: if not queryFormatPreExisting(self.intf): continue + if not request.format and request.mountpoint and isFormatOnByDefault(origrequest): + if not queryNoFormatPreExisting(self.intf): + continue + # backup current (known working) configuration backpart = self.partitions.copy() if origrequest.device or origrequest.type != REQUEST_NEW: |