~vcs-imports/fai/trunk

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
.\"                                      Hey, EMACS: -*- nroff -*-
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH fai-mirror 1 "28 July 2010" "FAI 4.0"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.de }1
.ds ]X \&\\*(]B\\
.nr )E 0
.if !"\\$1"" .nr )I \\$1n
.}f
.ll \\n(LLu
.in \\n()Ru+\\n(INu+\\n()Iu
.ti \\n(INu
.ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\\*(]X
.br\}
.el \\*(]X\h|\\n()Iu+\\n()Ru\c
.}f
..
.\"
.\" File Name macro.  This used to be `.PN', for Path Name,
.\" but Sun doesn't seem to like that very much.
.\"
.de FN
\fI\|\\$1\|\fP
..
.SH NAME
fai-mirror \- create and manage a partial mirror for FAI

.SH SYNOPSIS
.B fai-mirror
.RI [OPTION]... 
DIRECTORY
.br

.SH DESCRIPTION
This command creates a partial mirror of Debian packages. It can
be used to create the fai CD or as a local mirror when you can't
download the whole Debian mirror. By default the mirror will contain
all packages of all classes used in the configuration space (/srv/fai/config/package_config).

.SH OPTIONS
.TP
.B \-a ARCH
Download packages from architecture ARCH. If not specified, use native
architecture of host.
.TP
.BI \-B
Do not add packages included in base.tgz and packages defined in
make-fai-nfsroot.conf to the mirror. By default all these packages are
included in the mirror.
.TP
.B \-C CFDIR
Use CFDIR as the configuration directory. Default is /etc/fai. You can
also set the environment variable FAI_ETC_DIR.
.TP
.BI "\-c " CLASS[,CLASS]
Use only this list of classes for building the mirror. Can't be used
in conjunction with \-x.
.TP
.BI \-h
Show simple help and version.
.TP
.BI "\-m " MAX
Set the number of packages to NUM. This overwrites the variable MAXPACKAGES.
.TP
.BI "\-x " CLASS[,CLASS]
Exclude these classes. Do not add the packages of these classes to
the mirror.
.TP
.B \-p
Preserve existing sources.list. NOT YET IMPLEMENTED.
.TP
.B \-v
Create verbose output.

.SH EXAMPLES
.br
   # fai-mirror \-v /files/scratch/mirror

Creates a partial mirror in the directory /files/scratch/mirror
using all classes.

   # fai-mirror \-v \-cDEFAULT,DEMO /debmirror

Creates a partial mirror containing all packages used in the classes
DEFAULT and DEMO.

   # fai-mirror \-v \-cDEFAULT,AMD64 /srv/debmirror-amd64

Will create a mirror including packages for amd64 architecture defined
for classes DEFAULT and AMD64. You can also run this on a non amd64 host.

.SH NOTES
You only need root permissions if you access the official Debian
mirror via NFS. By default, the variable MAXPACKAGES is set to 1, so
conflicting packages can also be added to the mirror. Setting
this to a higher number (e.g. 99999) reduces the time for creating the
mirror, but some packages may be missing.

.SH SEE ALSO
.br
This program is part of FAI (Fully Automatic Installation).
The FAI homepage is http://fai-project.org. 
.TP
\fBmake-fai-nfsroot\fP(8), \fBinstall_packages\fP(8)
.PD

.SH FILES
.PD 0
.TP
.FN /etc/fai/fai.conf
The FAI configuration file.

.TP
.FN /etc/fai/make-fai-nfsroot.conf
The FAI configuration file for the nfsroot.
.TP

.FN /etc/fai/apt/sources.list
Package resource definition for FAI.
.TP

.FN /srv/fai/config/package_config/
The FAI package configuration directory. This directory is defined by
the variable FAI_CONFIGDIR.
.TP

.FN $NFSROOT/var/tmp/base-pkgs.lis
The list of packages included in base.tgz inside the nfsroot.
.TP

.FN $NFSROOT/var/tmp/packages.nfsroot
Additional packages that were added to the nfsroot by the
configuration file /etc/fai/NFSROOT.

.SH AUTHOR
Thomas Lange <lange@informatik.uni-koeln.de>