From owner-freebsd-current@freebsd.org Thu Mar 10 10:49:39 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 1376EACA7C8; Thu, 10 Mar 2016 10:49:39 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A526AFFA; Thu, 10 Mar 2016 10:49:38 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id p65so22996439wmp.1; Thu, 10 Mar 2016 02:49:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=SaqzxM3gD9FMcY3XuDuE/wB/eM3gyDl/AxqTk+MkwNQ=; b=SFd9/A6Pg13WfXrf2QpDr8Z3a1TYFmecl6SrvWHaJjGu/3O/a4Uoy+vP60IwQRT1JB ID1eZpLl5fPeTWD0oR/nL8NBPwXhhFzUiuQdrN2cGuM8rRuNPZTGaU+ej/e+jYK1SiLt CIjiu0TGj5DeUs+zbRfiFZOaFt6TYtfrdVkkrfdeTj3hVMwnWTG3Q8YNavEH6e71ePuX +VSWBkHQRuX8fcLgBf8SLHfkVLIfNOwMS/UiwtvLigSWLeAEDA8K5Az9BvgwXJtdVAFB c7uO5Y6w3AFSHsEkl+lBlI5YUXYET9QZQwyKXaZYU8koeEsXSsPmmQPJ54RdniO7m55s 6eLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=SaqzxM3gD9FMcY3XuDuE/wB/eM3gyDl/AxqTk+MkwNQ=; b=GLtOsvoF7YLgXNebqiZQfrpfBgo21antaJV6eP3ITEyc3Phs9VrOWRIbcRfkUzCEU+ WFjJn0GxlBmQ5BuW9oZP+Vd17z9lvUeLYJYEc+8CQWwfvRT8h5vgfdu08fyZaw6a8lVI si+Zu3h4mm7TXyVSghhz5NGhfgIUDuVKG5kra8B56Qt5O/oOnSfx793VsP/1Tb6qg8Jd Oq+AruVQ2jheVNCH3EbY2Sm0OtmXPslSqvpQK+hCy7rVcDE4KoCdBRJFdKHtYkNFiP1R xtGoa/8tYZyINa/WBG5RVK6o8mMmA00akhWZaNkOjGMU88yXLMxH2Uy+AY8d+49OumGV A3UQ== X-Gm-Message-State: AD7BkJJM4+L3SLSIldLAkpweK+ftnQwlYhX8uJU90MpJgF0eaAsi52O8V4zIcR/9rS+A3Dc7a2y4FoicbM892A== MIME-Version: 1.0 X-Received: by 10.28.17.141 with SMTP id 135mr3266854wmr.48.1457606977028; Thu, 10 Mar 2016 02:49:37 -0800 (PST) Received: by 10.28.31.143 with HTTP; Thu, 10 Mar 2016 02:49:36 -0800 (PST) In-Reply-To: References: <56E045C8.1040000@vangyzen.net> Date: Thu, 10 Mar 2016 10:49:36 +0000 Message-ID: Subject: Re: EFI zfs loader and beadm? From: krad To: Andrey Fesenko Cc: Eric van Gyzen , "freebsd-hackers@freebsd.org" , freebsd-current X-Mailman-Approved-At: Thu, 10 Mar 2016 12:27:40 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Thu, 10 Mar 2016 10:49:39 -0000 Make sure you are running the latest snapshot of current or 10.3 as well, as the MFC commits were in early February for 10-stable On 9 March 2016 at 16:01, Andrey Fesenko wrote: > On Wed, Mar 9, 2016 at 6:48 PM, Eric van Gyzen wrote: > > 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 > > If remove efiwpool/ROOT/init/boot and copy his content on > efiwpool/ROOT/init my scheme work fine too. > /usr /var /home and other included in BE for consistent boot system > (CURRENT world may not boot with kernel other rev), and old home > snapshot sometimes useful for backup/restore > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >