~ubuntu-branches/ubuntu/precise/system-config-kickstart/precise

« back to all changes in this revision

Viewing changes to doc/system-config-kickstart-postinstall.html

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-04-04 15:16:36 UTC
  • Revision ID: james.westby@ubuntu.com-20050404151636-ihn83k6dkgc1i3dj
Tags: upstream-2.5.20
ImportĀ upstreamĀ versionĀ 2.5.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Post-Installation Script</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
 
9
"><LINK
 
10
REL="HOME"
 
11
TITLE="Kickstart Configurator"
 
12
HREF="index.html"><LINK
 
13
REL="PREVIOUS"
 
14
TITLE="Pre-Installation Script"
 
15
HREF="system-config-kickstart-prescript.html"><LINK
 
16
REL="NEXT"
 
17
TITLE="Use an Interpreter"
 
18
HREF="system-config-kickstart-interpreter.html"></HEAD><link rel="stylesheet" type="text/css" href="rhdocs-man.css"
 
19
><BODY
 
20
CLASS="CHAPTER"
 
21
BGCOLOR="#FFFFFF"
 
22
TEXT="#000000"
 
23
LINK="#0000FF"
 
24
VLINK="#840084"
 
25
ALINK="#0000FF"
 
26
><DIV
 
27
CLASS="NAVHEADER"
 
28
><TABLE
 
29
SUMMARY="Header navigation table"
 
30
WIDTH="100%"
 
31
BORDER="0"
 
32
CELLPADDING="0"
 
33
CELLSPACING="0"
 
34
><TR
 
35
><TH
 
36
COLSPAN="3"
 
37
ALIGN="center"
 
38
>Kickstart Configurator</TH
 
39
></TR
 
40
><TR
 
41
><TD
 
42
WIDTH="10%"
 
43
ALIGN="left"
 
44
VALIGN="bottom"
 
45
><A
 
46
HREF="system-config-kickstart-prescript.html"
 
47
ACCESSKEY="P"
 
48
>Prev</A
 
49
></TD
 
50
><TD
 
51
WIDTH="80%"
 
52
ALIGN="center"
 
53
VALIGN="bottom"
 
54
></TD
 
55
><TD
 
56
WIDTH="10%"
 
57
ALIGN="right"
 
58
VALIGN="bottom"
 
59
><A
 
60
HREF="system-config-kickstart-interpreter.html"
 
61
ACCESSKEY="N"
 
62
>Next</A
 
63
></TD
 
64
></TR
 
65
></TABLE
 
66
><HR
 
67
ALIGN="LEFT"
 
68
WIDTH="100%"></DIV
 
69
><DIV
 
70
CLASS="CHAPTER"
 
71
><H1
 
72
><A
 
73
NAME="REDHAT-CONFIG-KICKSTART-POSTINSTALL"
 
74
></A
 
75
>Chapter 12. Post-Installation Script</H1
 
76
><DIV
 
77
CLASS="FIGURE"
 
78
><A
 
79
NAME="REDHAT-CONFIG-KICKSTART-POSTINSTALL-FIG"
 
80
></A
 
81
><DIV
 
82
CLASS="MEDIAOBJECT"
 
83
><P
 
84
><IMG
 
85
SRC="./figs/ksconfig-postscript.png"></P
 
86
></DIV
 
87
><P
 
88
><B
 
89
>Figure 12-1. Post-Installation Script</B
 
90
></P
 
91
></DIV
 
92
><P
 
93
>       You can also add commands to execute on the system after the
 
94
        installation is completed. If you have properly configured the network
 
95
        in the kickstart file, the network is enabled, and the script can
 
96
      include commands to access resources on the network. If you would like to
 
97
        include a post-installation script, type it in the text area. 
 
98
      </P
 
99
><DIV
 
100
CLASS="CAUTION"
 
101
><P
 
102
></P
 
103
><TABLE
 
104
CLASS="CAUTION"
 
105
WIDTH="100%"
 
106
BORDER="0"
 
107
><TR
 
108
><TD
 
109
WIDTH="25"
 
110
ALIGN="CENTER"
 
111
VALIGN="TOP"
 
112
><IMG
 
113
SRC="./stylesheet-images/caution.png"
 
114
HSPACE="5"
 
115
ALT="Caution"></TD
 
116
><TH
 
117
ALIGN="LEFT"
 
118
VALIGN="CENTER"
 
119
><B
 
120
>Caution</B
 
121
></TH
 
122
></TR
 
123
><TR
 
124
><TD
 
125
>&nbsp;</TD
 
126
><TD
 
127
ALIGN="LEFT"
 
128
VALIGN="TOP"
 
129
><P
 
130
>         Do not include the <TT
 
131
CLASS="COMMAND"
 
132
>%post</TT
 
133
> command. It will be added
 
134
          for you.
 
135
        </P
 
136
></TD
 
137
></TR
 
138
></TABLE
 
139
></DIV
 
140
><P
 
141
>       For example, to change the message of the day for the newly
 
142
        installed system, add the following command to the
 
143
        <TT
 
144
CLASS="COMMAND"
 
145
>%post</TT
 
146
> section:
 
147
      </P
 
148
><TABLE
 
149
CLASS="SCREEN"
 
150
BGCOLOR="#DCDCDC"
 
