aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2021-04-05 14:23:00 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2021-04-12 14:00:10 +0000
commitd6dfcb6b27b50dcc216a78d655fcb7e6c8561b19 (patch)
treea7f4e5a1fa170fff22eeca16e67a964ae82be303
parent7bcb10d210794bffe252ab885d7ec7bb4aee4d41 (diff)
downloadsrc-d6dfcb6b27b50dcc216a78d655fcb7e6c8561b19.tar.gz
src-d6dfcb6b27b50dcc216a78d655fcb7e6c8561b19.zip
Tweak language involving ZFS installation; no content changes.
(cherry picked from commit b8639a1098a70e8ca8ec5880d2337fed04e4243a)
-rw-r--r--usr.sbin/bsdinstall/bsdinstall.840
1 files 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@FreeBSD.org
+.An Devin Teske Aq Mt dteske@FreeBSD.org
+.An Allan Jude Aq Mt allanjude@FreeBSD.org