Интерактивная система просмотра системных руководств (man-ов)
>> sysinstall (8) ( FreeBSD man: Команды системного администрирования )
- system installation and configuration tool
utility is used for installing and configuring
It is the first utility invoked by the
Fx installation boot
floppy and is also available as
on newly installed
Fx systems for use in later configuring the system.
utility is generally invoked without arguments for the default
behavior, where the main installation/configuration menu is presented.
On those occasions where it is deemed necessary to invoke a subsystem
of sysinstall directly, however, it is also possible to do so by
naming the appropriate function entry points on the command line.
Since this action is essentially identical to running an installation
script, each command-line argument corresponding to a line of script,
the reader is encouraged to read the section on scripting for more
information on this feature.
utility is essentially nothing more than a monolithic C program with
the ability to write MBRs and disk labels (through the services
library) and install distributions or packages onto new and
It also contains some extra intelligence
for running as a replacement for
when it is invoked by the
Fx installation boot procedure.
assumes very little in the way of additional utility support and
performs most file system operations by calling the relevant syscalls
utility currently uses the
library to do user interaction with simple ANSI line graphics, color
support for which is enabled by either running on a syscons VTY or some
other color-capable terminal emulator (newer versions of xterm will support
color when using the
This product is currently at the end of its life cycle and will
eventually be replaced.
utility may be either driven interactively through its various internal menus
or run in batch mode, driven by an external script.
Such a script may
be loaded and executed in one of 3 ways:
is compiled with LOAD_CONFIG_FILE set in the environment
(or in the Makefile) to some value, then that value will
be used as the filename to automatically look for and load
starts up and with no user interaction required.
This option is aimed primarily at large sites who wish to create a
single prototype install for multiple machines with largely identical
configurations and/or installation options.
is run interactively, that is to say in the default manner, it will
bring up a main menu which contains a "load config file" option.
Selecting this option will prompt for the name of a script file which
it then will attempt to load from a DOS or UFS formatted floppy.
Each command line argument is treated as a script directive
is run in multi-user mode.
Execution ends either by explicit request
(e.g. calling the
directive), upon reaching the end of the argument list or on error.
for FTP installation media (using the server `ziggy') and then
bring up the package installation editor, exiting when finished.
A script is a list of one or more directives, each directive taking
the form of:
is the assignment of some internal
variable, e.g. "ftpPass=FuNkYChiKn", and
is the name of an internal
function, e.g. "mediaSetFTP", and
is a single-line comment for documentation purposes (ignored by
Each directive must be by itself on a single line,
functions taking their arguments by examining known variable names.
This requires that you be sure to assign the relevant variables before
calling a function which requires them.
variable can be assigned before each directive: this will cause any error
detected while processing the directive itself to be ignored.
The value of
will automatically reset to the default "unassigned" every time a directive is
When and where a function depends on the settings of one or more variables
will be noted in the following table:
Invoke the Anonymous FTP configuration menu.
Select which routing daemon you wish to use, potentially
loading any required 3rd-party routing daemons as necessary.
can be set to the name of the desired routing daemon,
otherwise it is prompted for.
Configure host as an NFS server.
Configure host as a user of the Network Time Protocol.
The flags to
that is to say the name of the server to sync from.
Configure host to support PC NFS.
The name of the PCNFSD package to load if necessary (defaults to hard coded
Bring up the interactive package management menu.
Add users and/or groups to the system.
Invokes the disk partition (MBR) editor.
The disk geometry, as a cyls/heads/sectors formatted string.
change to geometry.
Set to disk partitioning type or size, its value being
in order to use only remaining free space for
to use the entire disk for
Fx but maintain a proper partition
to use an existing
Fx partition (first found),
to use the disk in
mode or, finally,
blocks of available free space to a new
Default: Interactive mode.
is set to one of
to signify the installation of a boot manager,
to signify installation of a "standard" non-boot MGR DOS
to indicate that no change to the boot manager is desired.
If set, bring up the interactive disk partition editor.
Note: Nothing is actually written to disk by this function, an explicit call to
being required for that to happen.
Causes any pending MBR changes (typically from the
function) to be written out.
Invokes the disk label editor.
This is a bit trickier from a script
since you need to essentially label everything inside each
Fx (type 0xA5) partition created by the
function, and that requires knowing a few rules about how things are
When creating a script to automatically allocate disk space
and partition it up, it is suggested that you first perform the
installation interactively at least once and take careful notes as to
what the slice names will be, then and only then hardwiring them into
For example, let's say you have a SCSI disk on which you have created a new
Fx partition in slice 2 (your DOS partition residing in slice 1).
The slice name would be
for the whole
being your DOS primary
Now let's further assume that you have 4GB in this
partition and you want to sub-partition that space into root, swap,
var and usr file systems for
Your invocation of the
function might involve setting the following variables:
da0s2-1=ufs 2097152 /
A 1GB root file system (all sizes are in 512 byte blocks).
da0s2-2=swap 1048576 /
A 512MB swap partition.
da0s2-3=ufs 524288 /var
A 256MB /var file system.
da0s2-4=ufs 0 /usr 1
With the balance of free space (around 2.25GB) going to the /usr
file system and with soft-updates enabled (the argument following
the mount point, if non-zero, means to set the soft updates flag).
One can also use the
for mounting or erasing existing partitions as well as creating new
Using the previous example again, let's say that we also wanted
to mount our DOS partition and make sure that an
entry is created for it in the new installation.
Before calling the
function, we simply add an additional line:
before the call.
This tells the label editor that you want to mount
the first slice on
and not to attempt to newfs it (not that
would attempt this for a DOS partition in any case, but it could just
as easily be an existing UFS partition being named here and the 2nd
field is non-optional).
You can also set the
variable to request that the disk label editor use an interactive dialog
to partition the disk instead of using variables to explicitly layout the
disk as described above.
Note: No file system data is actually written to disk until an
explicit call to
Writes out all pending disklabel information and creates and/or mounts any
file systems which have requests pending from the
Resets all selected distributions to the empty set (no distributions selected).
Allows the selection of a custom distribution set (e.g. not just one of the
existing "canned" sets) with no user interaction.
List of distributions to load.
Possible distribution values are:
The name of the command to execute.
from a boot floppy, very minimal expectations should
be made as to what is available until/unless a relatively
full system installation has just been done.
Configure a network device.
Same as for
is not used.
The following files can be used to affect the operation of
when used during initial system installation.
A text file of properties, listed one per line, that describe the
contents of the media in use.
The syntax for each line is simply
``property = value
Currently, only the following properties are recognized.
This property should be set to the
Fx version on the current
``CD_VERSION = 5.3
This property should be set to the architecture of the contents on
This property is normally only used with
Fx products that contain
CDs for different architectures, to provide better error messages if
users try to install Alpha packages on an i386 machine.
``CD_MACHINE_ARCH = alpha
In a multi-volume collection (such as the
Fx 4-CD set), the
file on each disc should contain the full package index for the set.
The last field of the
file denotes which volume the package
appears on, and the
property here defines the volume ID of the current disc.
The package index file.
Each package is listed on a separate line with additional meta-data
such as the required dependencies.
This index is generated by
When multi-volume support is enabled, an additional field should be
added to each line indicating which media volume contains the given
For information about building a full release of
This utility may edit the contents of
as necessary to reflect changes in the network configuration.
If you have a reasonably complete source tree online, take
a look at
for a sample installation script.
Editing slice and partition tables on disks which are currently mounted by
the system is not allowed.
This is generally only a problem when
is run on a system that is already installed.
for these tasks.
This utility is a prototype which lasted several years past
its expiration date and is greatly in need of death.