From owner-freebsd-current@freebsd.org Sun May 22 20:15:31 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 CB7FAB46C6E for ; Sun, 22 May 2016 20:15:31 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (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 57D451B00; Sun, 22 May 2016 20:15:31 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id i142so49192202wmf.0; Sun, 22 May 2016 13:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=yHNWSBcnqlHksNn0nFW2KmI5V7VIAe8aklIuSxlcfd8=; b=fTY9WQdmZwLcVuOglw6hYP7XEo86tNFxZfiejqZ/KJzMKpahz1fEXn1BThZKkh66V1 LzMxsfs8jS9yk4hdvwPGwDbhq003jT3OiBqEVa7+SFtByC/h7KTjA2q3X3IqOchdopnR ppbwUd9mvIJiaGC/zRU+qOmCxhh+pxyN/Gs6f7LukXT0IjTB+tzkxMIWyCsXypWyhh8X X91vGV2VfaqugBLOBCmoDAPgMUeVVEtPi1+AVTevtu+Nx7lTOdwb/mz5r1gmc9z4nt2H mQUKOJ0FAQ09oP/+vq/iOgfXuncnDY/Avhd71L5ffqouojQ8Nh3iGASf+o9SI/7m71Qt 3bbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to; bh=yHNWSBcnqlHksNn0nFW2KmI5V7VIAe8aklIuSxlcfd8=; b=GnVs7twiD9CvlA6seMzwb5q+Ohq2i3zElZclfqhcHI8NanJEUzHFGttNU4VWchXZG/ KDX+Evw0P32uBIxb0P1Vp6R+vCOm8mtch029wcLH6SKAShWojWO2kafoqC42mYXIZJ/b nmE+/ep0YCGo+84s3X+Tq5TFJnbqvDqAyXPbbwK9ow6ro3rXEzQ7uOkzmtuHK8SUt209 hyKm94KBU72eLSkT4p75gJgB8NtLNIU34axTSj/Xz489JengQrMymyaQXGzrRwRQYAZs arPGPlkoBpinGRmw9IFyD7yHgToQywdpGoP1ataY/ydIJTMDliEurL43myDKEzesw6yA fTRQ== X-Gm-Message-State: AOPr4FU6Ksl45jruPjEBGx6RWFNS9fk1kBwQI3hKS8aZVF3JTQBrZP0rRYn43OHElP+N+g== X-Received: by 10.28.152.19 with SMTP id a19mr13243608wme.60.1463948128749; Sun, 22 May 2016 13:15:28 -0700 (PDT) Received: from ?IPv6:2001:980:d7ed:1:3265:ecff:fe8f:d3ec? ([2001:980:d7ed:1:3265:ecff:fe8f:d3ec]) by smtp.googlemail.com with ESMTPSA id i190sm9893579wmf.10.2016.05.22.13.15.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 May 2016 13:15:28 -0700 (PDT) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Subject: Re: ZFS on root, beadm, and the /boot symlink To: Allan Jude , freebsd-current@freebsd.org References: <20160522184113.GU19887@gmail.com> <6ff9950d-2b43-4799-9812-46e081d2b72b@freebsd.org> From: =?UTF-8?Q?Ren=c3=a9_Ladan?= Message-ID: <77cd8159-a476-4284-7fa5-2daae2ecf67f@freebsd.org> Date: Sun, 22 May 2016 22:15:11 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <6ff9950d-2b43-4799-9812-46e081d2b72b@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IPkumnChpd2D9akAkrRAgLCP4k1vGBtv8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Sun, 22 May 2016 20:15:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IPkumnChpd2D9akAkrRAgLCP4k1vGBtv8 Content-Type: multipart/mixed; boundary="lhCDXeksPQHFk4IuutsVnnXmemOXHDf2q" From: =?UTF-8?Q?Ren=c3=a9_Ladan?= To: Allan Jude , freebsd-current@freebsd.org Message-ID: <77cd8159-a476-4284-7fa5-2daae2ecf67f@freebsd.org> Subject: Re: ZFS on root, beadm, and the /boot symlink References: <20160522184113.GU19887@gmail.com> <6ff9950d-2b43-4799-9812-46e081d2b72b@freebsd.org> In-Reply-To: <6ff9950d-2b43-4799-9812-46e081d2b72b@freebsd.org> --lhCDXeksPQHFk4IuutsVnnXmemOXHDf2q Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 05/22/16 21:11, Allan Jude wrote: > On 2016-05-22 14:41, Randy Westlund wrote: >> My system was installed from 10.1 or 10.2 with root on ZFS and geli, b= ut >> now it tracks current. It is not an EFI system. I'm trying to get bo= ot >> environments to work, but the /boot symlink is throwing me off. >> >> I have two pools from the installer's layout; a small bootpool and >> zroot. The bootpool mounts at /bootpool and /boot is a symlink to it.= >> >>> randy@mako /> zfs get mountpoint bootpool >>> NAME PROPERTY VALUE SOURCE >>> bootpool mountpoint /bootpool local >>> >>> randy@mako /> ls -al /boot >>> lrwxr-xr-x 1 root wheel 13 Aug 12 2015 /boot -> bootpool/boot >> >> When I try to activate a boot environment, I get this error: >> >>> root@mako:/ # beadm activate r300358 >>> cp: /tmp/BE-r300358.FS6Xo6ot/boot/zfs/zpool.cache: No such file or di= rectory >> >> Because the new boot environment has a symlink to an empty directory: >> >>> randy@mako /> ls -al /tmp/BE-r300358.FS6Xo6ot/boot >>> lrwxr-xr-x 1 root wheel 13 Aug 12 2015 /tmp/BE-r300358.FS6Xo6ot/b= oot -> bootpool/boot >>> >>> randy@mako /> ls -al /tmp/BE-r300358.FS6Xo6ot/bootpool >>> total 9 >>> drwxr-xr-x 2 root wheel 2 Aug 18 2015 . >>> drwxr-xr-x 21 root wheel 29 May 21 16:23 .. >> >> Mergemaster complains about the /boot symlink as well. >> >> I'm not sure what the cachefile does or why it's there. It has a rece= nt >> modification time, but neither pool seems to reference it. >> >>> randy@mako /> zpool get cachefile zroot >>> NAME PROPERTY VALUE SOURCE >>> zroot cachefile - default >> >>> randy@mako /> zpool get cachefile bootpool >>> NAME PROPERTY VALUE SOURCE >>> bootpool cachefile - default >> >>> randy@mako /> ls -al /boot/zfs/zpool.cache >>> -rw-r--r-- 1 root wheel 2512 May 21 16:23 /boot/zfs/zpool.cache >> >> What's the proper way to handle the /boot symlink with beadm? >> >> Randy >> >=20 > It is not possible to use boot environments when you have a separate > bootpool. This is the motivation for my recent work to implement GELI i= n > boot2 and loader, to allow you to combine GELI encryption with ZFS boot= > environments, which previously required a second unencrypted pool for > the loader and kernel. >=20 Ah, I ran into this as well. I installed FreeBSD in UEFI mode from ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/11.0/ which creates a separate boot pool as described above. Although creating the new boot environment went fine, upgrading that to a pkgbase install with the new boot environment jailed failed when installing the FreeBSD-runtime package because that installs /boot/loader.efi and /boot is a dangling symbolic link in that jail. Regards, Ren=E9 --lhCDXeksPQHFk4IuutsVnnXmemOXHDf2q-- --IPkumnChpd2D9akAkrRAgLCP4k1vGBtv8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJXQhNPXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxMDFBNzE2QjE2MkIwMEU1NUJFREVBMDVB REJCRjg2MTBBMzc4OUI3AAoJEK27+GEKN4m3up8QAI5DlPlSoATQ74mkM0fUtQLl MxnEHxRpR//9qJ1+Vra4eG3ie5BzhfItFdb8oFRI2LFiiAJGX1rwVxrziRoqK3nH YQxn3R8a1i4ljPEPxAmY1LuhI94EdeFvUAOiAi/bFFLfHbkd7qF++OqGz7OgISOn Wx8aRf3QjnTw8AiPbD381fVRIPJS0ggBwFvjhmWi+zQ2bCtY2/fyj243wGvVFCuI LJd4NDS6vdQ30gSMmoJXOxzyTVy2f00m0vVpbo9OmShSFOTFuSds5j5uTFawj8TV xXmz0OhCdxmA3fEnTGnnvS/0UsN8NPnE3VCgFnzzVbbTUAeRFRYucr8OHEcVmYmn JgTS4MfBa17zcygviqq/uxAjVcf4FjpwkpPhRswKbAN9BgkeSsPomw4Y0LM9aqre Vq/xPuZ1DMj9/f0DrlZXJAXFMpZ5l/pqJup3IGeJIS3OTq7hUNfoQ8IpzNtkcq4/ kXYH/rkjfakDz/9Hx6zO4uNOINa0H299m+HI+lm/HaxxPoY3YFfI+EojM6TzCO40 IAkZyCVMBTsxSK7wtDbU9j2oGnOuFXQV1hBI8qiw2q11l7EneHiu0MXfSHTUXtar 37iSTi/W3Y6bPWHwYxWSNMQ9pnws1ebewi2tfLfVbYoM0M8XBf+ybBPonOJuUY5j ya6m+hkDNcZ1GbnBgXAc =qlln -----END PGP SIGNATURE----- --IPkumnChpd2D9akAkrRAgLCP4k1vGBtv8--