Project

General

Profile

Download (11.7 KB) Statistics
| Branch: | Tag: | Revision:
1
pc-sysinstall README
2

    
3
This file documents many of the variables used in pc-sysinstall
4
config scripts
5
#################################################################
6

    
7
# hostname=
8

    
9
Using hostname= will set the specified hostname on the
10
installed system
11

    
12
When hostname= is not present, pc-sysinstall will auto-generate
13
a hostname such as freebsd-XXXX or pcbsd-XXXX
14

    
15
# installMode=(fresh or upgrade)
16

    
17
Set the type of install we are doing, fresh or upgrade.
18

    
19
Fresh installs will format and mount the target disks before
20
extracting the install images to the system. Using this mode
21
it is also possible to do a system restore, by specifying a
22
full system backup as the install source.
23

    
24
Upgrades will mount the target disk, and extract the system
25
archive to the disk, overwriting files on the disk. 
26
The conf/exclude-from-upgrade file can be used to specify
27
additional files to exclude from overwriting during the
28
install process.
29

    
30
# installInteractive=(yes or no)
31

    
32
Set if the installer is running in interactive mode, and
33
is able to prompt for input from the user, defaults to no
34

    
35

    
36
########################################################################
37
# NETWORK SETTINGS
38
########################################################################
39

    
40
# netDev=(AUTO-DHCP or <nic>)
41

    
42
netDev specifies what type of networking to enable for the installer
43
Can be set to AUTO-DHCP or to a network interface, such as et0
44

    
45
When set to AUTO-DHCP, pc-sysinstall will probe for all network devices
46
and attempt to set DHCP mode on each, until a working network connection
47
is established
48

    
49
If netDev= is set to a network interface such as et0, the following options
50
will need to be set in order to enable the interface
51

    
52
# netIP=(IP address such as 192.168.0.100)
53

    
54
 Set netIP to an address that you wish to have the interface specified in
55
 netDev set to
56
 Only used when netDev is not set to AUTO-DHCP
57

    
58
# netMask=(Netmask such as 255.255.255.0)
59

    
60
Set netMask to the address you with to have the interface specified in
61
netDev set to
62
Only used when netDev is not set to AUTO-DHCP
63

    
64
 
65
# netNameServer=(DNS Server such as 192.168.0.1)
66

    
67
Set netNameServer to the DNS address you want to use during the install
68
Only used when netDev is not set to AUTO-DHCP
69

    
70

    
71
# netDefaultRouter=(192.168.0.1)
72

    
73
Set netDefaultRouter to the gateway you wish to have the installer use
74
Only used when netDev is not set to AUTO-DHCP
75

    
76

    
77

    
78
# netSaveDev=(AUTO-DHCP or network interface)
79

    
80
netSaveDev specifies what networking to enable on the installed system
81

    
82
When set to AUTO-DHCP, pc-sysinstall will probe all network interfaces, and
83
set them all to DHCP in the systems /etc/rc.conf file. Wireless devices will also
84
have the corresponding wlan[0-9] device created. 
85

    
86
When set to a network interface, pc-sysinstall will set the target device with
87
the settings specified by the variables below.
88

    
89
# netSaveIP=192.168.0.49
90
# netSaveMask=255.255.255.0
91
# netSaveNameServer=208.67.222.222
92
# netSaveDefaultRouter=192.168.0.1
93

    
94

    
95

    
96

    
97
########################################################################
98
# DISK SLICE SETTINGS
99
########################################################################
100

    
101
The following section specifies the target disk(s) to be used in the
102
install or upgrade. 
103

    
104
# disk0=(disk device, such as ad0)
105

    
106
The diskX= variable should be set to the target device for this drive, such
107
as ad0, da0
108
The first should begin with disk0=, and additional drives to disk1=, disk2
109
if additional disks are to be setup. 
110

    
111
When doing an upgrade, the disk0= line should be set to the root device or 
112
root zpool of the target system to update. I.E:
113
 # disk0=tank0
114
 # disk0=ada0s1a
