From owner-freebsd-current@FreeBSD.ORG Tue Nov 12 02:18:51 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C98565E0 for ; Tue, 12 Nov 2013 02:18:51 +0000 (UTC) Received: from smtpauth2.wiscmail.wisc.edu (wmauth2.doit.wisc.edu [144.92.197.222]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9D2A93711 for ; Tue, 12 Nov 2013 02:18:51 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MW400G00OXLGC00@smtpauth2.wiscmail.wisc.edu> for freebsd-current@freebsd.org; Mon, 11 Nov 2013 20:18:44 -0600 (CST) X-Spam-PmxInfo: Server=avs-2, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.11.12.20314, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from comporellon.tachypleus.net (adsl-76-208-69-44.dsl.mdsnwi.sbcglobal.net [76.208.69.44]) by smtpauth2.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MW4007S8P37RZ10@smtpauth2.wiscmail.wisc.edu> for freebsd-current@freebsd.org; Mon, 11 Nov 2013 20:18:43 -0600 (CST) Message-id: <52819002.3050908@freebsd.org> Date: Mon, 11 Nov 2013 20:18:42 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 To: freebsd-current@freebsd.org Subject: Re: Default MBR boot "manager" References: <33391A36-2E7A-473B-87E0-88BDE1AC97D1@fisglobal.com> <52814CD8.5020708@freebsd.org> <528174BC.60001@freebsd.org> In-reply-to: <528174BC.60001@freebsd.org> X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.16 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: Tue, 12 Nov 2013 02:18:51 -0000 On 11/11/13 18:22, Julian Elischer wrote: > On 11/11/13, 1:32 PM, Nathan Whitehorn wrote: >> On 11/11/13 15:19, Teske, Devin wrote: >>> Topic: Lenovo Laptops and bsdinstall zfsboot with MBR layout... >>> >>> Should we do the quick patch to change the default >>> from /boot/boot0 to /boot/mbr: >>> >>> Index: zfsboot >>> =================================================================== >>> --- zfsboot (revision 258016) >>> +++ zfsboot (working copy) >>> @@ -764,7 +764,7 @@ zfs_create_diskpart() >>> # >>> f_eval_catch $funcname gpart "$GPART_CREATE" mbr >>> \$disk || >>> return $FAILURE >>> - f_eval_catch $funcname gpart "$GPART_BOOTCODE" >>> /boot/boot0 \ >>> + f_eval_catch $funcname gpart "$GPART_BOOTCODE" >>> /boot/mbr \ >>> \$disk || return $FAILURE >>> >>> # >>> >>> That would fix things for Lenovo laptops for the next >>> release until I finish up the bootcode selection menu. >>> I'd like to take my time in making sure Allan and I design >>> a worthy bootcode selection menu. >> >> This patch looks good (I don't remember why it was boot0 in the first >> place). I think gpart automatically installs something like /boot/mbr >> by default, so I'd be interested to know if making the diff purely >> negative still works. >> >> On another note, I think we should move away from a selector. Right >> now, we have three kinds of boot code: >> 1. ZFS boot code >> 2. UFS boot code >> 3. boot0 > > you forget network booting. > > That isn't something written to disk, though (unless you are doing something really weird), so probably isn't relevant for a partitioning tool. -Nathan