From owner-freebsd-current@freebsd.org Wed Mar 9 15:48:27 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34FB4AC9820; Wed, 9 Mar 2016 15:48:27 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146]) by mx1.freebsd.org (Postfix) with ESMTP id E8584F41; Wed, 9 Mar 2016 15:48:26 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from sweettea.beer.town (unknown [76.164.8.130]) by smtp.vangyzen.net (Postfix) with ESMTPSA id 7B96D56A7A; Wed, 9 Mar 2016 09:48:25 -0600 (CST) Subject: Re: EFI zfs loader and beadm? To: Andrey Fesenko , "freebsd-hackers@freebsd.org" , freebsd-current References: From: Eric van Gyzen X-Enigmail-Draft-Status: N1110 Message-ID: <56E045C8.1040000@vangyzen.net> Date: Wed, 9 Mar 2016 09:48:24 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 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, 09 Mar 2016 15:48:27 -0000 On 03/09/2016 09:40, Andrey Fesenko wrote: > Hello, > I'm test EFI boot ZFSroot with BE, this not support now? > svn 2965489 > > If i build simplest system > http://blog.multiplay.co.uk/2015/12/freebsd-10-2-release-efi-zfs-root-boot/ > > # zfs get -r mountpoint efifpool > NAME PROPERTY VALUE SOURCE > efifpool mountpoint /mnt/efifpool default > > => 40 30712240 da0 GPT (15G) > 40 1600 1 efi (800K) > 1640 30710632 2 freebsd-zfs (15G) > 30712272 8 - free - (4.0K) > > system boot nice > > If make BE env > > # zfs get -r mountpoint efiwpool > NAME PROPERTY VALUE SOURCE > efiwpool mountpoint none local > efiwpool/ROOT mountpoint none > inherited from efiwpool > efiwpool/ROOT/init mountpoint legacy local > efiwpool/ROOT/init@init mountpoint - - > efiwpool/ROOT/init/boot mountpoint /media/boot local > efiwpool/ROOT/init/tmp mountpoint /media/tmp local > efiwpool/ROOT/init/usr mountpoint /media/usr local > efiwpool/ROOT/init/usr@init mountpoint - - > efiwpool/ROOT/init/usr/home mountpoint /media/usr/home > inherited from efiwpool/ROOT/init/usr > efiwpool/ROOT/init/usr/home@init mountpoint - - > efiwpool/ROOT/init/var mountpoint /media/var local > efiwpool/ROOT/init/var@init mountpoint - - > efiwpool/ROOT/init/var/crash mountpoint /media/var/crash > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/db mountpoint /media/var/db > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/db/pkg mountpoint /media/var/db/pkg > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/empty mountpoint /media/var/empty > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/log mountpoint /media/var/log > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/mail mountpoint /media/var/mail > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/run mountpoint /media/var/run > inherited from efiwpool/ROOT/init/var > efiwpool/ROOT/init/var/tmp mountpoint /media/var/tmp > inherited from efiwpool/ROOT/init/var > > system not boot. > > Not found /boot/loader.efi (in BE system real path > efiwpool/ROOT/init/boot/loader.efi) if copy this efiwpool/ROOT/init > (blank in BE system) loader found this (but not found /boot/kernel) I > can copy this and get a similar system > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192184#c15 (with out > msdos kernel part), but this ruin BE update mechanism Your dataset hierarchy is not what beadm expects. Specifically, you have /boot separate from /, which I imagine is causing your problem. /boot should be part of /. Also, you have several file systems in the BE that are usually not in it; I doubt this is part of your boot failure, though. For reference, here is my layout, which is mostly the same as the default installation: NAME USED AVAIL REFER MOUNTPOINT zroot 117G 108G 96K none zroot/ROOT 14.8G 108G 96K none zroot/ROOT/10.2 444K 108G 6.35G / zroot/ROOT/103beta 14.8G 108G 8.75G / zroot/ROOT/103beta1 8K 108G 8.17G / zroot/ROOT/103beta3 8K 108G 8.75G / zroot/home 97.8G 108G 94.9G /home zroot/usr 3.36G 108G 96K /usr zroot/usr/ports 985M 108G 736M /usr/ports zroot/usr/src 2.40G 108G 2.19G /usr/src zroot/var 2.19M 108G 96K /var zroot/var/audit 96K 108G 96K /var/audit zroot/var/crash 96K 108G 96K /var/crash zroot/var/log 1.15M 108G 420K /var/log zroot/var/mail 360K 108G 120K /var/mail zroot/var/tmp 416K 108G 144K /var/tmp Eric