From owner-freebsd-current@FreeBSD.ORG Wed Dec 3 00:19:57 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD4DD1065673 for ; Wed, 3 Dec 2008 00:19:57 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id A3E1E8FC1A for ; Wed, 3 Dec 2008 00:19:57 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id CF15073098; Wed, 3 Dec 2008 01:24:46 +0100 (CET) Date: Wed, 3 Dec 2008 01:24:46 +0100 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20081203002446.GA70507@onelab2.iet.unipi.it> References: <200812021457.mB2Evmha063418@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812021457.mB2Evmha063418@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: Subject: RFC - two more pending issues for boot0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 00:19:57 -0000 It has been brought to my attention that there are two more pending issues for the boot0 code: 1. allow booting from 'DOS Extended' partitions (type 0x5 and 0xf) These partition types are currently in the 'kill list' with no option to override them (other than poking into the bootsector). According to http://www.freebsd.org/cgi/query-pr.cgi?pr=70531 LILO and GRUB _can_ be installed in those partitions so it would make sense to allow them. The change is pretty trivial and safe (boot0 already allows booting from any unknown partition) and one can disable a particular partition using boot0cfg -m This is a trivial change (actually a simplification of the code), so I think it should go in unconditionally. 2. preserve the 'NT Disk UID', claimed to be used in Vista as well. see http://www.freebsd.org/cgi/query-pr.cgi?pr=127764 This change, even though trivial in terms of code, is a bit more intrusive as it requires to move the data area in boot0, and as a consequence requires a patch (though a trivial one) to boot0cfg to let it recognise and manipulate the boot sector. I have implemented this (in a form slightly different from the PR), and it can be conditionally compiled with -DNT_SERIAL , I plan to commit it, but not make it the default. I would like to know how useful people consider this feature. cheers luigi