Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=64f387a79bf75fc16d85f2f444c4b62e5e74a440
commit 64f387a79bf75fc16d85f2f444c4b62e5e74a440 Author: James Buren <[email protected]> Date: Tue Mar 5 02:36:35 2013 -0600 refuse to continue with installer if there are no partition tables warn user about proceeding without anywhere to store GRUB diff --git a/new/fwsetup/ui_newt.c b/new/fwsetup/ui_newt.c index 99de353..4dc42d9 100644 --- a/new/fwsetup/ui_newt.c +++ b/new/fwsetup/ui_newt.c @@ -1340,6 +1340,31 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) } else if(es.reason == NEWT_EXIT_COMPONENT && es.u.co == next) { + bool empty = true; + bool bios = true; + + for( i = 0 ; devices[i] != 0 ; ++i ) + { + struct disk *disk = disks[i]; + + if(disk == 0 || (k = disk_partition_get_count(disk)) == 0) + continue; + + empty = false; + + if(bios) + bios = disk_can_store_bios_grub(disk); + } + + if(empty) + { + ui_dialog_text(NO_TABLE_TITLE,NO_TABLE_TEXT); + continue; + } + + if(!bios && !ui_dialog_yesno(NO_GRUB_BIOS_TITLE,NO_GRUB_BIOS_TEXT,true)) + continue; + break; } } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
