Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MXjnL-0003N3-6h for mharc-grub-devel@gnu.org; Sun, 02 Aug 2009 18:44:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXjnJ-0003Mt-2Y for grub-devel@gnu.org; Sun, 02 Aug 2009 18:44:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXjnD-0003Mg-KP for grub-devel@gnu.org; Sun, 02 Aug 2009 18:44:43 -0400 Received: from [199.232.76.173] (port=59751 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXjnD-0003Md-EP for grub-devel@gnu.org; Sun, 02 Aug 2009 18:44:39 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:48371) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXjnC-0007iP-Q2 for grub-devel@gnu.org; Sun, 02 Aug 2009 18:44:39 -0400 Received: by fxm26 with SMTP id 26so519789fxm.42 for ; Sun, 02 Aug 2009 15:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tL+j7pVckR7lQEtQVEegmtGYAcE0Lw6AwWlwZeBs6uQ=; b=fkExrF6iDD4ujD8Eik3DGcqJqj9hpLHc4/lLmU2cPmA6u62J8wRyU9OQnJD2ACalQL SgqR1SG0u3sITs8pgBsrTkygHmthi6PLkoSLsEWAnCjdnNq9KUEi8ip0vzr3j9lPJisV N1/ZOWLBbuChCWQWOhRn1Qya4FxdOcUYr7AEk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UhgB3IRq4BqCmNVGs3GJqKOXszikzwTXEOLRecby6OxP1wA14VxIUWL8G+CqZahA7j VIaNMA6q/lf3LcW+wOCeWwmSOPsM5kKl96Xk1X4onjTJb2UoIuetoEAVh5lpScVsyLPq BPjLbp1oiQSRGjt/nasLpFe4GDA547Uf4YYqI= MIME-Version: 1.0 Received: by 10.204.97.204 with SMTP id m12mr1958705bkn.185.1249253077670; Sun, 02 Aug 2009 15:44:37 -0700 (PDT) In-Reply-To: <20090802222505.GI15139@thorin> References: <20090802220236.GG15139@thorin> <20090802222505.GI15139@thorin> Date: Mon, 3 Aug 2009 00:44:37 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] nested partitions X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Aug 2009 22:44:45 -0000 On Mon, Aug 3, 2009 at 12:25 AM, Robert Millan wrote: > On Mon, Aug 03, 2009 at 12:09:32AM +0200, Vladimir 'phcoder' Serbinenko w= rote: >> >> + =A0 =A0 =A0grub_device_close (dev); >> > >> > I don't think we should allow chainload at all in partitions other tha= n msdos >> > ones. =A0There's no existing use of this for other labels "in the wild= ", and we >> > shouldn't encourage it to appear IMO. >> Actually it's something which happens with GPT. Suppose you have an OS >> on your GPT which has no multiboot support. In this case you use >> gptsync to create a fake msdos partition map and boot your OS. > > So gpt could be the other exception because it is backward compatible wit= h > msdos labels (to some extent). > > But please let's not make a general rule out of this. =A0The chainloader = is > an implementation of the DOS MBR<->PBR boot protocol, which has been mimi= cked > by others but is still only available on msdos labels. =A0If someone trie= s it > on another partition label type, she should see an error. > > Btw, does this bugfix depend on the rest of nested partition changes? > Actually only superficially > + disk->partition =3D p->parent; this line would be =3D 0; without nestpart patch. If you want I can commit it separately. The following line is bogus: > + /* In i386-pc, the id is equal to the BIOS drive number. */ > + drive =3D (int) disk->id; It shouldn't have been here at all - it was written before introduction of biosnum. I won't resend the patch because of this but I corrected it in my local git > -- > Robert Millan > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git