All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: Mario Limonciello <mario_limonciello@dell.com>
Cc: grub-devel@gnu.org, Colin Watson <cjwatson@ubuntu.com>
Subject: Re: [PATCH] grub-setup Modify the conditionality of the copy of the partition table
Date: Fri, 25 Mar 2011 23:55:32 +0100	[thread overview]
Message-ID: <4D8D1D64.2040801@gmail.com> (raw)
In-Reply-To: <4D8D1397.5030802@dell.com>

[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2011-03-25 22:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-25 22:13 [PATCH] grub-setup Modify the conditionality of the copy of the partition table Mario Limonciello
2011-03-25 22:55 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2011-03-25 23:31   ` Colin Watson
2011-03-26  0:37     ` Mario Limonciello

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D8D1D64.2040801@gmail.com \
    --to=phcoder@gmail.com \
    --cc=cjwatson@ubuntu.com \
    --cc=grub-devel@gnu.org \
    --cc=mario_limonciello@dell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.