summaryrefslogtreecommitdiff
path: root/dracut.8.xml
blob: 3be42a8721d84caaca9711ec30841ad6285e9bb3 (plain)
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
<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. --><!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>
<refentry>
  <refentryinfo>
    <title>dracut</title>
    <productname>dracut</productname>
    <authorgroup>
      <author>
        <contrib>Project Leader, Developer</contrib>
        <firstname>Harald</firstname>
        <surname>Hoyer</surname>
        <email>harald@redhat.com</email>
      </author>
      <author>
        <contrib>Developer</contrib>
        <firstname>Victor</firstname>
        <surname>Lowther</surname>
        <email>victor.lowther@gmail.com</email>
      </author>
      <author>
        <contrib>Developer</contrib>
        <firstname>Warren</firstname>
        <surname>Togami</surname>
        <email>wtogami@redhat.com</email>
      </author>
      <author>
        <contrib>Developer</contrib>
        <firstname>Jeremy</firstname>
        <surname>Katz</surname>
        <email>katzj@redhat.com</email>
      </author>
      <author>
        <contrib>Developer</contrib>
        <firstname>Philippe</firstname>
        <surname>Seewer</surname>
        <email>philippe.seewer@bfh.ch</email>
      </author>
      <author>
        <contrib>Developer</contrib>
        <firstname>David</firstname>
        <surname>Dillow</surname>
        <email>dave@thedillows.org</email>
      </author>
      <author>
        <contrib>Developer</contrib>
        <firstname>Amadeusz</firstname>
        <surname>Żołnowski</surname>
        <email>aidecoe@aidecoe.name</email>
      </author>
    </authorgroup>
  </refentryinfo>
  <refmeta>
    <refentrytitle>dracut</refentrytitle>
    <manvolnum>8</manvolnum>
    <refmiscinfo class="version"/>
  </refmeta>
  <refnamediv>
    <refname>dracut</refname>
    <refpurpose>create initial ramdisk images for preloading modules</refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <cmdsynopsis>
      <command>dracut</command>
      <arg choice="opt" rep="repeat">
        <replaceable>OPTION</replaceable>
      </arg>
      <arg choice="opt">
        <replaceable>&lt;image&gt;</replaceable>
        <arg choice="opt">
          <replaceable>&lt;kernel-version&gt;</replaceable>
        </arg>
      </arg>
      <sbr/>
    </cmdsynopsis>
  </refsynopsisdiv>
  <refsect1>
    <title>Description</title>
    <para><command>dracut</command>
creates an initial image used by the kernel for
preloading the block device modules (such as IDE, SCSI or RAID)
which are needed to access the root filesystem.</para>
    <para>
For a complete list of kernel command line options see
      <citerefentry>
        <refentrytitle>dracut.kernel</refentrytitle>
        <manvolnum>7</manvolnum>
      </citerefentry>
</para>
    <refsect2>
      <title>Options</title>
      <variablelist>
        <varlistentry>
          <term>
            <option>-f</option>
          </term>
          <term>
            <option>--force</option>
          </term>
          <listitem>
            <para>overwrite existing initramfs file.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-m</option>
          </term>
          <term>
            <option>--modules&nbsp;<replaceable>&lt;list of dracut modules&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify a space-separated list of dracut modules to call 
when building the initramfs. 
Modules are located in 
<filename>/usr/share/dracut/modules.d</filename>. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-o</option>
          </term>
          <term>
            <option>--omit&nbsp;<replaceable>&lt;list of dracut modules&gt;</replaceable></option>
          </term>
          <listitem>
            <para>omit a space-separated list of dracut modules. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-a</option>
          </term>
          <term>
            <option>--add&nbsp;<replaceable>&lt;list of dracut modules&gt;</replaceable></option>
          </term>
          <listitem>
            <para>add a space-separated list of dracut modules to the default set of modules. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-d</option>
          </term>
          <term>
            <option>--drivers&nbsp;<replaceable>&lt;list of kernel modules&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify a space-separated list of kernel modules to exclusively include
in the initramfs.
The kernel modules have to be specified without the &quot;.ko&quot; suffix. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--add-drivers&nbsp;<replaceable>&lt;list of kernel modules&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify a space-separated list of kernel modules to add to the initramfs.
The kernel modules have to be specified without the &quot;.ko&quot; suffix. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--filesystems&nbsp;<replaceable>&lt;list of filesystems&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify a space-separated list of kernel filesystem modules to exclusively 
include in the generic initramfs. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-k</option>
          </term>
          <term>
            <option>--kmoddir&nbsp;<replaceable>&lt;kernel directory&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify the directory, where to look for kernel modules</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option> --fwdir&nbsp;<replaceable>&lt;dir&gt;[:&lt;dir&gt;...]</replaceable></option>
          </term>
          <listitem>
            <para>specify additional directories, where to look for firmwares. This parameter can be specified multiple times.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--kernel-only</option>
          </term>
          <listitem>
            <para>only install kernel drivers and firmware files</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--no-kernel</option>
          </term>
          <listitem>
            <para>do not install kernel drivers and firmware files</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--ignore-kernel-modules</option>
          </term>
          <listitem>
            <para>don&apos;t try to load modules; it automatically implies <option>--no-kernel</option>; it&apos;s
