summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-04-17 22:57:37 +0000
committerJeremy Katz <katzj@redhat.com>2007-04-17 22:57:37 +0000
commit0cdce279d6020b6f510f31df086a3a2fd6569988 (patch)
treefbbbe7546e6ccabfae3d2dec74ab1386780452cc /partedUtils.py
parent1deb727691647a6733d9ed508f8e0ef8b0ec2677 (diff)
downloadanaconda-0cdce279d6020b6f510f31df086a3a2fd6569988.tar.gz
anaconda-0cdce279d6020b6f510f31df086a3a2fd6569988.tar.xz
anaconda-0cdce279d6020b6f510f31df086a3a2fd6569988.zip
2007-04-17 Jeremy Katz <katzj@redhat.com>
* partedUtils.py (DiskSet.openDevices): Better message and give option to reboot or continue anyway in the too many partitions case
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/partedUtils.py b/partedUtils.py
index 24e72855f..14efb49fe 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -1134,17 +1134,21 @@ class DiskSet:
filter_partitions(disk, validateFsType)
# check for more than 15 partitions (libata limit)
- if drive.startswith('sd'):
- if disk.get_last_partition_num() > 15:
- intf.messageWindow(_("Error"),
+ if drive.startswith('sd') and disk.get_last_partition_num() > 15:
+ rc = intf.messageWindow(_("Warning"),
_("The drive %s has more than 15 "
- "partitions on it. The libata "
+ "partitions on it. The SCSI "
"subsystem in the Linux kernel does "
"not allow for more than 15 partitons "
- "at this time. To use this drive in "
- "Linux, you will need to reduce the "
- "number of partitions."))
- return
+ "at this time. You will not be able "
+ "to use any partitions beyond "
+ "this in %s") %(drive, productName),
+ type="custom",
+ custom_buttons = [_("_Reboot"),
+ _("_Continue")],
+ custom_icon="warning")
+ if rc == 1:
+ sys.exit(0)
# check that their partition table is valid for their architecture
ret = checkDiskLabel(disk, intf)