diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-23 13:55:21 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-23 13:55:21 +0000 |
commit | 7f4b871e880ebb598c5c187cfaab95073b7ffab6 (patch) | |
tree | d90e6734bcea51972f01b5682be027722714c800 /iw | |
parent | 3a0790fb64c7e4d6fb60a5725aba6ae9a79e6723 (diff) | |
download | anaconda-7f4b871e880ebb598c5c187cfaab95073b7ffab6.tar.gz anaconda-7f4b871e880ebb598c5c187cfaab95073b7ffab6.tar.xz anaconda-7f4b871e880ebb598c5c187cfaab95073b7ffab6.zip |
Allow existing partitions containing ISO images to be mounted (#105722).
This still needs to be tested, once we get through with all the
image-making problems.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/partition_dialog_gui.py | 5 | ||||
-rw-r--r-- | iw/raid_dialog_gui.py | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py index 9e3317def..8e2e861c7 100644 --- a/iw/partition_dialog_gui.py +++ b/iw/partition_dialog_gui.py @@ -432,9 +432,10 @@ class PartitionEditor: row = row + 1 - # format/migrate options for pre-existing partitions + # format/migrate options for pre-existing partitions, as long as they + # aren't protected (we'd still like to be able to mount them, though) self.fsoptionsDict = {} - if self.origrequest.type == REQUEST_PREEXIST and self.origrequest.fstype: + if self.origrequest.type == REQUEST_PREEXIST and self.origrequest.fstype and not self.origrequest.getProtected(): (row, self.fsoptionsDict) = createPreExistFSOptionSection(self.origrequest, maintable, row, self.mountCombo) # size options diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py index fdaa737d4..0ded97900 100644 --- a/iw/raid_dialog_gui.py +++ b/iw/raid_dialog_gui.py @@ -540,6 +540,12 @@ class RaidCloneDialog: for req in requests: rc = partIntfHelpers.isNotChangable(req, self.partitions) + + # If the partition is protected, we also can't delete it so + # specify a reason why. + if rc is None and req.getProtected(): + rc = _("This partition is holding the data for the hard " + "drive install.") if rc: self.intf.messageWindow(_("Target Drive Error"), _("The target drive /dev/%s " |