Re: beadm activate, cp: /tmp/BE-.../boot/zfs/zpool.cache: No such file or directory

From: Allan Jude <allanjude_at_freebsd.org>
Date: Tue, 11 Jul 2017 11:31:31 -0400
On 2017-07-11 10:18, Graham Perrin wrote:
> UEFI, booted from GELI-encrypted ZFS.
> 
> Whenever I attempt to activate a boot environment, activation fails.
> Instead, the environment is mounted.
> 
> I tried both beadm and (below) beadm-devel.
> 
> Thoughts? Is this, maybe, a known issue when booting r320599 from
> encrypted ZFS?
> 
> Also: at boot time, the list of boot environments is empty. I might
> workaround,
> 
> lszfs poolname/ROOT
> set vfs.root.mountfrom=zfs:poolname/ROOT/bename
> 
> Thanks
> 
> ----
> 
> # date ; uptime ; uname -a
> Tue Jul 11 09:15:42 BST 2017
>  9:15AM  up 9 mins, 3 users, load averages: 0.26, 0.33, 0.19
> FreeBSD momh167-gjp4-hpelitebook8570p-freebsd 12.0-CURRENT FreeBSD
> 12.0-CURRENT #0 r320599: Mon Jul  3 15:34:15 UTC 2017
> root_at_releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> # pkg info beadm
> beadm-1.2.7_2
> Name           : beadm
> Version        : 1.2.7_2
> Installed on   : Mon Jul 10 21:44:13 2017 BST
> Origin         : sysutils/beadm
> Architecture   : FreeBSD:12:amd64
> Prefix         : /usr/local
> Categories     : sysutils
> Licenses       : BSD2CLAUSE
> Maintainer     : bdrewery_at_FreeBSD.org
> WWW            : https://github.com/vermaden/beadm/
> Comment        : Solaris-like utility to manage Boot Environments on ZFS
> Annotations    :
>         repo_type      : binary
>         repository     : FreeBSD
> Flat size      : 30.6KiB
> Description    :
> beadm is an Illumos/Solaris-like utility for FreeBSD to manage
> Boot Environments on ZFS filesystems.
> 
> WWW: https://github.com/vermaden/beadm/
> # pkg install beadm-devel
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up to date.
> Updating area51 repository catalogue...
> area51 repository is up to date.
> Updating poudriere repository catalogue...
> poudriere repository is up to date.
> Updating trueos-base repository catalogue...
> trueos-base repository is up to date.
> All repositories are up to date.
> Checking integrity... done (2 conflicting)
>   - beadm-devel-1.2.99.20150924 [poudriere] conflicts with beadm-1.2.7_2
> [installed] on /usr/local/sbin/beadm
>   - beadm-devel-1.2.99.20150924 [FreeBSD] conflicts with beadm-1.2.7_2
> [installed] on /usr/local/sbin/beadm
> Checking integrity... done (0 conflicting)
> The following 2 package(s) will be affected (of 0 checked):
> 
> Installed packages to be REMOVED:
>         beadm-1.2.7_2
> 
> New packages to be INSTALLED:
>         beadm-devel: 1.2.99.20150924 [poudriere]
> 
> Number of packages to be removed: 1
> Number of packages to be installed: 1
> 
> Proceed with this action? [y/N]: y
> [1/2] Deinstalling beadm-1.2.7_2...
> [1/2] Deleting files for beadm-1.2.7_2: 100%
> [2/2] Installing beadm-devel-1.2.99.20150924...
> [2/2] Extracting beadm-devel-1.2.99.20150924: 100%
> # beadm create 2017-07-11-09
> Created successfully
> # beadm activate 2017-07-11-09
> cp: /tmp/BE-2017-07-11-09.H0k1WFYJ/boot/zfs/zpool.cache: No such file or
> directory
> # beadm list
> BE            Active Mountpoint                      Space Created
> default       NR     /                                8.3G 2017-07-07 10:50
> 2017-07-11-09 -      /tmp/BE-2017-07-11-09.H0k1WFYJ   8.0K 2017-07-11 09:16
> # gpart show
> =>       40  976773088  ada0  GPT  (466G)
>          40     409600     1  efi  (200M)
>      409640       2008        - free -  (1.0M)
>      411648    4194304     2  freebsd-zfs  (2.0G)
>     4605952   33554432     3  freebsd-swap  (16G)
>    38160384  938612736     4  freebsd-zfs  (448G)
>   976773120          8        - free -  (4.0K)
> 
> # mount
> hpelitebook8570p/ROOT/default on / (zfs, local, noatime, nfsv4acls)
> devfs on /dev (devfs, local, multilabel)
> procfs on /proc (procfs, local)
> bootpool on /bootpool (zfs, local, nfsv4acls)
> hpelitebook8570p on /hpelitebook8570p (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere on /hpelitebook8570p/poudriere (zfs, local,
> noatime, nfsv4acls)
> hpelitebook8570p/poudriere/jails on /hpelitebook8570p/poudriere/jails
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/ports on /hpelitebook8570p/poudriere/ports
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
> hpelitebook8570p/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/usr/home/grahamperrin on /usr/home/grahamperrin (zfs,
> local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data on /usr/local/poudriere/data (zfs,
> local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/.m on /usr/local/poudriere/data/.m (zfs,
> local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/cache on /usr/local/poudriere/data/cache
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/logs on /usr/local/poudriere/data/logs
> (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/packages on
> /usr/local/poudriere/data/packages (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/data/wrkdirs on
> /usr/local/poudriere/data/wrkdirs (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/jails/current on
> /usr/local/poudriere/jails/current (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/poudriere/ports/freebsd-ports-kde on
> /usr/local/poudriere/ports/freebsd-ports-kde (zfs, local, noatime,
> nfsv4acls)
> hpelitebook8570p/usr/ports on /usr/ports (zfs, local, noatime, nosuid,
> nfsv4acls)
> hpelitebook8570p/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
> hpelitebook8570p/var/VirtualBox on /var/VirtualBox (zfs, local, noatime,
> nfsv4acls)
> hpelitebook8570p/var/audit on /var/audit (zfs, local, noatime, noexec,
> nosuid, nfsv4acls)
> hpelitebook8570p/var/crash on /var/crash (zfs, local, noatime, noexec,
> nosuid, nfsv4acls)
> hpelitebook8570p/var/log on /var/log (zfs, local, noatime, noexec,
> nosuid, nfsv4acls)
> hpelitebook8570p/var/mail on /var/mail (zfs, local, nfsv4acls)
> hpelitebook8570p/var/tmp on /var/tmp (zfs, local, noatime, nosuid,
> nfsv4acls)
> linprocfs on /compat/linux/proc (linprocfs, local)
> tmpfs on /compat/linux/dev/shm (tmpfs, local)
> fdescfs on /dev/fd (fdescfs)
> hpelitebook8570p/ROOT/2017-07-11-09 on /tmp/BE-2017-07-11-09.H0k1WFYJ
> (zfs, local, noatime, nfsv4acls)
> # zfs list
> NAME                                                 USED  AVAIL REFER 
> MOUNTPOINT
> bootpool                                             135M  1.73G 133M 
> /bootpool
> hpelitebook8570p                                    78.2G   352G 88K 
> /hpelitebook8570p
> hpelitebook8570p/ROOT                               8.27G   352G 88K  none
> hpelitebook8570p/ROOT/2017-07-11-09                    8K   352G 8.27G 
> /tmp/BE-2017-07-11-09.H0k1WFYJ
> hpelitebook8570p/ROOT/default                       8.27G   352G 8.27G  /
> hpelitebook8570p/poudriere                          3.62G   352G 88K 
> /hpelitebook8570p/poudriere
> hpelitebook8570p/poudriere/data                      732M   352G 96K 
> /usr/local/poudriere/data
> hpelitebook8570p/poudriere/data/.m                    88K   352G 88K 
> /usr/local/poudriere/data/.m
> hpelitebook8570p/poudriere/data/cache               12.6M   352G 12.6M 
> /usr/local/poudriere/data/cache
> hpelitebook8570p/poudriere/data/logs                42.8M   352G 42.8M 
> /usr/local/poudriere/data/logs
> hpelitebook8570p/poudriere/data/packages             676M   352G 676M 
> /usr/local/poudriere/data/packages
> hpelitebook8570p/poudriere/data/wrkdirs               88K   352G 88K 
> /usr/local/poudriere/data/wrkdirs
> hpelitebook8570p/poudriere/jails                     949M   352G 88K 
> /hpelitebook8570p/poudriere/jails
> hpelitebook8570p/poudriere/jails/current             948M   352G 948M 
> /usr/local/poudriere/jails/current
> hpelitebook8570p/poudriere/ports                    1.98G   352G 88K 
> /hpelitebook8570p/poudriere/ports
> hpelitebook8570p/poudriere/ports/freebsd-ports-kde  1.98G   352G 1.98G 
> /usr/local/poudriere/ports/freebsd-ports-kde
> hpelitebook8570p/tmp                                15.9M   352G 15.9M 
> /tmp
> hpelitebook8570p/usr                                66.2G   352G 88K  /usr
> hpelitebook8570p/usr/home                           64.3G   352G 547M 
> /usr/home
> hpelitebook8570p/usr/home/grahamperrin              63.7G   352G 58.2G 
> /usr/home/grahamperrin
> hpelitebook8570p/usr/ports                          1.34G   352G 1.34G 
> /usr/ports
> hpelitebook8570p/usr/src                             638M   352G 638M 
> /usr/src
> hpelitebook8570p/var                                1.25M   352G 88K  /var
> hpelitebook8570p/var/VirtualBox                       88K   352G 88K 
> /var/VirtualBox
> hpelitebook8570p/var/audit                            88K   352G 88K 
> /var/audit
> hpelitebook8570p/var/crash                            88K   352G 88K 
> /var/crash
> hpelitebook8570p/var/log                             684K   352G 684K 
> /var/log
> hpelitebook8570p/var/mail                            152K   352G 152K 
> /var/mail
> hpelitebook8570p/var/tmp                              88K   352G 88K 
> /var/tmp
> #
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"


Boot environments with a bootpool do not work. Support for GELI with
UEFI is coming soon. This will allow you to move /boot into the GELI
encrypted pool, and get rid of the bootpool, and properly use boot
environments.

-- 
Allan Jude


Received on Tue Jul 11 2017 - 13:31:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC