Date: Sat, 22 Mar 2014 07:40:15 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: sysinstall@FreeBSD.org Subject: bsdinstall ZFS /root in wrong dataset Message-ID: <532D84AF.5080506@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --k1sGqQij9v1LSIPQ1OxXMjH4kGJJj2i7e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable (I am not subscribed so please CC me) The ZFS layout uses the zroot/ROOT/<BE> to support boot environments. The problem with it is that /root is part of the BE. Home directories are properly outside of the BE. /root should really be outside to persist history and other changes to root's homedir through BE changes/upgrades. This is quite noticeable if you create a new BE (beadm create; beadm mount) and then installworld/kernel into it, then activate and reboot. All of your history and /root changes are missing for the period between creating the BE and rebooting. Something like this is needed: > --- usr.sbin/bsdinstall/scripts/zfsboot (revision 263620) > +++ usr.sbin/bsdinstall/scripts/zfsboot (working copy) > @@ -128,6 +128,8 @@ >=20 > # Home directories separated so they are common to all BEs > /usr/home # NB: /home is a symlink to /usr/home > + /root mountpoint=3D/root >=20 > # Ports tree > /usr/ports compression=3Dlz4,setuid=3Doff Though, I am unsure on whether we should make a zroot/root dataset and mount it in or mkdir /usr/home/root and symlink /root to it. The symlink does cause mergemaster confusion though. I have no opinion on where we create the root dataset, as long as it is outside of ROOT. --=20 Regards, Bryan Drewery --k1sGqQij9v1LSIPQ1OxXMjH4kGJJj2i7e Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTLYSwAAoJEDXXcbtuRpfPSw4H/iAd5d1Gy4RtbvpgS1+W53fC Z82n4an0gbXXneOstI+3gngJEVC27ib4m8TUAh0fO8L6hl9pmiu3q0kZpXHLSaUL fgkonlg8QwVcAD8t7K0GVlq43HThJLafetf1cM6LYuwa1vX2JJkAQHeNc5HC+TcX 6zPDjP6q53Bx0lFudXfspHxK2ywa2G2GXfcwbGZheP9dMUCTAuse7ajkc6mHlpja al6361vVRAD9lwkQh4R4BrKbWrb3nCl0/IxlbUfh67x0qCJkR69kHfGSvfi9Y94U cPVFio56WwuxlQ/+Ixi128m7UaAz9yHquIFUI8NGfeeU2yPxVKkWh9Wzo/fz3i0= =DdYv -----END PGP SIGNATURE----- --k1sGqQij9v1LSIPQ1OxXMjH4kGJJj2i7e--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?532D84AF.5080506>