Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2016 14:41:13 -0400
From:      Randy Westlund <rwestlun@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   ZFS on root, beadm, and the /boot symlink
Message-ID:  <20160522184113.GU19887@gmail.com>

next in thread | raw e-mail | index | archive | help

--FfX2iGK5t5ehHnsE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

My system was installed from 10.1 or 10.2 with root on ZFS and geli, but
now it tracks current.  It is not an EFI system.  I'm trying to get boot
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
>=20
> 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 direct=
ory

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/boot =
-> bootpool/boot
>=20
> 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 recent
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

--FfX2iGK5t5ehHnsE
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXQf1JAAoJEGaweXjzNsmpOfwIAKggHVy1Y+JpRh4KN5Aaxert
gSHmVXL1KeEa6/MfEXoaRrcjrc2L6qWtm8QY2q0Lzw/u3oOVY6B9srKzCMr+KJog
cBNG89wGFplTVdHT78Ol/EAt716v9rBKmS/XtdTyhSt6Exr95UF9KaKRtHOX1kCn
+5LmC9Pkiz0IgzB9qooEVX8HueyvHRCDd/1v+LRjsUcxRNb+KVE4YGONwTUoQ26u
F588oB9ra/U1I7if5hReVHoI4KBGWXfXDOpA+27ng/TbkMEsffJ2D3Ap9i7F2rbm
SWOb6XXlFx9v9dKlthvdmefE42t6POvSlNyohtxZcOSpJ3dJsIDspUZpLq3oXrc=
=C75j
-----END PGP SIGNATURE-----

--FfX2iGK5t5ehHnsE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160522184113.GU19887>