From f982142e4c93077c9ea8ba0359ffc9129ab0b6a8 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 24 Apr 2012 11:09:05 +0200 Subject: [PATCH] remove not working check on uefi, fix messager for Lenovo --- usr/share/archboot/installer/setup | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 5a0bbfa2f..1746885c4 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -858,8 +858,8 @@ set_guid() { ## Lenono BIOS-GPT issues - Arch Forum - https://bbs.archlinux.org/viewtopic.php?id=131149 , https://bbs.archlinux.org/viewtopic.php?id=133330 , https://bbs.archlinux.org/viewtopic.php?id=138958 ## Lenono BIOS-GPT issues - in Fedora - https://bugzilla.redhat.com/show_bug.cgi?id=735733, https://bugzilla.redhat.com/show_bug.cgi?id=749325 , http://git.fedorahosted.org/git/?p=anaconda.git;a=commit;h=ae74cebff312327ce2d9b5ac3be5dbe22e791f09 GUIDPARAMETER="" - DIALOG --defaultno --yesno "Do you want to use GUID Partition Table (GPT)?\n\nIt is a standard for the layout of the partition table on a physical hard disk. Although it forms a part of the Unified Extensible Firmware Interface (UEFI) standard (replacement for the PC BIOS firmware), it is also used on some BIOS systems because of the limitations of MBR aka msdos partition tables, which restrict maximum disk size to 2 TiB.\n\nWindows XP and earlier Windows systems cannot (without hacks) read or write to drives formatted with a GUID partition table, however, Vista and Windows 7 and later versions include the capability to use GPT for non-boot aka data disks (only UEFI systems can boot Windows from GPT disks).\n\nAttention:\n- Please check if your other operating systems have GPT support!\n- Use this option for a GRUB2 setup, which should support LVM, RAID etc.,\n which doesn't fit into the usual 30k MS-DOS post-MBR gap.\nNOTE: BIOS-GPT boot may not work in some Lenovo systems (irrespective of the -bootloader used). " 0 0 && GUIDPARAMETER="yes" + DIALOG --defaultno --yesno "Do you want to use GUID Partition Table (GPT)?\n\nIt is a standard for the layout of the partition table on a physical hard disk. Although it forms a part of the Unified Extensible Firmware Interface (UEFI) standard (replacement for the PC BIOS firmware), it is also used on some BIOS systems because of the limitations of MBR aka msdos partition tables, which restrict maximum disk size to 2 TiB.\n\nWindows XP and earlier Windows systems cannot (without hacks) read or write to drives formatted with a GUID partition table, however, Vista and Windows 7 and later versions include the capability to use GPT for non-boot aka data disks (only UEFI systems can boot Windows from GPT disks).\n\nAttention:\n- Please check if your other operating systems have GPT support!\n- Use this option for a GRUB2 setup, which should support LVM, RAID etc.,\n which doesn't fit into the usual 30k MS-DOS post-MBR gap.\n- BIOS-GPT boot may not work in some Lenovo systems (irrespective of the\n + bootloader used). " 0 0 && GUIDPARAMETER="yes" } # Get a list of available disks for use in the "Available disks" dialogs. This @@ -1940,13 +1940,8 @@ check_gpt() { [[ "$(${_BLKID} -p -i -o value -s PTTYPE ${DISC})" == "gpt" ]] && GUID_DETECTED="1" if [[ "${GUID_DETECTED}" == "" ]]; then - if [[ "${CHECK_UEFISYS_PART}" == "1" ]]; then - ## For UEFI systems force gpt conversion - sgdisk --mbrtogpt ${DISC} > ${LOG} && GUID_DETECTED="1" - else - DIALOG --defaultno --yesno "Setup detected no GUID (gpt) partition table on ${DISC}.\nDo you want to convert the existing MBR table in ${DISC} to a GUID (gpt) partition table?\nNOTE: BIOS-GPT boot may not work in some Lenovo systems (irrespective of the bootloader used). " 0 0 || return 1 - sgdisk --mbrtogpt ${DISC} > ${LOG} && GUID_DETECTED="1" - fi + DIALOG --defaultno --yesno "Setup detected no GUID (gpt) partition table on ${DISC}.\n\nDo you want to convert the existing MBR table in ${DISC} to a GUID (gpt) partition table?\n\nNOTE:\nBIOS-GPT boot may not work in some Lenovo systems (irrespective of the bootloader used). " 0 0 || return 1 + sgdisk --mbrtogpt ${DISC} > ${LOG} && GUID_DETECTED="1" fi if [[ "${GUID_DETECTED}" == "1" ]]; then