summaryrefslogtreecommitdiffstats
path: root/partIntfHelpers.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-23 13:55:21 +0000
committerChris Lumens <clumens@redhat.com>2006-05-23 13:55:21 +0000
commit7f4b871e880ebb598c5c187cfaab95073b7ffab6 (patch)
treed90e6734bcea51972f01b5682be027722714c800 /partIntfHelpers.py
parent3a0790fb64c7e4d6fb60a5725aba6ae9a79e6723 (diff)
downloadanaconda-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 'partIntfHelpers.py')
-rw-r--r--partIntfHelpers.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index 5d7f9338f..46d36c8fa 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -106,10 +106,6 @@ def sanityCheckMountPoint(mntpt, fstype, preexisting, format):
def isNotChangable(request, requestlist):
if request:
- if request.getProtected():
- return _("This partition is holding the data "
- "for the hard drive install.")
-
if requestlist.isRaidMember(request):
parentreq = requestlist.getRaidMemberParent(request)
if parentreq.raidminor is not None:
@@ -179,7 +175,14 @@ def doDeletePartitionByRequest(intf, requestlist, partition,
if request:
state = isNotChangable(request, requestlist)
- if state is not None:
+
+ # If the partition is protected, we also can't delete it so specify a
+ # reason why.
+ if state is None and request.getProtected():
+ state = _("This partition is holding the data for the hard "
+ "drive install.")
+
+ if state:
if not quiet:
intf.messageWindow(_("Unable To Delete"),
_("You cannot delete this partition:\n\n") + state,