assumed that everything needed is built into kernel</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--mdadmconf</option>
          </term>
          <listitem>
            <para>include local <filename>/etc/mdadm.conf</filename></para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--nomdadmconf</option>
          </term>
          <listitem>
            <para>do not include local <filename>/etc/mdadm.conf</filename></para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--strip</option>
          </term>
          <listitem>
            <para>strip binaries in the initramfs (default)</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--nostrip</option>
          </term>
          <listitem>
            <para>do not strip binaries in the initramfs</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-h</option>
          </term>
          <term>
            <option>--help</option>
          </term>
          <listitem>
            <para>display help text and exit.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--debug</option>
          </term>
          <listitem>
            <para>output debug information of the build process</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-v</option>
          </term>
          <term>
            <option>--verbose</option>
          </term>
          <listitem>
            <para>verbose output during the build process</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-c</option>
          </term>
          <term>
            <option>--conf&nbsp;<replaceable>&lt;dracut configuration file&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify configuration file to use.
Default: 
<filename>/etc/dracut.conf</filename></para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--confdir&nbsp;<replaceable>&lt;configuration directory&gt;</replaceable></option>
          </term>
          <listitem>
            <para>specify configuration directory to use.
Default: 
<filename>/etc/dracut.conf.d</filename></para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-l</option>
          </term>
          <term>
            <option>--local</option>
          </term>
          <listitem>
            <para>activates the local mode. dracut will use modules from the current working
directory instead of the system-wide installed modules in
<filename>/usr/share/dracut/modules.d</filename>.
Thsi is useful when running dracut from a git checkout.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-H</option>
          </term>
          <term>
            <option>--hostonly</option>
          </term>
          <listitem>
            <para>Host-Only mode: Install only what is needed for booting 
the local host instead of a generic host. 
     <warning><para>If chrooted to another root other than the real root device, use &quot;--fstab&quot; and provide a valid <filename>/etc/fstab</filename>.</para></warning>
     </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--fstab</option>
          </term>
          <listitem>
            <para>Use <filename>/etc/fstab</filename> instead of <filename>/proc/self/mountinfo</filename>.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-i</option>
          </term>
          <term>
            <option>--include&nbsp;<replaceable>&lt;source directory&gt;</replaceable>&nbsp;<replaceable>&lt;target directory&gt;</replaceable></option>
          </term>
          <listitem>
            <para>include the files in the source directory into the
target directory in the final initramfs.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>-I</option>
          </term>
          <term>
            <option>--install&nbsp;<replaceable>&lt;file list&gt;</replaceable></option>
          </term>
          <listitem>
            <para>install the space separated list of files into the initramfs.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--gzip</option>
          </term>
          <listitem>
            <para>Compress the generated initramfs using gzip.
	    This will be done by default, unless another compression option or --no-compress is passed.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--bzip2</option>
          </term>
          <listitem>
            <para>Compress the generated initramfs using bzip2.
	    <warning><para>Make sure your kernel has bzip2 decompression support compiled in, otherwise you will not be able to boot.</para></warning>
	    </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--lzma</option>
          </term>
          <listitem>
            <para>Compress the generated initramfs using lzma.
	    <warning><para>Make sure your kernel has lzma decompression support compiled in, otherwise you will not be able to boot.</para></warning>
	    </para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option>--no-compress</option>
          </term>
          <listitem>
            <para>Do not compress the generated initramfs. This will override any other compression options.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <option></option>
          </term>
          <listitem>
            <para></para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
  </refsect1>
  <refsect1>
    <title>Files</title>
    <variablelist>
      <varlistentry>
        <term>
          <filename>/var/log/dracut.log</filename>
        </term>
        <listitem>
          <para>logfile of initramfs image creation</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <filename>/tmp/dracut.log</filename>
        </term>
        <listitem>
          <para>logfile of initramfs image creation, if <filename>/var/log/dracut.log</filename> is not writable</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <filename>/etc/dracut.conf</filename>
        </term>
        <listitem>
          <para>see <citerefentry>
              <refentrytitle>dracut.conf</refentrytitle>
              <manvolnum>5</manvolnum>
            </citerefentry></para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>
          <filename>/etc/dracut.conf.d/*.conf</filename>
        </term>
        <listitem>
          <para>see <citerefentry>
              <refentrytitle>dracut.conf</refentrytitle>
              <manvolnum>5</manvolnum>
            </citerefentry></para>
        </listitem>
      </varlistentry>
    </variablelist>
    <refsect2>
      <title>Configuration in the Initramfs</title>
      <variablelist>
        <varlistentry>
          <term>
            <filename>/conf/conf.d/</filename>
          </term>
          <listitem>
            <para>Any files found in <filename>/conf/conf.d/</filename> will be sourced in the initramfs to 
set initial values. Command line options will override these values 
set in the configuration files.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>
            <filename>/etc/cmdline</filename>
          </term>
          <listitem>
            <para>Can contain additional command line options.</para>
          </listitem>
        </varlistentry>
      </variablelist>
    </refsect2>
  </refsect1>
  <refsect1>
    <title>Availability</title>
    <para>The dracut command is part of the dracut package and is available from
<ulink url="http://sourceforge.net/apps/trac/dracut/wiki">http://sourceforge.net/apps/trac/dracut/wiki</ulink></para>
  </refsect1>
  <refsect1>
    <title>See Also</title>
    <para>
      <citerefentry>
        <refentrytitle>dracut.kernel</refentrytitle>
        <manvolnum>7</manvolnum>
      </citerefentry>
      <citerefentry>
        <refentrytitle>dracut.conf</refentrytitle>
        <manvolnum>5</manvolnum>
      </citerefentry>
    </para>
  </refsect1>
</refentry>