From owner-freebsd-current@freebsd.org Wed Mar 9 16:01:25 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 589DBAC9F2C; Wed, 9 Mar 2016 16:01:25 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (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 16E38FAE; Wed, 9 Mar 2016 16:01:25 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by mail-qg0-x231.google.com with SMTP id u110so45118138qge.3; Wed, 09 Mar 2016 08:01:25 -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=c6EGN4igNJ/bNDZBFoyVjcGpox0c3AR/KnFC9B5QzZA=; b=EjH+GHv64rFjJiquM2yM9m57ZZV892gTMTPmbMT55xWBlesUcm55sNwZcKqEk98I9u SrZSxHitGcYwYrHdY67QxWrL79rf5vX4jO8JtM6gLOzOF0A0D7CJrVruHHTxONDPWeMn MWizC8VUJVtYMXXG9V+TGHDLMKFDZlMQpYLvrcq/i397jTYQqfkSlMb5FUNO99SRVoPp PmQXYIpboUSvOzZ4H0ofd8QONzhsoRm2eLwCVwHNNTlZv7vJnj0y5Qflrx/JRYv5pbj2 HpZbBplsAODGwSgaqFJxjim5NpJgNf1+g7OKlkHT6fKHAOHycYVzzzQraPTDa8d2kTwd 3hiA== 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=c6EGN4igNJ/bNDZBFoyVjcGpox0c3AR/KnFC9B5QzZA=; b=g1HqmkF2P3yOvXDysYKMbC+UmaOJ4g2VgArS7778s+BvBtYLCmUkzf0uR2k7Jor8kS 7bhFFMuCmzEQ2u+is1xvfjTyMq0kxPvrMsXvm46iQd9ZDx5Fpcj63v2wQx50Ux9hPyOv Iaah0OP+qUxJYCos+PSnNnCNC4IVdRxUbtcsEb7rVuB911OKt/1+UDpQutsCMiV2A6AJ UpT1k9lr+zqjS0/MTF/YnINNOYhuspcdn2KprI78JjNwPTBYNpripq6iNZY92Eb2F5OD IGGZ9FTMsfJdifj/TdQccDCbmFsrb2EOAat27I9xljqOCPsTEAtzoRfQAgoHyQl/SOX8 FWaw== X-Gm-Message-State: AD7BkJJk0GeQX3qOOV7y/wn3rFCpYmscKSc06oudIOrVoxW/mj8+BBUQjPjStZPrGZ8MYk8dnizaAQlddr861w== MIME-Version: 1.0 X-Received: by 10.140.168.85 with SMTP id o82mr40470531qho.75.1457539284205; Wed, 09 Mar 2016 08:01:24 -0800 (PST) Received: by 10.55.106.5 with HTTP; Wed, 9 Mar 2016 08:01:24 -0800 (PST) In-Reply-To: <56E045C8.1040000@vangyzen.net> References: <56E045C8.1040000@vangyzen.net> Date: Wed, 9 Mar 2016 19:01:24 +0300 Message-ID: Subject: Re: EFI zfs loader and beadm? From: Andrey Fesenko To: Eric van Gyzen Cc: "freebsd-hackers@freebsd.org" , freebsd-current Content-Type: text/plain; charset=UTF-8 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 16:01:25 -0000 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