-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathay_faq.xml
More file actions
317 lines (316 loc) · 11 KB
/
ay_faq.xml
File metadata and controls
317 lines (316 loc) · 11 KB
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
<?xml version="1.0"?>
<!DOCTYPE appendix [
<!ENTITY % entities SYSTEM "generic-entities.ent">
%entities;
]>
<?xml-stylesheet href="urn:x-suse:xslt:profiling:docbook50-profile.xsl"
type="text/xml"
title="Profiling step"?><appendix xmlns:its="http://www.w3.org/2005/11/its" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="app-ay-faq">
<title>&ay; FAQ—frequently asked questions</title>
<info>
<meta name="description" its:translate="yes">Explore common questions and their answers on mass deployment with &ay;</meta>
<dm:docmanager xmlns:dm="urn:x-suse:ns:docmanager">
<dm:bugtracker/>
<dm:translation>yes</dm:translation>
</dm:docmanager>
<revhistory xml:id="rh-app-ay-faq">
<revision>
<date>2026-04-14</date>
<revdescription>
<para/>
</revdescription>
</revision>
</revhistory>
</info>
<qandaset>
<qandaentry xml:id="qa-ay-invoke">
<question>
<para>
How do I invoke an &ay; installation?
</para>
</question>
<answer>
<para>
On all &productname; versions, the automatic installation gets invoked by
adding <literal>autoyast=<PATH_TO_PROFILE></literal> to the kernel
parameter list. So for example adding
<literal>autoyast=<replaceable>http://MYSERVER/MYCONFIG.xml</replaceable></literal>
will start an automatic installation where the profile with the &ay;
configuration gets fetched from the Web server
<literal>myserver</literal>. See <xref linkend="invoking-autoinst"/> for
more information.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-profile">
<question>
<para>
What is an &ay; profile?
</para>
</question>
<answer>
<para>
A profile is the &ay; configuration file. The content of the &ay; profile
determines how the system will be configured and which packages will get
installed. This includes partitioning, network setup, and software
sources, to name but a few. Almost everything that can be configured with
&yast; in a running system can also be configured in an &ay; profile. The
profile format is an ASCII XML file.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-create-profile">
<question>
<para>
How do I create an &ay; profile?
</para>
</question>
<answer>
<para os="sles;sled;osuse">
The easiest way to create an &ay; profile is to use an existing
&productname; system as a template. On an already installed system, start
<menuchoice> <guimenu>&yast;</guimenu> <guimenu>Miscellaneous</guimenu>
<guimenu>Autoinstallation</guimenu></menuchoice>. Now select <menuchoice>
<guimenu>Tools</guimenu> <guimenu>Create Reference Profile</guimenu>
</menuchoice> from the menu. Choose the system components you want to
include in the profile. Alternatively, create a profile containing the
complete system configuration by running <command>sudo yast
clone_system</command> from the command line.
</para>
<para os="sles;sled;osuse">
Both methods will create the file <filename>/root/autoinst.xml</filename>.
The version created on the command line can be used to set up an identical
clone of the system on which the profile was created. However, usually you
will want to adjust the file to make it possible to install several
machines that are very similar, but not identical. This can be done by
adjusting the profile using your favorite text/XML editor.
</para>
<para os="slemicro">
You have to create the &ay; profile manually. For details refer to
<xref linkend="CreateProfile-Manual"/>.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-check-profile">
<question>
<para>
How can I check the syntax of a created &ay; profile?
</para>
</question>
<answer>
<para>
The most efficient way to check your created &ay; profile is by using
<command>jing</command> or <command>xmllint</command>.
</para>
<para>
See <xref linkend="CreateProfile-Manual"/> for details.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-small-profile">
<question>
<para>
What is smallest &ay; profile that makes sense?
</para>
</question>
<answer>
<para>
If a section has not been defined in the &ay; profile the settings of the
general &yast; installation proposal will be used. However, you need to
specify at least the &rootuser; password to be able to log in to the
machine after the installation.
</para>
<screen><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<users config:type="list">
<user>
<encrypted config:type="boolean">false</encrypted>
<user_password>linux</user_password>
<username>root</username>
</user>
</users>
</profile></screen>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-auto-sound">
<question>
<para>
How do I do an automatic installation with autodetection of my sound card?
</para>
</question>
<answer>
<para>
Use the following <literal>sound</literal> section in your profile:
</para>
<screen><sound>
<autoinstall config:type="boolean">true</autoinstall>
<configure_detected config:type="boolean">true</configure_detected>
</sound></screen>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-cd">
<question>
<para>
I want to install from DVD only. Where do I put the &ay; profile?
</para>
</question>
<answer>
<para>
Put the profile in the root of the DVD. Refer to it with
<literal>file:///<replaceable>PROFILE</replaceable>.xml</literal>.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-test-merge">
<question>
<para>
How can I test a merging process on the command line?
</para>
</question>
<answer>
<para>
To merge two profiles, <filename>a.xml</filename> with
<filename>base.xml</filename>, run the following command:
</para>
<screen>&prompt.user;/usr/bin/xsltproc --novalid --param replace "'false'" \
--param dontmerge1 "'package'" --param with "'a.xml'" --output out.xml \
/usr/share/autoinstall/xslt/merge.xslt base.xml</screen>
<para>
This requires sections in both profiles to be in alphabetical order
(<software>, for example, needs to be listed after <add-on>).
If you have created the profile with &yast;, profiles are automatically
sorted correctly.
</para>
<para>
The <literal>dontmerge1</literal> parameter is optional and an example of
what to do when you use the <literal>dont_merge</literal> element in your
profile. See <xref linkend="merging"/> for more information.
</para>
</answer>
</qandaentry>
<qandaentry os="sles;sled;osuse" xml:id="qa-ay-zypper">
<question>
<para>
Can I call Zypper from scripts?
</para>
</question>
<answer>
<para>
Zypper can only be called from &ay; init scripts, because during the
post-script phase, &yast; still has an exclusive lock on the RPM database.
</para>
<para>
If you really need to use other script types (for example a post-script)
you will need to break the lock at your own risk:
</para>
<screen><post-scripts config:type="list">
<script>
<filename>yast_clone.sh</filename>
<interpreter>shell</interpreter>
<location/>
<feedback config:type="boolean">false</feedback>
<source><![CDATA[#!/bin/sh
mv /var/run/zypp.pid /var/run/zypp.sav
zypper in foo
mv /var/run/zypp.sav /var/run/zypp.pid
]]></source>
</script>
</post-scripts></screen>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Is the order of sections in an &ay; profile important?
</para>
</question>
<answer>
<para>
Actually the order is not important. The order of sections in the profile
has no influence on the &ay; workflow. However, to
<emphasis>merge</emphasis> different profiles, sections need to be in
alphabetical order.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-insecure">
<question>
<para>
<command>linuxrc</command> blocks the installation with <literal>File not
signed</literal>. I need to manually interact.
</para>
</question>
<answer>
<para>
<command>linuxrc</command> found an unsigned file, such as a driver
update. To use an unsigned file, you can suppress that message by passing
<literal>insecure=1</literal> to the <command>linuxrc</command> parameter
list (together with the <literal>autoyast=...</literal> parameter).
</para>
</answer>
</qandaentry>
<qandaentry xml:id="qa-ay-net">
<question>
<para>
I want to install from DVD/USB/HD but fetch the XML file from the network.
</para>
</question>
<answer>
<para>
You need to pass <literal>ifcfg</literal> to <command>linuxrc</command>.
This is required to set up the network, otherwise &ay; cannot download the
profile from the remote host. See <xref linkend="ay-adv-network"/> for
more information.
</para>
</answer>
</qandaentry>
<qandaentry os="sles;sled;osuse" xml:id="qa-ay-nfsroot">
<question>
<para>
Is installation onto an NFS root (<filename>/</filename>) possible?
</para>
</question>
<answer>
<para>
Yes, but it is more complex than other methods. The environment (DHCP,
TFTP, etc.) must be set up very carefully. The &ay; profile must look like
the following:
</para>
<screen><?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<partitioning config:type="list">
<drive>
<device>/dev/nfs</device>
<initialize config:type="boolean">false</initialize>
<type config:type="symbol">CT_NFS</type>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">nfs</filesystem>
<fstopt>nolock</fstopt>
<device>10.10.1.53:/tmp/m4</device>
<mount>/</mount>
</partition>
</partitions>
<use>all</use>
</drive>
</partitioning>
</profile></screen>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>
Where can I ask questions which have not been answered here?
</para>
</question>
<answer>
<para>
There is an &ay; mailing list where you can post your questions. Join us
at <link xlink:href="https://lists.opensuse.org/opensuse-autoinstall/"/>.
</para>
</answer>
</qandaentry>
</qandaset>
</appendix>