grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] grub-setup Modify the conditionality of the copy of the part


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [PATCH] grub-setup Modify the conditionality of the copy of the partition table
Date: Fri, 25 Mar 2011 23:55:32 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110303 Iceowl/1.0b1 Icedove/3.0.11

On 25.03.2011 23:13, Mario Limonciello wrote:
> +        * util/grub-setup.c: Conditionalize the partition map copy on floppy
> +          support, not on whether the target contains partitions.
> +
> +          Otherwise, the BIOS on Dell Latitude E series laptops will freeze 
> +          during POST if an invalid partition table is contained in the PBR
> +          of the active partition when GRUB is installed to a partition.
It's wrong to assume that no floppies contain partition tables. Also
--allow-floppy is usually used for USB sticks which sometimes appear as
floppies on some BIOSes and they pretty much contain the partition
table. Bottom line is: if you see a partition table: preserve it. But
it's ok to preserve this contents if floppy support is disabled even if
no partition table is discovered. A small logic lecture:

Floppy support is: allow_floppy || grub_util_biosdisk_is_floppy (dest_dev->disk)
Negation of it is either !(allow_floppy || grub_util_biosdisk_is_floppy 
(dest_dev->disk)) or !allow_floppy && !grub_util_biosdisk_is_floppy 
(dest_dev->disk), not what you wrote.

Please don't move around unrelated parts.


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]