151
WIDTH="100%"
 
152
><TR
 
153
><TD
 
154
><PRE
 
155
CLASS="SCREEN"
 
156
><TT
 
157
CLASS="COMMAND"
 
158
>echo "Hackers will be punished!" &#62; /etc/motd</TT
 
159
></PRE
 
160
></TD
 
161
></TR
 
162
></TABLE
 
163
><DIV
 
164
CLASS="TIP"
 
165
><P
 
166
></P
 
167
></DIV
 
168
><DIV
 
169
CLASS="SECT1"
 
170
><H1
 
171
CLASS="SECT1"
 
172
><A
 
173
NAME="REDHAT-CONFIG-KICKSTART-NOCHROOT"
 
174
></A
 
175
>Chroot Environment</H1
 
176
><P
 
177
>         If you want your post-installation script to run outside of the chroot
 
178
          environment, click the checkbox next to this option on the top of
 
179
          the <B
 
180
CLASS="GUILABEL"
 
181
>Post-Installation</B
 
182
> window. This is equivalent to
 
183
          the using the <TT
 
184
CLASS="COMMAND"
 
185
>--nochroot</TT
 
186
> option in the
 
187
          <TT
 
188
CLASS="COMMAND"
 
189
>%post</TT
 
190
> section.
 
191
        </P
 
192
><DIV
 
193
CLASS="TIP"
 
194
><P
 
195
></P
 
196
><TABLE
 
197
CLASS="TIP"
 
198
WIDTH="100%"
 
199
BORDER="0"
 
200
><TR
 
201
><TD
 
202
WIDTH="25"
 
203
ALIGN="CENTER"
 
204
VALIGN="TOP"
 
205
><IMG
 
206
SRC="./stylesheet-images/tip.png"
 
207
HSPACE="5"
 
208
ALT="Tip"></TD
 
209
><TH
 
210
ALIGN="LEFT"
 
211
VALIGN="CENTER"
 
212
><B
 
213
>Tip</B
 
214
></TH
 
215
></TR
 
216
><TR
 
217
><TD
 
218
>&nbsp;</TD
 
219
><TD
 
220
ALIGN="LEFT"
 
221
VALIGN="TOP"
 
222
><P
 
223
>           If you want to make any changes to the newly installed file system in
 
224
            the post-installation section outside of the chroot environment, you
 
225
            must append the directory name with
 
226
            <TT
 
227
CLASS="FILENAME"
 
228
>/mnt/sysimage</TT
 
229
>.
 
230
          </P
 
231
></TD
 
232
></TR
 
233
></TABLE
 
234
></DIV
 
235
><P
 
236
>         For example, if you check the <B
 
237
CLASS="GUILABEL"
 
238
>Run outside of the chroot
 
239
            environment</B
 
240
> button, the previous example needs to be changed
 
241
          to the following:
 
242
        </P
 
243
><TABLE
 
244
CLASS="SCREEN"
 
245
BGCOLOR="#DCDCDC"
 
246
WIDTH="100%"
 
247
><TR
 
248
><TD
 
249
><PRE
 
250
CLASS="SCREEN"
 
251
><TT
 
252
CLASS="COMMAND"
 
253
>echo "Hackers will be punished!" &#62; /mnt/sysimage/etc/motd</TT
 
254
></PRE
 
255
></TD
 
256
></TR
 
257
></TABLE
 
258
></DIV
 
259
></DIV
 
260
><DIV
 
261
CLASS="NAVFOOTER"
 
262
><HR
 
263
ALIGN="LEFT"
 
264
WIDTH="100%"><TABLE
 
265
SUMMARY="Footer navigation table"
 
266
WIDTH="100%"
 
267
BORDER="0"
 
268
CELLPADDING="0"
 
269
CELLSPACING="0"
 
270
><TR
 
271
><TD
 
272
WIDTH="33%"
 
273
ALIGN="left"
 
274
VALIGN="top"
 
275
><A
 
276
HREF="system-config-kickstart-prescript.html"
 
277
ACCESSKEY="P"
 
278
>Prev</A
 
279
></TD
 
280
><TD
 
281
WIDTH="34%"
 
282
ALIGN="center"
 
283
VALIGN="top"
 
284
><A
 
285
HREF="index.html"
 
286
ACCESSKEY="H"
 
287
>Home</A
 
288
></TD
 
289
><TD
 
290
WIDTH="33%"
 
291
ALIGN="right"
 
292
VALIGN="top"
 
293
><A
 
294
HREF="system-config-kickstart-interpreter.html"
 
295
ACCESSKEY="N"
 
296
>Next</A
 
297
></TD
 
298
></TR
 
299
><TR
 
300
><TD
 
301
WIDTH="33%"
 
302
ALIGN="left"
 
303
VALIGN="top"
 
304
>Pre-Installation Script</TD
 
305
><TD
 
306
WIDTH="34%"
 
307
ALIGN="center"
 
308
VALIGN="top"
 
309
>&nbsp;</TD
 
310
><TD
 
311
WIDTH="33%"
 
312
ALIGN="right"
 
313
VALIGN="top"
 
314
>Use an Interpreter</TD
 
315
></TR
 
316
></TABLE
 
317
></DIV
 
318
></BODY
 
319
></HTML
 
320
>