summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-01-08 23:51:15 +0000
committerMike Fulbright <msf@redhat.com>2001-01-08 23:51:15 +0000
commit5691c18b5d559d6cdf695ca376385007e574387e (patch)
tree194f3bd17d191a24f04c47e7687ba97986b56a02 /textw
parent6f670ec8ae8d1a246c66954100236c90e23ea96c (diff)
downloadanaconda-5691c18b5d559d6cdf695ca376385007e574387e.tar.gz
anaconda-5691c18b5d559d6cdf695ca376385007e574387e.tar.xz
anaconda-5691c18b5d559d6cdf695ca376385007e574387e.zip
Added support for LBA32 when we right out lilo.conf iff we need it because boot partition is over 1023 cyl. Also added warning if you put boot > 1023 cyl and we dont seem to be able to detect edd support on this system
Diffstat (limited to 'textw')
-rw-r--r--textw/partitioning_text.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/textw/partitioning_text.py b/textw/partitioning_text.py
index 714c25b5e..e0230b367 100644
--- a/textw/partitioning_text.py
+++ b/textw/partitioning_text.py
@@ -341,3 +341,38 @@ class LoopSizeWindow:
return INSTALL_NOOP
+class LBA32WarningWindow:
+ def __call__(self, dir, screen, todo):
+
+ if dir == -1:
+ return INSTALL_NOOP
+
+ # check if boot partition is above 1023 cyl limit
+ if iutil.getArch() != "i386":
+ return INSTALL_NOOP
+
+ ButtonChoiceWindow(screen, "", "%s" % todo.fstab.getBootPartitionMaxCyl(),
+ buttons = [ _("OK") ])
+
+ if todo.fstab.getBootPartitionMaxCyl() > 1023 and not todo.fstab.edd:
+ rc = ButtonChoiceWindow(screen, _("Boot Partition Warning"),
+ _("You have put the partition containing the kernel (the "
+ "boot partition) above the 1023 cylinder limit, and "
+ "it appears that this systems BIOS does not support "
+ "booting from above this limit. Proceeding will "
+ "most likely make the system unable to reboot into "
+ "Linux.\n\n"
+ "Are you sure you want to proceed?"),
+ [ (_("Yes"), "yes") , (_("No"), "no") ], width = 50,
+ help = "lba32warning")
+
+ if rc == "no":
+ return INSTALL_BACK
+ else:
+ return INSTALL_OK
+ else:
+ return INSTALL_NOOP
+
+
+
+