From owner-freebsd-current@FreeBSD.ORG Tue Nov 17 19:24:34 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 36B821065772 for ; Tue, 17 Nov 2009 19:24:34 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-iw0-f190.google.com (mail-iw0-f190.google.com [209.85.223.190]) by mx1.freebsd.org (Postfix) with ESMTP id F1CB68FC0A for ; Tue, 17 Nov 2009 19:24:33 +0000 (UTC) Received: by iwn28 with SMTP id 28so281759iwn.3 for ; Tue, 17 Nov 2009 11:24:33 -0800 (PST) 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:cc:content-type :content-transfer-encoding; bh=MRLWLzPS4fa6Xguhyxr9C+ac48LP8Sf3uV1PU9y3XOI=; b=vvSeR8NcEFNZ2R3/hbzB6SVol4BaDmTfGQdFAHCD653+VThxD2s6fXbq1CNWHg0k6P mVMCBi5SRO7EcyHRImGWr06ei2de7Wpy2RyL60ddnzdXi5WbACXAP1wP0MarlDP8UWUn Hf1hdI8KggTFUw9Kslvci/vypHnAq4HmM491k= 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 :cc:content-type:content-transfer-encoding; b=j20jqVztvf8JNlr+l3zpZcZ/j/kgQ9cQaivSwjabgONShEaJ44TMbnDc5SdvuJeGzX UFhdgFhcLpBK4g9jcQU97i6YKGi0MV33kBN4y2qrkL11888wuIzEey2G4twe+AeEyrtW F6DTbNwXUVTm3Vw+/ywQ7GK69nhI8Hc6xWsOI= MIME-Version: 1.0 Received: by 10.231.83.75 with SMTP id e11mr2167291ibl.11.1258483905318; Tue, 17 Nov 2009 10:51:45 -0800 (PST) In-Reply-To: References: <200911171017.58140.jhb@freebsd.org> Date: Tue, 17 Nov 2009 12:51:45 -0600 Message-ID: <790a9fff0911171051u167c40fpf62deb8102fa0468@mail.gmail.com> From: Scot Hetzel To: Thomas Backman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 17 Nov 2009 19:24:34 -0000 On Tue, Nov 17, 2009 at 9:26 AM, Thomas Backman wrot= e: > On Nov 17, 2009, at 4:17 PM, John Baldwin wrote: > >> This patch is a workaround to enabling ZFS support by default in the boo= t >> loader. =A0It enables building a loader.zfs which is a ZFS-enabled loade= r and >> changing zfsboot and gptzfsboot to use /boot/loader.zfs instead >> of /boot/loader. =A0I have only tested that things built ok, I have not >> boot-tested it as I don't have ZFS setup anywhere. =A0The patch is avail= able at >> http://www.FreeBSD.org/~jhb/loader.zfs/. =A0You 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. > If I may ask (and sorry for my ignorance, but): what problem does this wo= rkaround solve? This solution fixes boot issues on systems that are using ZFS to boot FreeBSD. Currently, if such a system uses the freebsd-update service to update the system, it receives a /boot/loader that doesn't support booting from a ZFS root and breaks the boot process. It also makes it easier to setup a Root On ZFS system, as you will no longer need to add LOADER_ZFS_SUPPORT to /etc/src.conf and rebuilding the /boot/loader. Scot