From owner-freebsd-current@FreeBSD.ORG Sun Nov 22 18:27:40 2009 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 BF4B2106566B; Sun, 22 Nov 2009 18:27:40 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 885258FC1B; Sun, 22 Nov 2009 18:27:40 +0000 (UTC) Received: from [192.168.1.4] (adsl-154-218-170.ard.bellsouth.net [72.154.218.170]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id nAMIRcwN052433 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 22 Nov 2009 13:27:38 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: John Baldwin In-Reply-To: <200911171017.58140.jhb@freebsd.org> References: <200911171017.58140.jhb@freebsd.org> Content-Type: text/plain Organization: FreeBSD Date: Sun, 22 Nov 2009 12:27:32 -0600 Message-Id: <1258914452.2344.18.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: current@FreeBSD.org Subject: Re: [PATCH] Build a separate ZFS-enabled loader.zfs 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: Sun, 22 Nov 2009 18:27:40 -0000 On Tue, 2009-11-17 at 10:17 -0500, John Baldwin wrote: > This patch is a workaround to enabling ZFS support by default in the boot > loader. It enables building a loader.zfs which is a ZFS-enabled loader and > changing zfsboot and gptzfsboot to use /boot/loader.zfs instead > of /boot/loader. I have only tested that things built ok, I have not > boot-tested it as I don't have ZFS setup anywhere. The patch is available at > http://www.FreeBSD.org/~jhb/loader.zfs/. You will also need to copy > the 'loader.zfs/Makefile' file from that URL into a new > sys/boot/i386/loader.zfs directory after applying the patch. Ok, I made a few changes, but this is tested and working for zfs. I opted to change the loader name to zfsloader, since we tend to prefix rather than suffix boot/loader bits and I thought that loader.zfs.old looked ugly. The following should be a complete patch against -CURRENT. Note that you do need to reinstall bootcode (zfsboot/gptzfsboot) for this to boot the correct loader. http://people.freebsd.org/~rnoland/0001-Create-a-seperate-zfs-enabled-loader.patch robert. -- Robert Noland FreeBSD