From owner-freebsd-current@freebsd.org Thu Mar 10 15:11:11 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 B89E1ACB404; Thu, 10 Mar 2016 15:11:11 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 4954511BE; Thu, 10 Mar 2016 15:11:11 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id l68so32831211wml.1; Thu, 10 Mar 2016 07:11:11 -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=o0sEDbbUocEEe07HSk0K8gxre3V2u1IKObtqn6xyJe4=; b=pI1CVEO2+ynrqU7tP5Hfy6VyNfzQ2Gt7pdy1RINc2l0oa1gKdF9emb98wjRFFwoFiE q3oW1renG77Jyl281VhVxgF3hCJXVDfQbsU1LVzmXJUxeU+N5suqLuhhUYkyzwm+yrJ1 oXyJY7xcGn6v7TFlsFT63byBBPqeJEmxGYIhM8QT3YmrKP8q8kQ6SDvncKH+CDhJWvSV kKlbB7VAW3eNdnVINWy5A45Tu5FvHQ0l0Ls7CFvZrEB8DMbPCZa8FwFqWY8V1GLyLGDZ ohkwnupxemAz0WJviTAYi90iyJFe0URTOqkcyXoDo6pzY+ytz1Ibdd2EXrc3yKBltGw6 HRcA== 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=o0sEDbbUocEEe07HSk0K8gxre3V2u1IKObtqn6xyJe4=; b=MCXhqbqit4NDong+9XDj0o3UC5vfTMUwolXiDfkTzP12+XMQV3Y4XOZBdbpUCDOKQt x50MxJCElckSh26a7FPtVsPHhKQhm/F4I1yaXWhcWxZApCMLcoyUdZxifbV58y502m49 ngX5HRacqTluoYM3OiVk/HhU5MEDNr04uB7Ccekk+oSJCCwEtFcAEaCXrbdot7KCBLzg 6ANri4AS8yGEjBUoUQMYEYvUuVgbXXuj4hDyExl0CNoGjedoGUX15OQXuwaBZ3ORo0Y0 Bor97VxQY0msAL2F7oeENGIJ2MCiggx8UipWdDTPJTK/J8Gc953FYkU8EIbSgmxzhCpa gG9Q== X-Gm-Message-State: AD7BkJKHyzmjNMEn9Y0UcOIKYw+pdGTeolLaJUKNTiCR4TV6Elvm3O1CSHJKJulMge+qzyBy6yqRo1hQWnf/cw== MIME-Version: 1.0 X-Received: by 10.28.17.141 with SMTP id 135mr4854313wmr.48.1457622669650; Thu, 10 Mar 2016 07:11:09 -0800 (PST) Received: by 10.28.31.143 with HTTP; Thu, 10 Mar 2016 07:11:09 -0800 (PST) In-Reply-To: References: <56E045C8.1040000@vangyzen.net> Date: Thu, 10 Mar 2016 15:11:09 +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 15:19:43 +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 15:11:11 -0000 As Eric said you cant have /boot on a separate dataset as the whole loader bootstrap isnt designed too look for it on the dataset defined by bootfs. Remember no other datasets are mounted at that stage of the bootstrap. You could maybe bodge something by manually playing around with the bootfs property, symlinks and rootfs variables in the loader.conf. But why would you want to do this? It's more work and non standard, and will break a lot? On 10 March 2016 at 12:11, Andrey Fesenko wrote: > On Thu, Mar 10, 2016 at 2:55 PM, krad wrote: > > presumably it boots now? > > > > On 10 March 2016 at 11:01, Andrey Fesenko wrote: > >> > >> On Thu, Mar 10, 2016 at 1:49 PM, krad wrote: > >> > 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 > >> > > >> >> > >> >> 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 > >> >> _______________________________________________ > >> > >> % uname -a > >> FreeBSD x220.efi.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r296548: > >> Wed Mar 9 01:16:17 MSK 2016 > >> root@des.local:/usr/obj/usr/src/sys/X220 amd64 > > > > > > My current working config > % mount > efiwpool/ROOT/init0 on / (zfs, local, noatime, nfsv4acls) > devfs on /dev (devfs, local, multilabel) > efiwpool/ROOT/init0/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls) > efiwpool/ROOT/init0/usr on /usr (zfs, local, noatime, nfsv4acls) > efiwpool/ROOT/init0/usr/home on /usr/home (zfs, local, noatime, nfsv4acls) > efiwpool/ROOT/init0/var on /var (zfs, local, noatime, nfsv4acls) > efiwpool/ROOT/init0/var/crash on /var/crash (zfs, local, noatime, > noexec, nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/db on /var/db (zfs, local, noatime, noexec, > nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/db/pkg on /var/db/pkg (zfs, local, noatime, > nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/db/tlpkg on /var/db/tlpkg (zfs, local, > noatime, nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/empty on /var/empty (zfs, local, noatime, > noexec, nosuid, read-only, nfsv4acls) > efiwpool/ROOT/init0/var/log on /var/log (zfs, local, noatime, noexec, > nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/mail on /var/mail (zfs, local, noatime, > noexec, nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/run on /var/run (zfs, local, noatime, noexec, > nosuid, nfsv4acls) > efiwpool/ROOT/init0/var/tmp on /var/tmp (zfs, local, noatime, nosuid, > nfsv4acls) > > => 40 234441568 ada1 GPT (112G) > 40 1600 1 efi (800K) > 1640 234439960 2 freebsd-zfs (112G) > 234441600 8 - free - (4.0K) > > % 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/tmp mountpoint /tmp > local > .... > > This work fine, booted, beadm create new env, activate them, see boot > menu and select BE. > > % beadm list > BE Active Mountpoint Space Created > init - - 420.7M 2016-03-09 02:57 > init0 NR / 35.9G 2016-03-10 05:00 > > If i'm add separate dataset for /boot (efiwpool/ROOT/init0/boot) > system not booted, efi loader (first stage) see only my pool, not > found /boot/loader.efi >