115

    
116

    
117
# partition=(all, free, s1, s1, s3, s4, image)
118

    
119
After setting disk[0-9], the partition= variable is used to specify which target
120
partition we will be working with for this device.
121

    
122
Setting this to "all" will setup the disk with a single FreeBSD slice as "s1"
123

    
124
Setting this to "free" will allow pc-sysinstall to search for the first available
125
primary slice with free space, and create the slice. 
126

    
127
Setting this to "s1, s2, s3 or s4" will use the specified MBR slice.
128

    
129
Setting this to "image" will use an image to configure the disk.
130

    
131
(This tag is unused for upgrades)
132

    
133
# partscheme=(MBR/GPT)
134

    
135
When performing a "full" disk (partition=all), the partscheme= variable is used
136
to determine the partition scheme type gpart will be using on the disk. Valid
137
choices are MBR or GPT. 
138

    
139
# mirror=(disk device such as ad1)
140

    
141
Setting the mirror= variable will setup the target device as a gmirror
142
of the diskX= device. The mirror device must be the same size or larger
143
than the drive being mirrored. 
144
 
145

    
146
# mirrorbal=(load, prefer, round-robin, split)
147

    
148
Allows the setting of the mirror balance method to be used, if not
149
specified this defaults to "round-robin"
150

    
151
# bootManager=(none, bsd)
152

    
153
Setting this option will instruct pc-sysinstall to install the BSD boot Manager,
154
or leave it empty
155

    
156
# image=(/path/to/image/file) (/mountpoint)
157

    
158
Setting this option will instruct pc-sysinstall to write the image file
159
specified by the path to the disk.
160

    
161
# commitDiskPart
162

    
163
This command must be placed at the end of the diskX= section, before starting
164
the listing of any additional diskX= directives. 
165

    
166

    
167
########################################################################
168
# DISK PARTITION / MOUNT SETTINGS
169
########################################################################
170

    
171
The following settings specify the partitioning / mount points to setup
172
on the target partition
173

    
174
# disk0-part=UFS+S 500 / 
175
# disk0-part=SWAP 2000 none
176
# disk0-part=UFS.eli 500 /usr
177
# encpass=mypass
178
# disk0-part=UFS+J 500 /tmp
179
# disk0-part=ZFS 0 /data,/storage (mirror: ad1)
180
# commitDiskLabel
181

    
182
The above values instructs pc-sysinstall which partitions / mounts
183
to create on the target drive / slice, specified by "disk0".
184
(disk0 will resolve to the drive / slice specified in the previous section)
185

    
186
The notation is as follows:
187
<File System Type> <Size> <Mountpoint>
188

    
189
Available FileSystems: 
190
  UFS - Standard UFS2 FileSystem
191
UFS+S - UFS2 + Softupdates enabled
192
UFS+SUJ - UFS2 + Soft Updates + Journaling enabled
193
UFS+J - UFS2 + Journaling through gjournal
194
  ZFS - Z File System, pools / mounts created automatically
195
 SWAP - BSD Swap space partition, mountpoint should be set to "none"
196

    
197
Adding the ".eli" extension to any of the above file systems
198
will enable disk encryption via geli
199
(UFS.eli, UFS+S.eli, UFS+SUJ.eli, UFS+J.eli, ZFS.eli, SWAP.eli)
200

    
201
If you with to use a passphrase with this encrypted partition, on the next line
202
the flag "encpass=" should be entered:
203
encpass=mypass
204

    
205
All sizes are expressed in MegaBytes
206
Specifying a size 0 instructs pc-sysinstall to use the rest of the 
207
available slice size, and should only be used for the last partition / mount
208

    
209
When using "ZFS" specifically, it is possible to specify additional disks / partitions
210
to include in the zpool. By using the syntax: (mirror: ad1,ad2) or (raidz: ad1,ad2), it is possible
211
to include the disk "ad1" into the zpool for this partition, using the raidz / mirror methods.
212
If you with to just include the disk into the pool in "basic" mode, then use (ad1,ad2) with no flags
213

    
214
########################################################################
215
# INSTALL OPTIONS / SOURCES
216
########################################################################
217

    
218
The following settings specify the type, locations and sources
219
for this installation
220

    
221
# installMedium=(dvd, usb, ftp, rsync, image)
222

    
223
Set installMedium= to the source type we will be using for this install.
224

    
225
Available Types:
226
  dvd - Search for and mount the DVD which contains the install archive
227
  usb - Search for and mount the USB drive which contains the install archive
228
  ftp - The install archive will be fetched from a FTP / HTTP server before install
