From owner-freebsd-current@FreeBSD.ORG Tue Jan 21 11:19:19 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79AE6196; Tue, 21 Jan 2014 11:19:19 +0000 (UTC) Received: from forward10l.mail.yandex.net (forward10l.mail.yandex.net [IPv6:2a02:6b8:0:1819::a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2ECA01178; Tue, 21 Jan 2014 11:19:18 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward10l.mail.yandex.net (Yandex) with ESMTP id A58E0BA0ECA; Tue, 21 Jan 2014 15:19:14 +0400 (MSK) Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 3FDD1190071C; Tue, 21 Jan 2014 15:19:14 +0400 (MSK) Received: from 84.201.164.23-vpn.dhcp.yndx.net (84.201.164.23-vpn.dhcp.yndx.net [84.201.164.23]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id NlWEjdaRN2-JDNaYj6x; Tue, 21 Jan 2014 15:19:13 +0400 (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 54b15342-1337-4987-aabd-629469966c1f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1390303153; bh=NtnPmyYWtUNIg7PjtxVtV73kNxb1+F1kniDIx243uGA=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=GmFn91W17+mj8XbrPVv8URQvXZdo7VdvuJEdHbdIHDpxwrQVwzOdb07h7aLl+T35E DN72zgabziMtwYI+RKdEwiX82/JvmzgN0SDq8WF5MSgybmB7z/Ao8RimpadXTrL+Pi 1luF+jG5y+4xj3L3D/g5eQ2dk5Xo3KBpOzV4rp/g= Authentication-Results: smtp17.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <52DE5781.7090600@yandex.ru> Date: Tue, 21 Jan 2014 15:18:25 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Andriy Gapon , Thomas Hoffmann , freebsd-current Subject: Re: Problem updating bootcode on ZFS on root system with MBR References: <52DE3F6B.6050209@yandex.ru> <52DE4FD0.5030409@FreeBSD.org> In-Reply-To: <52DE4FD0.5030409@FreeBSD.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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, 21 Jan 2014 11:19:19 -0000 On 21.01.2014 14:45, Andriy Gapon wrote: >>> What do I need to do to get the boot2 code written to /dev/ada0s1a? >> >> This will work only if ada0s1a isn't in use. The debugflags trick works >> only for whole disk, i.e. for geoms with rank=1. Another way is >> calculate needed offset and write bootcode directly to ada0. > > > And ultimately we should extend our ZFS interface with an ioctl to write a blob > to a boot code area of a specified ZFS leaf vdev. This would the right way to > install zfsboot. Hi Andriy, do you have some patches to test? :-) -- WBR, Andrey V. Elsukov