git: d6dfcb6b27b5 - stable/13 - Tweak language involving ZFS installation; no content changes.

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Apr 12 14:00:43 UTC 2021


The branch stable/13 has been updated by nwhitehorn:

URL: https://cgit.FreeBSD.org/src/commit/?id=d6dfcb6b27b50dcc216a78d655fcb7e6c8561b19

commit d6dfcb6b27b50dcc216a78d655fcb7e6c8561b19
Author:     Nathan Whitehorn <nwhitehorn at FreeBSD.org>
AuthorDate: 2021-04-05 14:23:00 +0000
Commit:     Nathan Whitehorn <nwhitehorn at FreeBSD.org>
CommitDate: 2021-04-12 14:00:10 +0000

    Tweak language involving ZFS installation; no content changes.
    
    (cherry picked from commit b8639a1098a70e8ca8ec5880d2337fed04e4243a)
---
 usr.sbin/bsdinstall/bsdinstall.8 | 40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)

diff --git a/usr.sbin/bsdinstall/bsdinstall.8 b/usr.sbin/bsdinstall/bsdinstall.8
index 854b4775883d..781660bf5ef1 100644
--- a/usr.sbin/bsdinstall/bsdinstall.8
+++ b/usr.sbin/bsdinstall/bsdinstall.8
@@ -465,7 +465,8 @@ exits.
 The two parts are separated by the usual script header (#!), which also sets
 the interpreter for the setup script.
 .Pp
-A typical bsdinstall script looks like this:
+A typical bsdinstall script, using the default filesystem layout and the UFS
+filesystem, looks like this:
 .Bd -literal -offset indent
 PARTITIONS=ada0
 DISTRIBUTIONS="kernel.txz base.txz"
@@ -476,11 +477,12 @@ sysrc sshd_enable=YES
 pkg install puppet
 .Ed
 .Pp
-For a ZFS scripted installation, the script looks like this:
+For a scripted installation involving a ZFS pool spanning multiple disks,
+the script instead looks like this:
 .Bd -literal -offset indent
 DISTRIBUTIONS="kernel.txz base.txz"
 export ZFSBOOT_VDEV_TYPE=stripe
-export ZFSBOOT_DISKS=ada0
+export ZFSBOOT_DISKS="ada0 ada1"
 export nonInteractive="YES"
 
 #!/bin/sh
@@ -517,6 +519,7 @@ the preamble can contain a variable
 which is passed to the
 .Cm scriptedpart
 target to control disk setup.
+.Pp
 Alternatively,
 to use
 .Cm zfsboot
@@ -525,12 +528,13 @@ instead of
 the preamble can contain the variable
 .Ev ZFSBOOT_DATASETS
 instead of
-.Ev PARTITIONS ,
-and setting the variables
+.Ev PARTITIONS
+(see below).
+If using .Cm zfsboot, the variables
 .Ev ZFSBOOT_DISKS
 and
 .Ev ZFSBOOT_VDEV_TYPE
-to create the pool of disks for the base system.
+must be set to create the pool of disks for the base system.
 Usually, for a mirrored booting disk, this two variables looks like this:
 .Bd -literal -offset indent
 ZFSBOOT_DISKS="ada0 ada1"
@@ -539,7 +543,7 @@ ZFSBOOT_VDEV_TYPE=mirror
 .Pp
 Remember to export all the variables for the
 .Cm zfsboot
-command, otherwise it will not get set.
+command, otherwise installation will fail.
 .Ss SETUP SCRIPT
 Following the preamble is an optional shell script, beginning with a #!
 declaration.
@@ -551,15 +555,17 @@ Note that newly configured system services, e.g., networking have not
 been started in the installed system at this time and only installation
 host services are available.
 .Ss ZFS DATASETS
-The
+If using
+.Cm zfsboot
+in an installation script, the
 .Cm zfsboot
-partitioning takes the
+partitioning tool takes the
 .Ev ZFSBOOT_DATASETS
-variable to create the datasets on the base system.
-This variable can get pretty huge if the pool contains a lot of datasets.
+variable to create the ZFS datasets on the base system.
+This variable definition can become large if the pool contains many datasets.
 The default value of the
 .Ev ZFSBOOT_DATASETS
-looks like this:
+is:
 .Bd -literal -offset indent
 # DATASET	OPTIONS (comma or space separated; or both)
 
@@ -591,11 +597,11 @@ looks like this:
 /var/tmp	setuid=off
 .Ed
 .Pp
-The first column if the dataset to be created on the top of the
+The first column is the name of the dataset to be created as part of the
 .Ev ZFSBOOT_POOL_NAME
-and the rest of the columns are the options to be set on each dataset.
-The options must be written on a coma or space separated list, or both.
-And everything behind a pound/hash character is ignored as a comment.
+pool and the remainder of each line contains the options to be set on each dataset.
+If multiple options are given, they can be separated by either commas or whitespace;
+everything following a pound/hash character is ignored as a comment.
 .Ss BUILDING AUTOMATIC INSTALL MEDIA
 If building automatic install media, use tar to extract a release ISO:
 .Dl mkdir release-media
@@ -617,3 +623,5 @@ first appeared in
 .Fx 9.0 .
 .Sh AUTHORS
 .An Nathan Whitehorn Aq Mt nwhitehorn at FreeBSD.org
+.An Devin Teske Aq Mt dteske at FreeBSD.org
+.An Allan Jude Aq Mt allanjude at FreeBSD.org


More information about the dev-commits-src-all mailing list