229
rsync - Pull the system data from a ssh + rsync server, specified with variables below
230
image - Install system from an image
231

    
232
# installType=(PCBSD, FreeBSD)
233

    
234
Set the type of system we are installing, PCBSD or FreeBSD
235

    
236
# installFile=fbsd-release.tbz
237

    
238
The installer archive, if not using the defaults specified in conf/pc-sysinstall.conf
239

    
240
# packageType=(tar, uzip, split)
241

    
242
The archive type we are extracting from when using dvd, usb or ftp
243

    
244
# ftpPath=ftp://ftp.pcbsd.org/pub/8.0/netinstall
245

    
246
Location of the installer archive when using a installMedium=ftp
247

    
248
# rsyncPath=life-preserver/back-2009-11-12T14_53_14
249

    
250
The location of the rsync data on the remote server when using installMedium=rsync
251

    
252
# rsyncUser=rsyncuser
253

    
254
The username to use for the ssh server running rsync
255

    
256
# rsyncHost=192.168.0.50
257

    
258
The rsync / ssh server we wish to connect to
259

    
260
# rsyncPort=22
261

    
262
The port to use when connecting to a ssh + rsync server
263

    
264
# installComponents=amarok,firefox,ports
265

    
266
The specified components to install, view available with "./pc-sysinstall list-components"
267

    
268

    
269
########################################################################
270
# UPGRADE OPTIONS
271
########################################################################
272

    
273
Options specific to performing an upgrade
274

    
275
# upgradeKeepDesktopProfile=(yes/no)
276

    
277
This option allows you to specify if you wish to keep your existing users desktop
278
profile data. The default is NO, and your existing profile will be moved to 
279
.kde4.preUpgrade automatically. 
280

    
281
########################################################################
282
# USER OPTIONS
283
########################################################################
284

    
285
Options for setting up usernames and passwords on the installed system
286

    
287
# rootPass=root
288

    
289
Set the root password of the installed system to the specified string
290

    
291
The below variables are used to setup a user on the installed system
292
Be sure to call commitUser after after adding these values, and before
293
starting another user block
294

    
295
# userName=kris
296
# userComment=Kris Moore
297
# userPass=mypass
298
# userShell=/bin/csh
299
# userHome=/home/kris
300
# userGroups=wheel,operator
301
# commitUser
302

    
303
########################################################################
304
# RUN COMMANDS
305
########################################################################
306

    
307
The following variables can be set to run commands post-installation,
308
allowing the user to further tweak / modify the system
309

    
310
# runCommand=
311

    
312
Run the specified command within chroot of the installed system
313

    
314
# runScript=
315

    
316
runScript will copy the specified script into FSMNT, and run it in chroot of the system
317
Usefull when you have a 3rd party script on the DVD / USB, and you want to copy it into
318
the installed system and run
319

    
320
# runExtCommand=
321

    
322
runExtCommand is used when you wish to run a command outside the chroot
323
The variable $FSMNT is set to the mount-point of your installed system
324

    
325

    
326
########################################################################
327
# PC-BSD SPECIFC OPTIONS
328
########################################################################
329

    
330
Options for time-zones and NTP on the installed system
331

    
332
# timeZone=
333

    
334
timeZone can be set to the zone file in /usr/share/zoneinfo/ that is to be used
335
example: America/New_York
336

    
337
# enableNTP= (yes / no)
338

    
339
set enableNTP to yes or no to enable or disable the NTP service on the system
340

    
341

    
342
########################################################################
343
# PC-BSD SPECIFC OPTIONS
344
########################################################################
345

    
346
Options specific to installing PC-BSD, such as localization, and KDE settings
347

    
348
# localizeLang=en
349

    
350
localizeLang will set the system console and Desktop to the target language
351

    
352
# localizeKeyLayout=en
353

    
354
localizeKeyLayout updates the system's xorg config to set the keyboard layout
355

    
356
# localizeKeyModel=pc104
357

    
358
localizeKeyModel updates the system's xorg config to set the keyboard model
359

    
360
# localizeKeyVariant=intl
361

    
362
localizeKeyVariant is used to update the xorg config to set the keyboard variant
363

    
364
# autoLoginUser=kris
365

    
366
Setting autoLoginUser will enable the specified user to log into the desktop 
367
automatically without entering a password
368

    
369
$FreeBSD: src/usr.sbin/pc-sysinstall/examples/README,v 1.5 2010/10/09 08:52:09 imp Exp $
(2-2/13)