1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
|
.\" Copyright (c) 1997
.\" Jordan Hubbard <jkh@FreeBSD.org>. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY Jordan Hubbard AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL Jordan Hubbard OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd August 9, 1997
.Dt SYSINSTALL 8
.Os
.Sh NAME
.Nm sysinstall
.Nd system installation and configuration tool
.Sh SYNOPSIS
.Nm
.Op Ar var=value
.Op Ar function
.Op Ar ...
.Sh DESCRIPTION
The
.Nm
utility is used for installing and configuring
.Fx
systems.
It is the first utility invoked by the
.Fx
installation boot
floppy and is also available as
.Pa /usr/sbin/sysinstall
on newly installed
.Fx
systems for use in later configuring the system.
.Pp
The
.Nm
utility is generally invoked without arguments for the default
behavior, where the main installation/configuration menu is presented.
.Pp
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.
.Sh NOTES
The
.Nm
utility is essentially nothing more than a monolithic C program with
the ability to write MBRs and disk labels (through the services
of the
.Xr libdisk 3
library) and install distributions or packages onto new and
existing
.Fx
systems. It also contains some extra intelligence
for running as a replacement for
.Xr init 8
when it's invoked by the
.Fx
installation boot procedure. It
assumes very little in the way of additional utility support and
performs most file system operations by calling the relevant syscalls
(such as
.Xr mount 2 )
directly.
.Pp
The
.Nm
utility currently uses the
.Xr dialog 3
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
.Dq xterm-color
termcap entry).
.Pp
This product is currently at the end of its life cycle and will
eventually be replaced.
.Sh RUNNING SCRIPTS
The
.Nm
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:
.Bl -tag -width Ds
.It Sy "LOAD_CONFIG_FILE"
If
.Nm
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
when
.Nm
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.
.It Sy "MAIN MENU"
If
.Nm
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.
.It Sy "COMMAND LINE"
Each command line argument is treated as a script directive
when
.Nm
is run in multi-user mode. Execution ends either by explicit request
(e.g. calling the
.Ar shutdown
directive), upon reaching the end of the argument list or on error.
.Pp
For example:
.Bd -literal
/usr/sbin/sysinstall _ftpPath=ftp://ziggy/pub/ mediaSetFTP configPackages
.Ed
.Pp
Would initialize
.Nm
for FTP installation media (using the server `ziggy') and then
bring up the package installation editor, exiting when finished.
.El
.Sh SCRIPT SYNTAX
A script is a list of one or more directives, each directive taking
the form of:
.Pp
.Ar var=value
.Pp
.Ar function
.Pp
or
.Ar #somecomment
.Pp
Where
.Ar var=value
is the assignment of some internal
.Nm
variable, e.g. "ftpPass=FuNkYChiKn", and
.Ar function
is the name of an internal
.Nm
function, e.g. "mediaSetFTP", and
.Ar #comment
is a single-line comment for documentation purposes (ignored by
sysinstall). 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.
.Pp
The
.Ar noError
variable can be assigned before each directive: this will cause any error
detected while processing the directive itself to be ignored.
The value of
.Ar noError
will automatically reset to the default "unassigned" every time a directive is
processed.
.Pp
When and where a function depends on the settings of one or more variables
will be noted in the following table:
.Pp
.Sy "Function Glossary" :
.Pp
.Bl -tag -width indent
.It configAnonFTP
Invoke the Anonymous FTP configuration menu.
.Pp
.Sy Variables :
None
.It configRouter
Select which routing daemon you wish to use, potentially
loading any required 3rd-party routing daemons as necessary.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It router
can be set to the name of the desired routing daemon,
e.g.\&
.Dq routed
or
.Dq gated ,
otherwise it is prompted for.
.El
.It configNFSServer
Configure host as an NFS server.
.Pp
.Sy Variables :
None
.It configNTP
Configure host as a user of the Network Time Protocol.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It ntpdate_flags
The flags to
.Xr ntpdate 8 ,
that is to say the name of the server to sync from.
.El
.It configPCNFSD
Configure host to support PC NFS.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It pcnfsd_pkg
The name of the PCNFSD package to load if necessary (defaults to hard coded
version).
.El
.It configPackages
Bring up the interactive package management menu.
.Pp
.Sy Variables :
None
.It configUsers
Add users and/or groups to the system.
.Pp
.Sy Variables :
None
.It configXSetup
Configure the X display subsystem.
.Pp
.Sy Variables :
None
.It configXDesktop
Configure the X desktop.
.Pp
.Sy Variables :
None
.It diskPartitionEditor
Invokes the disk partition (MBR) editor.
.Pp
.Sy Variables :
.Bl -tag -width findx
.It geometry
The disk geometry, as a cyls/heads/sectors formatted string. Default: no
change to geometry.
.It partition
Set to disk partitioning type or size, its value being
.Ar free
in order to use only remaining free space for
.Fx ,
.Ar all
to use the entire disk for
.Fx
but maintain a proper partition
table,
.Ar existing
to use an existing
.Fx
partition (first found),
.Ar exclusive
to use the disk in
.Dq dangerously dedicated
mode or, finally,
.Ar somenumber
to allocate
.Ar somenumber
blocks of available free space to a new
.Fx
partition.
Default: Interactive mode.
.It bootManager
is set to one of
.Ar boot
to signify the installation of a boot manager,
.Ar standard
to signify installation of a "standard" non-boot MGR DOS
MBR or
.Ar none
to indicate that no change to the boot manager is desired.
Default: none.
.It diskInteractive
If set, bring up the interactive disk partition editor.
.El
.Pp
Note: Nothing is actually written to disk by this function, an explicit call to
.Ar diskPartitionWrite
being required for that to happen.
.It diskPartitionWrite
Causes any pending MBR changes (typically from the
.Ar diskPartitionEditor
function) to be written out.
.Pp
.Sy Variables :
None
.It diskLabelEditor
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
.Ar diskPartitionEditor
function, and that requires knowing a few rules about how things are
laid out. 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
the script.
.Pp
For example, let's say you have a SCSI disk on which you've created a new
.Fx
partition in slice 2 (your DOS partition residing in slice 1).
The slice name would be
.Ar da0s2
for the whole
.Fx
partition
.Ar ( da0s1
being your DOS primary
partition). Now let's further assume that you have 500MB in this
partition and you want to sub-partition that space into root, swap,
var and usr file systems for
.Fx .
Your invocation of the
.Ar diskLabelEditor
function might involve setting the following variables:
.Bl -tag -width findx
.It Li "da0s2-1=ufs 40960 /"
A 20MB root file system (all sizes are in 512 byte blocks).
.It Li "da0s2-2=swap 131072 /"
A 64MB swap partition.
.It Li "da0s2-3=ufs 204800 /var"
A 100MB /var file system.
.It Li "da0s2-4=ufs 0 /usr 1"
With the balance of free space (around 316MB) 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).
.El
.Pp
One can also use the
.Ar diskLabelEditor
for mounting or erasing existing partitions as well as creating new
ones. Using the previous example again, let's say that we also wanted
to mount our DOS partition and make sure that an
.Pa /etc/fstab
entry is created for it in the new installation. Before calling the
.Ar diskLabelEditor
function, we simply add an additional line:
.Pp
.Dl "da0s1=/dos_c N"
.Pp
before the call. This tells the label editor that you want to mount
the first slice on
.Pa /dos_c
and not to attempt to newfs it (not that
.Nm
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).
.Pp
You can also set the
.Ar diskInteractive
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.
.Pp
Note: No file system data is actually written to disk until an
explicit call to
.Ar diskLabelCommit
is made.
.It diskLabelCommit
Writes out all pending disklabel information and creates and/or mounts any
file systems which have requests pending from the
.Ar diskLabelEditor
function.
.Pp
.Sy Variables :
None
.It distReset
Resets all selected distributions to the empty set (no distributions selected).
.Pp
.Sy Variables :
None
.It distSetCustom
Allows the selection of a custom distribution set (e.g. not just one of the
existing "canned" sets) with no user interaction.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It dists
List of distributions to load. Possible distribution values are:
.Bl -tag -width indentxx
.It Li base
The base binary distribution.
.It Li doc
Miscellaneous documentation
.It Li games
Games
.It Li manpages
Manual pages (unformatted)
.It Li catpages
Pre-formatted manual pages
.It Li proflibs
Profiled libraries for developers.
.It Li dict
Dictionary information (for tools like spell).
.It Li info
GNU info files and other extra docs.
.It Li crypto
Encryption binaries and libraries.
.It Li compat1x
Compatibility with
.Fx
1.x
.It Li compat20
Compatibility with
.Fx 2.0
.It Li compat21
Compatibility with
.Fx 2.1
.It Li compat22
.Fx 2.2
and
.Fx 3.0
a.out binary compatibility
.It Li compat3x
Compatibility with
.Fx
3.x
(available for
.Fx 4.0
systems only)
.It Li compat4x
Compatibility with
.Fx
4.x
(available for
.Fx 5.0
systems only)
.It Li ports
The ports collection.
.It Li ssecure
/usr/src/secure
.It Li sbase
/usr/src/[top level files]
.It Li scontrib
/usr/src/contrib
.It Li sgnu
/usr/src/gnu
.It Li setc
/usr/src/etc
.It Li sgames
/usr/src/games
.It Li sinclude
/usr/src/include
.It Li skrb5
/usr/src/kerberos5
.It Li slib
/usr/src/lib
.It Li slibexec
/usr/src/libexec
.It Li srelease
/usr/src/release
.It Li sbin
/usr/src/bin
.It Li ssbin
/usr/src/sbin
.It Li sshare
/usr/src/share
.It Li ssys
/usr/src/sys
.It Li subin
/usr/src/usr.bin
.It Li susbin
/usr/src/usr.sbin
.It Li ssmailcf
/usr/src/usr.sbin/sendmail/cf
.It Li XF86-xc
XFree86 official sources.
.It Li XF86-co
XFree86 contributed sources.
.It Li Xbin
XFree86 binaries.
.It Li Xcfg
XFree86 configuration files.
.It Li Xdoc
XFree86 documentation.
.It Li Xhtml
XFree86 HTML documentation.
.It Li Xlib
XFree86 libraries.
.It Li Xlk98
XFree86 server link-kit for PC98 machines.
.It Li Xlkit
XFree86 server link-kit for standard machines.
.It Li Xman
XFree86 manual pages.
.It Li Xprog
XFree86 programmer's distribution.
.It Li Xps
XFree86 postscript documentation.
.It Li Xset
XFree86 graphical setup tool.
.It Li PC98-Servers/X9480
XFree86 PC98 8-bit (256 color) PEGC-480 server.
.It Li PC98-Servers/X9EGC
XFree86 PC98 4-bit (16 color) EGC server.
.It Li PC98-Servers/X9GA9
XFree86 PC98 GA-968V4/PCI (S3 968) server.
.It Li PC98-Servers/X9GAN
XFree86 PC98 GANB-WAP (cirrus) server.
.It Li PC98-Servers/X9LPW
XFree86 PC98 PowerWindowLB (S3) server.
.It Li PC98-Servers/X9MGA
[DESCRIPTION MISSING]
.It Li PC98-Servers/X9NKV
XFree86 PC98 NKV-NEC (cirrus) server.
.It Li PC98-Servers/X9NS3
XFree86 PC98 NEC (S3) server.
.It Li PC98-Servers/X9SPW
XFree86 PC98 SKB-PowerWindow (S3) server.
.It Li PC98-Servers/X9SVG
[DESCRIPTION MISSING]
.It Li PC98-Servers/X9TGU
XFree86 PC98 Cyber9320 and TGUI9680 server.
.It Li PC98-Servers/X9WEP
XFree86 PC98 WAB-EP (cirrus) server.
.It Li PC98-Servers/X9WS
XFree86 PC98 WABS (cirrus) server.
.It Li PC98-Servers/X9WSN
XFree86 PC98 WSN-A2F (cirrus) server.
.It Li Servers/X3DL
XFree86 3D Labs server.
.It Li Servers/X8514
XFree86 8514 server.
.It Li Servers/XAGX
XFree86 8 bit AGX server.
.It Li Servers/XI128
XFree86 #9 Imagine I128 server.
.It Li Servers/XMa8
XFree86 ATI Mach8 server.
.It Li Servers/XMa32
XFree86 ATI Mach32 server.
.It Li Servers/XMa64
XFree86 ATI Mach64 server.
.It Li Servers/XMono
XFree86 monochrome server.
.It Li Servers/XP9K
XFree86 P9000 server.
.It Li Servers/XS3
XFree86 S3 server.
.It Li Servers/XS3V
XFree86 S3 Virge server.
.It Li Servers/XSVGA
XFree86 SVGA server.
.It Li Servers/XVG16
XFree86 VGA16 server.
.It Li Servers/XW32
XFree86 ET4000/W32, /W32i and /W32p server.
.It Li Servers/XTGA
Server for TGA cards (alpha architecture only).
.It Li Servers/Xnest
XFree86 nested X server.
.It Li Servers/Xvfb
XFree86 virtual frame-buffer X server.
.It Li Xfnts
XFree86 base font set.
.It Li Xf100
XFree86 100DPI font set.
.It Li Xfcyr
XFree86 Cyrillic font set.
.It Li Xfscl
XFree86 scalable font set.
.It Li Xfnon
XFree86 non-english font set.
.It Li Xfsrv
XFree86 font server.
.El
.El
.It distSetDeveloper
Selects the standard Developer's distribution set.
.Pp
.Sy Variables :
None
.It distSetXDeveloper
Selects the standard X Developer's distribution set.
.Pp
.Sy Variables :
None
.It distSetKernDeveloper
Selects the standard kernel Developer's distribution set.
.Pp
.Sy Variables :
None
.It distSetUser
Selects the standard user distribution set.
.Pp
.Sy Variables :
None
.It distSetXUser
Selects the standard X user's distribution set.
.Pp
.Sy Variables :
None
.It distSetMinimum
Selects the very minimum distribution set.
.Pp
.Sy Variables :
None
.It distSetEverything
Selects the full whack - all available distributions.
.Pp
.Sy Variables :
None
.It distSetCRYPTO
Interactively select encryption subcomponents.
.Pp
.Sy Variables :
None
.It distSetSrc
Interactively select source subcomponents.
.Pp
.Sy Variables :
None
.It distSetXF86
Interactively select XFree86 subcomponents.
.Pp
.Sy Variables :
None
.It distExtractAll
Install all currently selected distributions (requires that
media device also be selected).
.Pp
.Sy Variables :
None
.It docBrowser
Install (if necessary) an HTML documentation browser and go to the
HTML documentation submenu.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It browserPackage
The name of the browser package to try and install as necessary.
Defaults to latest links package.
.It browserBinary
The name of the browser binary itself (if overriding the
.Ar browserPackage
variable). Defaults to links.
.El
.It installCommit
Commit any and all pending changes to disk. This function
is essentially shorthand for a number of more granular "commit"
functions.
.Pp
.Sy Variables :
None
.It installExpress
Start an "express" installation, asking few questions of
the user.
.Pp
.Sy Variables :
None
.It installStandard
Start a "standard" installation, the most user-friendly
installation type available.
.Pp
.Sy Variables :
None
.It installUpgrade
Start an upgrade installation.
.Pp
.Sy Variables :
None
.It installFixitHoloShell
Start up the "emergency holographic shell" over on VTY4
if running as init. This will also happen automatically
as part of the installation process unless
.Ar noHoloShell
is set.
.Pp
.Sy Variables :
None
.It installFixitCDROM
Go into "fixit" mode, assuming a live file system CDROM
currently in the drive.
.Pp
.Sy Variables :
None
.It installFixitFloppy
Go into "fixit" mode, assuming an available fixit floppy
disk (user will be prompted for it).
.Pp
.Sy Variables :
None
.It installFilesystems
Do just the file system initialization part of an install.
.Pp
.Sy Variables :
None
.It installVarDefaults
Initialize all variables to their defaults, overriding any
previous settings.
.Pp
.Sy Variables :
None
.It loadConfig
Sort of like an #include statement, it allows you to load one
configuration file from another.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It configFile
The fully qualified pathname of the file to load.
.El
.It mediaClose
If a media device is open, close it.
.Pp
.Sy Variables :
None
.It mediaSetCDROM
Select a
.Fx
CDROM as the installation media.
.Pp
.Sy Variables :
None
.It mediaSetFloppy
Select a pre-made floppy installation set as the installation media.
.Pp
.Sy Variables :
None
.It mediaSetDOS
Select an existing DOS primary partition as the installation media.
The first primary partition found is used (e.g. C:).
.Pp
.Sy Variables :
None
.It mediaSetTape
Select a tape device as the installation media.
.Pp
.Sy Variables :
None
.It mediaSetFTP
Select an FTP site as the installation media.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It hostname
The name of the host being installed (non-optional).
.It domainname
The domain name of the host being installed (optional).
.It defaultrouter
The default router for this host (non-optional).
.It netDev
Which host interface to use
.Ar ( ed0
or
.Ar ep0 ,
for example. Non-optional).
.It netInteractive
If set, bring up the interactive network setup form even
if all relevant configuration variables are already set (optional).
.It ipaddr
The IP address for the selected host interface (non-optional).
.It netmask
The netmask for the selected host interface (non-optional).
.It _ftpPath
The fully qualified URL of the FTP site containing the
.Fx
distribution you're interested in, e.g.\&
.Ar ftp://ftp.FreeBSD.org/pub/FreeBSD/ .
.El
.It mediaSetFTPActive
Alias for
.Ar mediaSetFTP
using "active" FTP transfer mode.
.Pp
.Sy Variables :
Same as for
.Ar mediaSetFTP .
.It mediaSetFTPPassive
Alias for
.Ar mediaSetFTP
using "passive" FTP transfer mode.
.Pp
.Sy Variables :
Same as for
.Ar mediaSetFTP .
.It mediaSetHTTP
Alias for
.Ar mediaSetFTP
using an HTTP proxy.
.Pp
.Sy Variables :
See
.Ar mediaSetFTP ,
plus
.Bl -tag -width indent
.It _httpPath
The proxy to use (host:port) (non-optional).
.El
.It mediaSetUFS
Select an existing UFS partition (mounted with the label editor) as
the installation media.
.Pp
.Sy Variables :
.Bl -tag -width indent
.It ufs
full /path to directory containing the
.Fx
distribution you're
interested in.
.El
.It mediaSetNFS
.Pp
.Sy Variables :
.Bl -tag -width indent
.It hostname
The name of the host being installed (non-optional).
.It domainname
The domain name of the host being installed (optional).
.It defaultrouter
The default router for this host (non-optional).
.It netDev
Which host interface to use
.Ar ( ed0
or
.Ar ep0 ,
for example. Non-optional).
.It netInteractive
If set, bring up the interactive network setup form even
if all relevant configuration variables are already set (optional).
.It ipaddr
The IP address for the selected host interface (non-optional).
.It netmask
The netmask for the selected host interface (non-optional).
.It nfs
full hostname:/path specification for directory containing
the
.Fx
distribution you're interested in.
.El
.It mediaSetFTPUserPass
.Pp
.Sy Variables :
.Bl -tag -width indent
.It ftpUser
The username to log in as on the ftp server site.
Default: ftp
.It ftpPass
The password to use for this username on the ftp
server site.
Default: user@host
.El
.It mediaSetCPIOVerbosity
.Pp
.Sy Variables :
.Bl -tag -width indent
.It cpioVerbose
Can be used to set the verbosity of cpio extractions to low, medium or
high.
.El
.It mediaGetType
Interactively get the user to specify some type of media.
.Pp
.Sy Variables :
None
.It optionsEditor
Invoke the interactive options editor.
.Pp
.Sy Variables :
None
.It packageAdd
Try to fetch and add a package to the system (requires
that a media type be set),
.Pp
.Sy Variables :
.Bl -tag -width indent
.It package
The name of the package to add, e.g. bash-1.14.7 or ncftp-2.4.2.
.El
.It addGroup
Invoke the interactive group editor.
.Pp
.Sy Variables :
None
.It addUser
Invoke the interactive user editor.
.Pp
.Sy Variables :
None
.It shutdown
Stop the script and terminate sysinstall.
.Pp
.Sy Variables :
None
.It system
Execute an arbitrary command with
.Xr system 3
.Pp
.Sy Variables :
.Bl -tag -width indent
.It command
The name of the command to execute. When running
from a boot floppy, very minimal expectations should
be made as to what's available until/unless a relatively
full system installation has just been done.
.El
.It tcpMenuSelect
Configure a network device.
.Pp
.Sy Variables :
Same as for
.Ar mediaSetFTP
except that
.Ar _ftpPath
is not used.
.El
.Sh DISTRIBUTION MEDIA
The following files can be used to affect the operation of
.Nm
when used during initial system installation.
.Bl -tag -width ".Pa packages/INDEX"
.It Pa cdrom.inf
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
.Dq Ar property No = Ar value .
Currently, only the following properties are recognized.
.Bl -tag -width ".Va CD_MACHINE_ARCH"
.It Va CD_VERSION
This property should be set to the
.Fx
version on the current
media volume.
For example,
.Dq Li "CD_VERSION = 4.6" .
.It Va CD_MACHINE_ARCH
This property should be set to the architecture of the contents on
this volume.
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.
For example,
.Dq Li "CD_MACHINE_ARCH = alpha" .
.It Va VOLUME
In a multi-volume collection (such as the
.Fx
4-CD set), the
.Pa ports/INDEX
file on each disc should contain the full package index for the set.
The last field of the
.Pa INDEX
file denotes which volume the package
appears on, and the
.Va VOLUME
property here defines the volume ID of the current disc.
.El
.It Pa packages/INDEX
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
.Dq Li "make index"
from the
.Xr ports 7
collection.
When multi-volume support is enabled, an additional field should be
added to each line indicating which media volume contains the given
package.
.El
.Pp
For information about building a full release of
.Fx ,
please see
.Xr release 7 .
.Sh FILES
This utility may edit the contents of
.Pa /etc/rc.conf ,
.Pa /etc/hosts ,
and
.Pa /etc/resolv.conf
as necessary to reflect changes in the network configuration.
.Sh SEE ALSO
If you have a reasonably complete source tree online, take
a look at
.Pa /usr/src/usr.sbin/sysinstall/install.cfg
for a sample installation script.
.Sh BUGS
This utility is a prototype which lasted several years past
its expiration date and is greatly in need of death.
.Sh AUTHORS
.An Jordan K. Hubbard Aq jkh@FreeBSD.org
.Sh HISTORY
This version of
.Nm
first appeared in
.Fx 2.0 .
|